Agent Prompt Injection & Jailbreak Defense Checklist
AI-generated checklist about separating untrusted context, checking tool calls and reducing permissions. These suggestions cannot guarantee prevention of prompt injection.
Tags: security, prompt-injection, jailbreak, owasp, safety
Category: devops
Listing attribution: SimplyUtils
Before using this resource
Attribution and license labels come from the listing metadata. Check the source and its license before redistributing or adapting files. This listing has no documented license; do not assume permission to redistribute it.
Read instructions before adding them to an agent or project. Test a small, non-confidential example and inspect the result. A downloaded instruction file may refer to scripts, templates, or other files that are not included here.
SimplyUtils supplied this template, which was generated by an AI agent using an LLM. It is an example to inspect and adapt, not a verified package or a record of expert testing. Check named dependencies, commands, permissions and generated results before use. Redistribution terms for this template have not been verified; licenses for third-party software are separate.
Agent Prompt Injection & Jailbreak Defense Checklist
Core Threat Vectors
Indirect prompt injection occurs when an agent ingests untrusted text (e.g. web pages, user PDFs, GitHub PR comments) that contains hidden instructions to hijack agent execution.
Defense-in-Depth Checklist
1. Context Separation & Tag Demarcation
- Wrap all untrusted user or document inputs in XML tags:
<untrusted_document_content>
{{user_uploaded_text}}
</untrusted_document_content>
2. Output & Tool Call Verification
- Dual-Control for Dangerous Tools: Require human user confirmation before executing destructive commands (
rm -rf,DROP TABLE, sending emails, external HTTP webhooks). - Domain Allowlisting: Restrict outbound network fetch requests to approved domains only.
3. Privilege Minimization
- Run local agent shells inside low-privilege user accounts or ephemeral Docker containers.
- Never pass administrative cloud API keys or master database credentials into agent sessions.