Self-evolving coding agents can self-poison, creating malicious tools in up to 86.7% of tasks
Self-evolving LLM coding agents will author and execute malicious skills from poisoned libraries
Security & privacy arXiv 26 Aug 2026 Attack Simulation evidence
Published as “EVOMAL: Self-Poisoning in Self-Evolving Coding Agents”
Why it matters
Self-evolving coding agents can become a vector for persistent supply-chain malware, requiring new defenses beyond traditional code-signing or name-blocklisting.
Summary
Self-evolving coding agents can poison their own skill libraries by reauthoring retrieved malicious code, achieving agent self-poisoning rates (ASPR) of 20.3% to 41.8% on 153 SWEbench Verified tasks. The attack, called EVOMAL, works across six LLMs and can amplify to 4.9-9.0× more malicious skills than initially planted, persisting even after the seed skills are removed (up to 68% ASPR for Qwen3). Targeted description-only tweaks raise ASPR to 86.7% on specific task families. Existing defenses miss the CREATE-path, but a simple counter-prompt reduces ASPR to ≤6.7% with no measurable loss in task completion. The evidence is based on real-world GitHub issue-resolution benchmarks and compares against a no-banner control and several static detectors.
What they found 2
- Self-poisoning occurs on a large fraction of tasks across models.
“Across six models on 153 tool-relevant SWEbench Verified tasks, ASPR ranges from 20.3% to 41.8%.”
- A counter-prompt defense reduces ASPR to at most 6.7% with no significant task-completion loss.
“We propose a new defense called counter-prompt that discourages banner-style copying and reduces EVOMAL’s ASPR to at most 6.7% with no significant task-completion loss.”
Caveats 2
- Attack success varies by benchmark: "On SWE-bench Pro, the attack remains effective, though the model ranking shifts, with DS-V4 falling from 41.8% on Verified to 24.6% on Pro while MiniMax rises from 20.3% to 30.7%."
- Targeted description-only attacks achieve higher rates but only for specific families: "Task-family targeting increases the attack rate... peaking at 86.7% on Qwen3’s pytest tasks."
What’s new here 4
- Identifies a CREATE-path vulnerability where self-evolving agents reauthor malicious skills they retrieve, a vector not covered by prior REUSE-path poisoning work.
- Demonstrates a self-propagating worm effect that persists after the attacker’s original skills are removed.
- Shows that simple prompt-level defenses (counter-prompt) can effectively block the attack without harming functionality.
- Models the propagation dynamics with a branching-process analysis linking copy rate, retrievability, and persistence.