Prompt Injection Remediation
Overview
Prompt Injection Remediation is a set of measures applied after detecting or during the process of countering a prompt attack. It includes detection of injections, isolation of malicious instructions, restoration of normal model behavior, and incident analysis.
Remediation Steps
- Detection — identifying signs of injection (unexpected instructions, suspicious patterns).
- Isolation — separating malicious content from trusted context.
- Neutralization — ignoring or rewriting malicious instructions.
- Recovery — regenerating the response without considering the attack.
- Analysis — documenting the incident and updating protective mechanisms.
Tools
- Input/output filters (guardrails).
- Injection detectors based on classifiers.
- Monitoring and alerting systems.