mlsanityData to 7 Oct 2026

Reflections on Trusting Trust, Revisited: Contaminating Self-Modifying AI Coding Agents with Poisoned Benchmarks

arXiv 2609.17817 ↗First posted 15 Sep 2026cs.CR cs.AIcited by 0

On the map: LLM agents and tool use → Agent threats, guardrails and governance

also in 1 more
Abstract (arXiv)

Thompson's "Reflections on Trusting Trust" showed that a compiler can be poisoned to reinsert its own backdoor, so that even recompiling clean source reproduces the Trojan. Today, substantial coding work is done by AI coding agents -- and increasingly, those agents generate new versions of themselves. We reconsider Thompson's attack when the "compiler" is a self-modifying coding agent. Can an adversary supply poisoned benchmarks to the agent's self-evaluation and self-improvement process to induce future versions of the agent to write vulnerable code on clean, held-out tasks? We instantiate this attack against three recently proposed self-modifying coding agents: the Darwin G"odel Machine (with our experimental modifications), the Self-Improving Coding Agent, and Hyperagents (both substantively unmodified). We demonstrate successful proofs-of-concept: for example, with Hyperagents powered by Sonnet 4.5, our poisoned benchmark leads the agent to self-evolve instructions that disable HTTPS certificate validation on neutral URL-fetching tasks. From our experiments, we distill properties of the vulnerability, benchmark, model, and agent scaffolding that are sufficient to enable a benchmark poisoning attack. Moreover, we show that contamination often persists even when a poisoned agent is subsequently evolved against clean benchmarks. We discuss defensive directions and argue that self-modifying coding agents must be designed to be more resilient to such attacks.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in Agent threats, guardrails and governance, one of 16 directions in LLM agents and tool use. Builds on 60 of its 82 references that are in the map. First posted on arXiv 15 Sep 2026.

Builds on

60 of 82 references.

Closest ancestors · 22

Same direction, newest first

  1. 2026Safety in Self-Evolving LLM Agent Systems: Threats, Amplification, and Case Studies22 Jun
  2. 2026OEP: Poisoning Self-Evolving LLM Agents via Locally Correct but Non-Transferable Experiences18 May
  3. 2026Trojan Hippo: Weaponizing Agent Memory for Data Exfiltration3 May
  4. 2026On Safety Risks in Experience-Driven Self-Evolving Agents18 Apr
  5. 2026Supply-Chain Poisoning Attacks Against LLM Coding Agent Skill Ecosystems3 Apr
  6. 2026Zombie Agents: Persistent Control of Self-Evolving LLM Agents via Self-Reinforcing Injections17 Feb
  7. 2026Prompt Injection Attacks on Agentic Coding Assistants: A Systematic Analysis of Vulnerabilities in Skills, Tools, and Protocol Ecosystems24 Jan
  8. 2026CaMeLs Can Use Computers Too: System-level Security for Computer Use Agents14 Jan
  9. 2026When Bots Take the Bait: Exposing and Mitigating the Emerging Social Engineering Attack in Web Automation Agent12 Jan
  10. 2025Systems Security Foundations for Agentic Computing1 Dec
  11. 2025Breaking and Fixing Defenses Against Control-Flow Hijacking in Multi-Agent Systems20 Oct
  12. 2025When "Correct" Is Not Safe: Can We Trust Functionally Correct Patches Generated by Code Agents?15 Oct
10 more
  1. 2025Your Agent May Misevolve: Emergent Risks in Self-evolving LLM Agents30 Sep
  2. 2025"Your AI, My Shell": Demystifying Prompt Injection Attacks on Agentic AI Coding Editors26 Sep
  3. 2025How Safe Are AI-Generated Patches? A Large-scale Study on Security Risks in LLM and Agentic Automated Program Repair on SWE-bench30 Jun
  4. 2025Mind the Web: The Security of Web Use Agents8 Jun
  5. 2025LLM Agents Should Employ Security Principles29 May
  6. 2025WASP: Benchmarking Web Agent Security Against Prompt Injection Attacks22 Apr
  7. 2025Defeating Prompt Injections by Design24 Mar
  8. 2025Multi-Agent Systems Execute Arbitrary Malicious Code15 Mar
  9. 2024Prompt Infection: LLM-to-LLM Prompt Injection within Multi-Agent Systems9 Oct
  10. 2024IsolateGPT: An Execution Isolation Architecture for LLM-Based Agentic Systems8 Mar

Other references · 38

  1. 2022Training language models to follow instructions with human feedbackcited by 15,712
  2. 2022Training a Helpful and Harmless Assistant with Reinforcement Learning from Human Feedbackcited by 3,634
  3. 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
  4. 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 2,914
  5. 2023"Do Anything Now": Characterizing and Evaluating In-The-Wild Jailbreak Prompts on Large Language Modelscited by 457
  6. 2024The Instruction Hierarchy: Training LLMs to Prioritize Privileged Instructionscited by 441
  7. 2021Asleep at the Keyboard? Assessing the Security of GitHub Copilot's Code Contributionscited by 417
  8. 2024Great, Now Write an Article About That: The Crescendo Multi-Turn LLM Jailbreak Attackcited by 364
  9. 2024StruQ: Defending Against Prompt Injection with Structured Queriescited by 325
  10. 2025Darwin Godel Machine: Open-Ended Evolution of Self-Improving Agentscited by 294
  11. 2026Meta-Harness: End-to-End Optimization of Model Harnessescited by 248
  12. 2023Can LLMs Keep a Secret? Testing Privacy Implications of Language Models via Contextual Integrity Theorycited by 218
26 more
  1. 2022Defining and Characterizing Reward Hackingcited by 184
  2. 2025DataSentinel: A Game-Theoretic Detection of Prompt Injection Attackscited by 124
  3. 2025Alita: Generalist Agent Enabling Scalable Agentic Reasoning with Minimal Predefinition and Maximal Self-Evolutioncited by 114
  4. 2025The Attacker Moves Second: Stronger Adaptive Attacks Bypass Defenses Against Llm Jailbreaks and Prompt Injectionscited by 108
  5. 2025Live-SWE-agent: Can Software Engineering Agents Self-Evolve on the Fly?cited by 91
  6. 2025A Self-Improving Coding Agentcited by 58
  7. 2025CWEval: Outcome-driven Evaluation on Functionality and Security of LLM Code Generationcited by 55
  8. 2025Contextual Agent Security: A Policy for Every Purposecited by 55
  9. 2025ACE: A Security Architecture for LLM-Integrated App Systemscited by 52
  10. 2023TrojanPuzzle: Covertly Poisoning Code-Suggestion Modelscited by 47
  11. 2025Huxley-G"odel Machine: Human-Level Coding Agent Development by an Approximation of the Optimal Self-Improving Machinecited by 44
  12. 2026Rethinking the Evaluation of Harness Evolution for Agentscited by 39
  13. 2026SWE-chat: Coding Agent Interactions From Real Users in the Wildcited by 36
  14. 2026Group-Evolving Agents: Open-Ended Self-Improvement via Experience Sharingcited by 32
  15. 2026Agentic Much? Adoption of Coding Agents on GitHubcited by 31
  16. 2025BrowseSafe: Understanding and Preventing Prompt Injection Within AI Browser Agentscited by 23
  17. 2025Towards Automating Data Access Permissions in AI Agentscited by 20
  18. 2026Self-Improvements in Modern Agentic Systems: A Surveycited by 17
  19. 2026The Red Queen G"odel Machine: Co-Evolving Agents and Their Evaluatorscited by 16
  20. 2025ceLLMate: Sandboxing Browser AI Agentscited by 14
  21. 2025Alita-G: Self-Evolving Generative Agent for Agent Generationcited by 10
  22. 2026MOSS: Self-Evolution through Source-Level Rewriting in Autonomous Agent Systemscited by 9
  23. 2025A Systematic Review of Poisoning Attacks Against Large Language Modelscited by 8
  24. 2026VibeServe: Can AI Agents Build Bespoke LLM Serving Systems?cited by 2
  25. 2026Privacy Control in Conversational LLM Platforms: A Walkthrough Studycited by 1
  26. 2026Poison with Style: A Practical Poisoning Attack on Code Large Language Modelscited by 1

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026EVOMAL: Self-Poisoning in Self-Evolving Coding Agents
  2. 2026Trust but Verify? Uncovering the Security Debt of Autonomous Coding Agents
  3. 2026Can Agents Trust Their Skills? Uncovering Unsafe Chains of Trust in Skill-Based LLM Agents
  4. 2026Poisoned Playbooks: Demystifying Knowledge Poisoning Effects on AI Security Agents
  5. 2026AgentTrust: Runtime Safety Evaluation and Interception for AI Agent Tool Use
  6. 2026IssueTrojanBench: Benchmarking AI Coding Agents Against Malicious Issue Requests
  7. 2026MalSkillBench: A Runtime-Verified Benchmark of Malicious Agent Skills
  8. 2026Oracle Poisoning: Corrupting Knowledge Graphs to Weaponise AI Agent Reasoning