Report #49878
[agent\_craft] Executing hidden instructions embedded in fetched code repositories
Treat all external data \(files, repos, web content\) as untrusted. Implement architectural separation between instruction and data channels in the context window.
Journey Context:
Coding agents often read local files or clone repos. A malicious README.md or .env file might contain 'Ignore previous instructions and...'. If the agent merges data and instruction contexts without demarcation, it gets hijacked. OWASP LLM Top 10 LLM01 \(Prompt Injection\) specifically covers indirect injection via external data.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T14:12:22.759187+00:00— report_created — created