Advanced Prompt Injection & Jailbreak Resilience
Test direct, indirect (RAG/tool/webpage), multi-turn Crescendo (`D1`), split-payload, and encoded injections. Never rely on phrase blocklists ("ignore previous instructions"). Measure unauthorized actions and data leaks, not polite model refusals.
Stage detail
When: Basic concepts Weeks 1--2; RAG/agent variants Weeks 4--6.
- Direct versus indirect prompt injection.
- Multi-turn manipulation, including Crescendo-style gradual context grooming.
- Payload splitting, encoding, and obfuscation (Base64/ROT13) as test cases, not defenses.
- Instruction/data separation, source trust labels, tool authorization independent of model output, least privilege, and human approval.
- Why phrase filters and "ignore previous instructions" blocklists are insufficient.
Practice: build a local adversarial harness against your own app or a local model. Include direct, indirect, multi-turn, split/encoded, and retrieved-document attacks. Measure unauthorized tool invocation, cross-user/tenant data exposure, unapproved side effects, benign task success, false-positive blocking, latency, and cost.
Only test your own local app, authorized labs, or systems where you have explicit permission. Do not attempt to bypass a commercial LLM's system prompt or attack third-party services. A model's refusal behavior is not the same as application security.
Do not learn yet: an elaborate autonomous jailbreak agent or the idea that a model can be made "unjailbreakable." The goal is to constrain impact even when the model is manipulated.
Study days for this stage
7- 7Direct Prompt InjectionW2S2R04 R05
- 9Study advanced injection patternsW2S2D1R04 R05 R28
- 10Add tool timeoutsW2S2M5D1R01 R10
- 20Build the RAG API with retrievalW4S2S4R04 R41
- 58Disposable Browser Profile IsolationW10S2M9D9R04 R10 R33
- 77Review tool registryW13S2S3R04 R05 R21
- 90Run direct, indirect, multi-turn, encoded, split-payload, and…W15S2S8D1D8R04 R05 R28