Skip to content

Prompt Injection Robustness

Definition

Prompt Injection Robustness is the property of an LLM-based system to maintain correct behavior in the presence of Prompt Injection attacks. It includes both architectural safeguards and the model's resistance to harmful instructions.

Levels of Protection

Level Measures
Model Training for injection resistance, Instruction Hierarchy
Prompt Separation of instructions and data, Guardrails
Architecture Isolation of external data, Prompt Injection Prevention
Monitoring Prompt Injection Detection, Red Teaming

Evaluation of Robustness

Robustness is evaluated through: - The percentage of successful attacks on test sets - The cost of an attack (number of attempts, complexity) - Behavior with Adversarial Prompt

See Also

← All Terms