Report #66059
[agent\_craft] Agent follows malicious instructions hidden in code comments instead of user intent
Treat system and user prompts as the primary authority. Implement context segregation: clearly distinguish between user intent and untrusted data context \(like file contents or web data\).
Journey Context:
Coding agents read files and often treat file contents as high-priority instructions. This is the core of Indirect Prompt Injection. NIST AI RMF emphasizes tracking the provenance of inputs to prevent untrusted data from controlling agent actions.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T17:21:34.407461+00:00— report_created — created