mlsanityData to 14 Oct 2026

Natural Code Transformation Confuses Agents in Vulnerability Analysis

arXiv 2610.14350 ↗First posted 9 Oct 2026cs.CR cs.AI cs.LGcited by 0

On the map: LLM agents and tool use → Agent threats, guardrails and governance also fits: Software engineering coding agents

Abstract (arXiv)

Having demonstrated a strong potential for automating vulnerability discovery, AI agents can also be used to attack software systems at scale. Today's software systems need mechanisms to level the playing field by slowing down potential attacks, giving them time to patch vulnerabilities and strengthen software. Along this line, our study of agent trajectories in vulnerability analysis shows a surprising finding: agents produce dramatically different results across real-world code commits that carry the same functionality and the same vulnerability. This phenomenon appears consistently in multiple code domains and vulnerability categories. It motivates us to study natural and functionality-preserving code transformations derived from real-world software development, and their potential as a defense against attacker agents. We build a corpus of natural transformations by mining recurring development patterns from real-world code commits, and apply them to evaluate impact on agentic vulnerability analysis. Our results show that even a single form of transformation can effectively "confuse" frontier agents, e.g., Codex with GPT-6 Sol, reducing successes in vulnerability discovery. We also study different agent failures, whether transformations can be composed to provide stronger protection, and adaptive attackers who seek to reverse them. Overall, our study of natural code transformation significantly expands the research space of using code transformations to defend against malicious agents.

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

Builds on

35 of 52 references.

Closest ancestors · 10

Same direction, newest first

  1. 2026ExploitBench: A Capability Ladder Benchmark for LLM Cybersecurity Agents13 May
  2. 2026ExploitGym: Can AI Agents Turn Security Vulnerabilities into Real Attacks?11 May
  3. 2026Program Analysis Guided LLM Agent for Proof-of-Concept Generation8 Apr
  4. 2026Capture the Flags: Family-Based Evaluation of Agentic LLMs via Semantics-Preserving Transformations5 Feb
  5. 2025SEC-bench: Automated Benchmarking of LLM Agents on Real-World Software Security Tasks13 Jun
  6. 2025BountyBench: Dollar Impact of AI Agent Attackers and Defenders on Real-World Cybersecurity Systems21 May
  7. 2025CVE-Bench: A Benchmark for AI Agents' Ability to Exploit Real-World Web Application Vulnerabilities21 Mar
  8. 2025Benchmarking LLMs and LLM-based Agents in Practical Vulnerability Detection for Code Repositories5 Mar
  9. 2024PentestAgent: Incorporating LLM Agents to Automated Penetration Testing7 Nov
  10. 2024Teams of LLM Agents can Exploit Zero-Day Vulnerabilities2 Jun

Other references · 25

  1. 2013Intriguing properties of neural networkscited by 5,155
  2. 2026GLM-5: from Vibe Coding to Agentic Engineeringcited by 587
  3. 2026SkillsBench: Benchmarking How Well Agent Skills Work Across Diverse Taskscited by 315
  4. 2023OctoPack: Instruction Tuning Code Large Language Modelscited by 189
  5. 2024SWT-Bench: Testing and Validating Real-World Bug-Fixes with Code Agentscited by 133
  6. 2026SoK: Agentic Skills -- Beyond Tool Use in LLM Agentscited by 130
  7. 2022ReCode: Robustness Evaluation of Code Generation Modelscited by 103
  8. 2024NYU CTF Bench: A Scalable Open-Source Benchmark Dataset for Evaluating LLMs in Offensive Securitycited by 93
  9. 2025CyberGym: Evaluating AI Agents' Real-World Cybersecurity Capabilities at Scalecited by 78
  10. 2026DeepSeek-V4.1-Flash: Pushing the Limits of KV Cache Compressioncited by 76
  11. 2019Adversarial Examples for Models of Codecited by 63
  12. 2025RepoAudit: An Autonomous LLM-Agent for Repository-Level Code Auditingcited by 49
13 more
  1. 2020Semantic Robustness of Models of Source Codecited by 45
  2. 2025Comparing AI Agents to Cybersecurity Professionals in Real-World Penetration Testingcited by 15
  3. 2022How Important are Good Method Names in Neural Code Generation? A Model Robustness Perspectivecited by 11
  4. 2023Exploiting Code Symmetries for Learning Program Semanticscited by 10
  5. 2025Locus: Agentic Predicate Synthesis for Directed Fuzzingcited by 9
  6. 2025LLMs Lean on Priors, Not Programming Language Semanticscited by 6
  7. 2025A Systematic Study of Code Obfuscation Against LLM-based Vulnerability Detectioncited by 5
  8. 2024On the Adversarial Robustness of Instruction-Tuned Large Language Models for Codecited by 3
  9. 2025Adversarial Attack Classification and Robustness Testing for Large Language Models for Codecited by 3
  10. 2026A Jagged Frontier: Evaluating Robustness of Code Agents to Semantics-Preserving Transformationscited by 2
  11. 2026PatchBench: Evaluating AI Agents for Vulnerability Patchingcited by 2
  12. 2025Auto-SPT: Automating Semantic Preserving Transformations for Codecited by 1
  13. 2026Symbolon: Symbolic Execution by Learning Code Transformationcited by 1

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026Security in the Age of AI Teammates: An Empirical Study of Agentic Pull Requests on GitHub
  2. 2026Code-Augur: Agentic Vulnerability Detection via Specification Inference
  3. 2026Safer Builders, Risky Maintainers: A Comparative Study of Breaking Changes in Human vs Agentic PRs
  4. 2026Agent Skills in the Wild: An Empirical Study of Security Vulnerabilities at Scale
  5. 2026Vulnerability Localization Benchmark: Measuring Agentic Security Analysis at Repository Scale
  6. 2025SecureVibeBench: Benchmarking Secure Vibe Coding of AI Agents via Reconstructing Vulnerability-Introducing Scenarios
  7. 2026MOSAIC-Bench: Measuring Compositional Vulnerability Induction in Coding Agents
  8. 2026What Do AI Agents Actually Change? An Empirical Taxonomy of Mutation Patterns in Performance-Improving Pull Requests