MODULE 09 // 25:20

Defending Against Indirect Prompt Injection

Analyze how untrusted web pages, emails, and repositories hijack agent control flow—and enforce architectural privilege separation.

// KEY ARCHITECTURAL TAKEAWAYS

  • Apply the Dual-LLM pattern (quarantined data reader vs privileged action planner).
  • Require human-in-the-loop cryptographic approval for destructive or external actions.
  • Strip secrets and environment tokens from sandboxed subshells.
REFERENCE IMPLEMENTATION // SNIPPET
docker run --rm --read-only \
  --network=isolated_egress \
  --cap-drop=ALL \
  --memory=512m --cpus=1.0 \
  curiousminds/agent-sandbox:latest