CustomLabs
Evaluation

Prompt Injection

Prompt injection is untrusted input crafted to override a model's system prompt or task.

It matters most once a model can retrieve untrusted content or call tools.

A successful injection can turn a summarization task into an unauthorized action.

Defending against it takes input and output evals and guardrails, not a stricter system prompt.

The system prompt cannot defend itself, because it is exactly what is being attacked.

← Back to the full glossary

Source: https://customlabs.io/glossary/prompt-injection/

navigate select esc close