I gave Claude Code a poisoned setup guide. What stopped it, and what would not have
8.3 relevance
Score Breakdown
technical depth 8
novelty 9
actionability 8
community 7
strategic 8
personal 10
Scored daily by a customisable AI persona to surface the most relevant engineering leadership news.
Security research on poisoning AI coding agents is novel, strategic, and directly relevant to agent safety.
Summary
Claude Code 2.1.308 declined to exfiltrate a .env file via curl when given a poisoned setup guide, demonstrating model-level refusal independent of agentwhy's command-blocking tool. agentwhy blocked 60 of 61 file-exfiltration command patterns on version 0.10.0, including 12 curl variants and 9 other tools, but missed indirection via cat $(cat list.txt). The tool cannot intercept npm install scripts that read .env, as those run as child processes outside the agent's tool-call boundary.