
From Prompt Injection to Persistent Control: Defending Agentic Harness Against Trojan Backdoors
Agent systems that persist state across sessions face a new class of multi-step trojan attacks where malicious instructions can be planted in files or tool outputs, stored in memory, and executed later. Each individual step looks benign, but collectively they give attackers persistent control over the agent. This research introduces ClawTrojan, a benchmark for detecting these attacks, and shows that current defenses fail because they inspect steps in isolation rather than understanding the attack chain.
Takeaways3
- Multi-step trojan attacks can turn innocent file reads into persistent agent compromise through stored malicious instructions.
- Current security defenses fail against these attacks because they analyze individual steps rather than attack chains.
- Agent systems with persistent state and file access need new security models that track multi-step threat propagation.










