mlsanityData to 14 Oct 2026

Workspace Topology as an Attack Vector in Agentic Coding Assistants

arXiv 2608.14876 ↗First posted 14 Aug 2026cs.CR cs.AI cs.CLcited by 0

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

also in 1 more
Abstract (arXiv)

Agentic coding assistants are finding widespread use, not just in new code development but in quickly ingesting and leveraging third-party code. This opens up a risk of malicious code being ingested as these coding tools operate with broad filesystem access inside developer workspaces. In this paper, we extensively study the impact of different dimensions of a novel attack surface we term workspace topology -- defined via directory depth, codebase modularity, in-file injection position and context framing -- on the attack success rate of adversarial prompt injection attempts. We perform an empirical study of indirect prompt injection (IPI) across a diverse set of open-source repositories spanning 10 languages and 6 engineering domains, evaluating three IPI entry points against open-weight models operating open source code harnesses. We find that workspace topology measurably affects IPI success. Specifically, changes in codebase modularity can significantly alter the Attack Success Rate (ASR), with highly modular environments demonstrating significantly lower attack success rates. Furthermore, context framing and introduction of security-cues in the workspace can also alter the ASR. Our findings offer practical value for the evaluation and security testing of coding agents across diverse settings, while underscoring the importance of an uncontaminated testing environment to obtain reliable results and conclusions.

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 16 of its 21 references that are in the map. First posted on arXiv 14 Aug 2026.

Builds on

16 of 21 references.

Closest ancestors · 11

Same direction, newest first

  1. 2026A Systematic Survey of Security Threats and Defenses in LLM-Based AI Agents: A Layered Attack Surface Framework25 Apr
  2. 2026A Framework for Formalizing LLM Agent Security19 Mar
  3. 2026The Landscape of Prompt Injection Threats in LLM Agents: From Taxonomy to Analysis11 Feb
  4. 2026Prompt Injection Attacks on Agentic Coding Assistants: A Systematic Analysis of Vulnerabilities in Skills, Tools, and Protocol Ecosystems24 Jan
  5. 2025Taxonomy, Evaluation and Exploitation of IPI-Centric LLM Agent Defense Frameworks19 Nov
  6. 2025MCPGuard : Automatically Detecting Vulnerabilities in MCP Servers27 Oct
  7. 2025ChatInject: Abusing Chat Templates for Prompt Injection in LLM Agents26 Sep
  8. 2025MCPTox: A Benchmark for Tool Poisoning Attack on Real-World MCP Servers19 Aug
  9. 2024RedCode: Risky Code Execution and Generation Benchmark for Code Agents12 Nov
  10. 2024Agent Security Bench (ASB): Formalizing and Benchmarking Attacks and Defenses in LLM-based Agents3 Oct
  11. 2024InjecAgent: Benchmarking Indirect Prompt Injections in Tool-Integrated Large Language Model Agents5 Mar

Other references · 5

  1. 2023Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injectioncited by 1,443
  2. 2025gpt-oss-120b & gpt-oss-20b Model Cardcited by 1,386
  3. 2026Prompt Injection as Role Confusioncited by 17
  4. 2024Trust No AI: Prompt Injection Along The CIA Security Triadcited by 8
  5. 2026Adaptive Instruction Composition for Automated LLM Red-Teamingcited by 3

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2025"Your AI, My Shell": Demystifying Prompt Injection Attacks on Agentic AI Coding Editors
  2. 2026Towards a Risk Assessment of Malicious Skill Files in Coding Agents
  3. 2026INFUSE: A Unified Surface Benchmark for Indirect Prompt Injection in Agentic Systems
  4. 2026APEX-Harm: Evaluating Agent Safety in Shared Professional Workspaces
  5. 2026Your Agent is More Brittle Than You Think: Uncovering Indirect Injection Vulnerabilities in Agentic LLMs
  6. 2026Skill-Inject: Measuring Agent Vulnerability to Skill File Attacks
  7. 2025Red-Teaming Coding Agents from a Tool-Invocation Perspective: An Empirical Security Assessment
  8. 2026Domain-Conditioned Safety in Frontier Computer-Using Agents: A 793-Episode Browser Benchmark, a Coding-Domain Cross-Reference, and a Reproducibility Audit of Recent Red-Teaming