Prompt Injection Attacks on Agentic Coding Assistants: A Systematic Analysis of Vulnerabilities in Skills, Tools, and Protocol Ecosystems
On the map: LLM agents and tool use → Agent threats, guardrails and governance
also in 1 more
Abstract (arXiv)
The proliferation of agentic AI coding assistants, including Claude Code, GitHub Copilot, Cursor, and emerging skill-based architectures, has fundamentally transformed software development workflows. These systems leverage Large Language Models (LLMs) integrated with external tools, file systems, and shell access through protocols like the Model Context Protocol (MCP). However, this expanded capability surface introduces critical security vulnerabilities. In this Systematization of Knowledge (SoK) paper, we present a comprehensive analysis of prompt injection attacks targeting agentic coding assistants. We propose a novel three-dimensional taxonomy categorizing attacks across textitdelivery vectors, textitattack modalities, and textitpropagation behaviors. Our meta-analysis synthesizes findings from 78 recent studies (2021--2026), consolidating evidence that attack success rates against state-of-the-art defenses exceed 85% when adaptive attack strategies are employed. We systematically catalog 42 distinct attack techniques spanning input manipulation, tool poisoning, protocol exploitation, multimodal injection, and cross-origin context poisoning. Through critical analysis of 18 defense mechanisms reported in prior work, we identify that most achieve less than 50% mitigation against sophisticated adaptive attacks. We contribute: (1) a unified taxonomy bridging disparate attack classifications, (2) the first systematic analysis of skill-based architecture vulnerabilities with concrete exploit chains, and (3) a defense-in-depth framework grounded in the limitations we identify. Our findings indicate that the security community must treat prompt injection as a first-class vulnerability class requiring architectural-level mitigations rather than ad-hoc filtering approaches.
Key facts. Cited by 31 papers in the map (data through 13 Oct 2026). Placed in Agent threats, guardrails and governance, one of 16 directions in LLM agents and tool use. Builds on 58 of its 86 references that are in the map. First posted on arXiv 24 Jan 2026.
Builds on
58 of 86 references.
Closest ancestors · 18
Same direction, newest first
- 2025Systematization of Knowledge: Security and Safety in the Model Context Protocol Ecosystem9 Dec
- 2025Semantic Attacks on Tool-Augmented LLMs: Securing the Model Context Protocol Against Descriptor-Level Manipulation6 Dec
- 2025Agentic AI Security: Threats, Defenses, Evaluation, and Open Challenges27 Oct
- 2025"Your AI, My Shell": Demystifying Prompt Injection Attacks on Agentic AI Coding Editors26 Sep
- 2025A Multi-Agent LLM Defense Pipeline Against Prompt Injection Attacks16 Sep
- 2025MCPSecBench: A Systematic Security Benchmark and Playground for Testing Model Context Protocols17 Aug
- 2025PromptArmor: Simple yet Effective Prompt Injection Defenses21 Jul
- 2025From Prompt Injections to Protocol Exploits: Threats in LLM-Powered AI Agents Workflows29 Jun
- 2025Progent: Securing AI Agents with Privilege Control16 Apr
- 2025Defeating Prompt Injections by Design24 Mar
- 2025MELON: Provable Defense Against Indirect Prompt Injection Attacks in AI Agents7 Feb
- 2024AgentHarm: A Benchmark for Measuring Harmfulness of LLM Agents11 Oct
6 more
- 2024Agent Security Bench (ASB): Formalizing and Benchmarking Attacks and Defenses in LLM-based Agents3 Oct
- 2024BadAgent: Inserting and Activating Backdoor Attacks in LLM Agents5 Jun
- 2024IsolateGPT: An Execution Isolation Architecture for LLM-Based Agentic Systems8 Mar
- 2024R-Judge: Benchmarking Safety Risk Awareness for LLM Agents18 Jan
- 2024Sleeper Agents: Training Deceptive LLMs that Persist Through Safety Training10 Jan
- 2023Identifying the Risks of LM Agents with an LM-Emulated Sandbox25 Sep
Other references · 40
- 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 3,064
- 2020Extracting Training Data from Large Language Modelscited by 2,181
- 2023Jailbroken: How Does LLM Safety Training Fail?cited by 1,637
- 2023Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injectioncited by 1,417
- 2024HarmBench: A Standardized Evaluation Framework for Automated Red Teaming and Robust Refusalcited by 1,405
- 2023Jailbreaking Black Box Large Language Models in Twenty Queriescited by 1,404
- 2023Llama Guard: LLM-based Input-Output Safeguard for Human-AI Conversationscited by 1,181
- 2023AutoDAN: Generating Stealthy Jailbreak Prompts on Aligned Large Language Modelscited by 777
- 2022Quantifying Memorization Across Neural Language Modelscited by 763
- 2023Tree of Attacks: Jailbreaking Black-Box LLMs Automaticallycited by 664
- 2023Prompt Injection attack against LLM-integrated Applicationscited by 600
- 2020On Adaptive Attacks to Adversarial Example Defensescited by 554
28 more
- 2024JailbreakBench: An Open Robustness Benchmark for Jailbreaking Large Language Modelscited by 531
- 2024The Instruction Hierarchy: Training LLMs to Prioritize Privileged Instructionscited by 477
- 2021Asleep at the Keyboard? Assessing the Security of GitHub Copilot's Code Contributionscited by 427
- 2023FigStep: Jailbreaking Large Vision-Language Models via Typographic Visual Promptscited by 394
- 2023A Survey on Large Language Model (LLM) Security and Privacy: The Good, the Bad, and the Uglycited by 387
- 2024StruQ: Defending Against Prompt Injection with Structured Queriescited by 366
- 2023Formalizing and Benchmarking Prompt Injection Attacks and Defensescited by 362
- 2023NeMo Guardrails: A Toolkit for Controllable and Safe LLM Applications with Programmable Railscited by 357
- 2022A Holistic Approach to Undesired Content Detection in the Real Worldcited by 354
- 2024PoisonedRAG: Knowledge Corruption Attacks to Retrieval-Augmented Generation of Large Language Modelscited by 265
- 2025Model Context Protocol (MCP): Landscape, Security Threats, and Future Research Directionscited by 263
- 2023Benchmarking and Defending Against Indirect Prompt Injection Attacks on Large Language Modelscited by 261
- 2024Defending Against Indirect Prompt Injection Attacks With Spotlightingcited by 258
- 2024SecAlign: Defending Against Prompt Injection with Preference Optimizationcited by 205
- 2024AutoDAN-Turbo: A Lifelong Agent for Strategy Self-Exploration to Jailbreak LLMscited by 196
- 2023Tensor Trust: Interpretable Prompt Injection Attacks from an Online Gamecited by 143
- 2023Purple Llama CyberSecEval: A Secure Coding Benchmark for Language Modelscited by 134
- 2020You Autocomplete Me: Poisoning Vulnerabilities in Neural Code Completioncited by 130
- 2023Abusing Images and Sounds for Indirect Instruction Injection in Multi-Modal LLMscited by 123
- 2025The Attacker Moves Second: Stronger Adaptive Attacks Bypass Defenses Against Llm Jailbreaks and Prompt Injectionscited by 123
- 2024TrojanRAG: Retrieval-Augmented Generation Can Be Backdoor Driver in Large Language Modelscited by 67
- 2024We Have a Package for You! A Comprehensive Analysis of Package Hallucinations by Code Generating LLMscited by 63
- 2020Backstabber's Knife Collection: A Review of Open Source Software Supply Chain Attackscited by 60
- 2022Taxonomy of Attacks on Open-Source Software Supply Chainscited by 57
- 2024An LLM-Assisted Easy-to-Trigger Backdoor Attack on Code Completion Models: Injecting Disguised Vulnerabilities against Strong Detectioncited by 39
- 2024Exposing Privacy Gaps: Membership Inference Attack on Preference Data for LLM Alignmentcited by 25
- 2024Backdoored Retrievers for Prompt Injection Attacks on Retrieval Augmented Generation of Large Language Modelscited by 22
- 2025XOXO: Stealthy Cross-Origin Context Poisoning Attacks against AI Coding Assistantscited by 4
Built on by
Citing papers per year: 2026: 31.
31 papers.
Sort:
By area:
- 2026SkillAttack: Automated Red Teaming of Agent Skills through Attack Path Refinementcited by 28
- 2026ClawSafety: "Safe" LLMs, Unsafe Agentscited by 16
- 2026How Your Credentials Are Leaked by LLM Agent Skills: An Empirical Studycited by 15
- 2026When Safe Skills Collide: Measuring Compositional Risk in Agent Skill Ecosystemscited by 15
- 2026A Systematic Survey of Security Threats and Defenses in LLM-Based AI Agents: A Layered Attack Surface Frameworkcited by 11
- 2026Security Considerations for Artificial Intelligence Agentscited by 8
- 2026Toward Secure LLM Agents: Threat Surfaces, Attacks, Defenses, and Evaluationcited by 5
- 2026Understanding and Evaluating Claw-like Agent Security Through a Computer-Systems Lenscited by 5
- 2026Latent Reuse in Agent Skills: Multi-modal Clone Detection at Ecosystem Scalecited by 4
- 2026PlanTwin: Privacy-Preserving Planning Abstractions for Cloud-Assisted LLM Agentscited by 2
- 2026MCP-DPT: A Defense-Placement Taxonomy and Coverage Analysis for Model Context Protocol Securitycited by 2
- 2026EVOMAL: Self-Poisoning in Self-Evolving Coding Agentscited by 2
19 more
- 2026Constraining Host-Level Abuse in Self-Hosted Computer-Use Agents via TEE-Backed Isolationcited by 1
- 2026IssueTrojanBench: Benchmarking AI Coding Agents Against Malicious Issue Requestscited by 1
- 2026Prompt Injection Detection is Regime-Dependent: A Deployment-Aware Evaluation with Interpretable Structural Signalscited by 0
- 2026Same Payload, Different Channel: Measuring Trust Asymmetry in Tool-Using Language Modelscited by 0
- 2026Steerability via constraints: a substrate for scalable oversight of coding agentscited by 0
- 2026The Balkanization of Execution-Security Research for AI Coding Agents: Isolation, Access Control, and Time-of-Check-to-Time-of-Use Vulnerabilitiescited by 0
- 2026TrustX Agent Risk Classification Framework (ARC): Risk-Tiering Internally Created Agentic AI Systemscited by 0
- 2026ALIBI: Adaptive Agentic Attacks on LLM-Based Vulnerability Detectors via Adversarial Code Commentscited by 0
- 2026Workspace Topology as an Attack Vector in Agentic Coding Assistantscited by 0
- 2026Towards a Systems Foundation for Agentic Skills: Architecture, Lifecycle, and Securitycited by 0
- 2026Beyond the Payload: How User Invocation Shapes Coding Agent Vulnerability to Repository Poisoningcited by 0
- 2026Reflections on Trusting Trust, Revisited: Contaminating Self-Modifying AI Coding Agents with Poisoned Benchmarkscited by 0
- 2026Measuring and Exploiting Implicit Trust in LLM Tool-Calling Pipelinescited by 0
- 2026Beyond Single-Model Injection: A Threat Model and Defense Architecture for Prompt Injection in Multi-Agent Systemscited by 0
- 2026Connecting the Dots in Agentic AI Security: A Cross-Dimensional Threat Taxonomy, Evaluation Maturity, and Open Challengescited by 0
- 2026Attack Success Rate Is Not a Number: On Measurement Validity in Agentic AI Security Evaluationcited by 0
- 2026Stealth Apart, Harm Together: Skill Cascading Attacks on Skill-Based Agent Systemscited by 0
- 2026Speculative Safety Honeypot: Toward Proactive Defense Against Multi-turn Agent Attackscited by 0
- 2026Pincer: Resource Authorization for Agents using a Digital Twincited by 0
- 2026Pincer: Resource Authorization for Agents using a Digital Twin1 Oct 2026
- 2026Speculative Safety Honeypot: Toward Proactive Defense Against Multi-turn Agent Attacks30 Sep 2026
- 2026Stealth Apart, Harm Together: Skill Cascading Attacks on Skill-Based Agent Systems24 Sep 2026
- 2026Attack Success Rate Is Not a Number: On Measurement Validity in Agentic AI Security Evaluation21 Sep 2026
- 2026Connecting the Dots in Agentic AI Security: A Cross-Dimensional Threat Taxonomy, Evaluation Maturity, and Open Challenges20 Sep 2026
- 2026Beyond Single-Model Injection: A Threat Model and Defense Architecture for Prompt Injection in Multi-Agent Systems19 Sep 2026
- 2026Measuring and Exploiting Implicit Trust in LLM Tool-Calling Pipelines16 Sep 2026
- 2026Reflections on Trusting Trust, Revisited: Contaminating Self-Modifying AI Coding Agents with Poisoned Benchmarks15 Sep 2026
- 2026Beyond the Payload: How User Invocation Shapes Coding Agent Vulnerability to Repository Poisoning31 Aug 2026
- 2026Towards a Systems Foundation for Agentic Skills: Architecture, Lifecycle, and Security30 Aug 2026
- 2026EVOMAL: Self-Poisoning in Self-Evolving Coding Agents26 Aug 2026
- 2026Workspace Topology as an Attack Vector in Agentic Coding Assistants14 Aug 2026
19 more
- 2026ALIBI: Adaptive Agentic Attacks on LLM-Based Vulnerability Detectors via Adversarial Code Comments27 Jul 2026
- 2026IssueTrojanBench: Benchmarking AI Coding Agents Against Malicious Issue Requests22 Jul 2026
- 2026TrustX Agent Risk Classification Framework (ARC): Risk-Tiering Internally Created Agentic AI Systems10 Jul 2026
- 2026The Balkanization of Execution-Security Research for AI Coding Agents: Isolation, Access Control, and Time-of-Check-to-Time-of-Use Vulnerabilities7 Jul 2026
- 2026Steerability via constraints: a substrate for scalable oversight of coding agents2 Jul 2026
- 2026Understanding and Evaluating Claw-like Agent Security Through a Computer-Systems Lens29 Jun 2026
- 2026Toward Secure LLM Agents: Threat Surfaces, Attacks, Defenses, and Evaluation9 Jun 2026
- 2026Same Payload, Different Channel: Measuring Trust Asymmetry in Tool-Using Language Models30 May 2026
- 2026When Safe Skills Collide: Measuring Compositional Risk in Agent Skill Ecosystems30 May 2026
- 2026Prompt Injection Detection is Regime-Dependent: A Deployment-Aware Evaluation with Interpretable Structural Signals26 May 2026
- 2026Constraining Host-Level Abuse in Self-Hosted Computer-Use Agents via TEE-Backed Isolation7 May 2026
- 2026A Systematic Survey of Security Threats and Defenses in LLM-Based AI Agents: A Layered Attack Surface Framework25 Apr 2026
- 2026MCP-DPT: A Defense-Placement Taxonomy and Coverage Analysis for Model Context Protocol Security8 Apr 2026
- 2026SkillAttack: Automated Red Teaming of Agent Skills through Attack Path Refinement5 Apr 2026
- 2026How Your Credentials Are Leaked by LLM Agent Skills: An Empirical Study3 Apr 2026
- 2026ClawSafety: "Safe" LLMs, Unsafe Agents1 Apr 2026
- 2026Latent Reuse in Agent Skills: Multi-modal Clone Detection at Ecosystem Scale23 Mar 2026
- 2026PlanTwin: Privacy-Preserving Planning Abstractions for Cloud-Assisted LLM Agents19 Mar 2026
- 2026Security Considerations for Artificial Intelligence Agents12 Mar 2026
- 2026SkillAttack: Automated Red Teaming of Agent Skills through Attack Path Refinementcited by 28
- 2026ClawSafety: "Safe" LLMs, Unsafe Agentscited by 16
- 2026How Your Credentials Are Leaked by LLM Agent Skills: An Empirical Studycited by 15
- 2026When Safe Skills Collide: Measuring Compositional Risk in Agent Skill Ecosystemscited by 15
- 2026A Systematic Survey of Security Threats and Defenses in LLM-Based AI Agents: A Layered Attack Surface Frameworkcited by 11
- 2026Toward Secure LLM Agents: Threat Surfaces, Attacks, Defenses, and Evaluationcited by 5
- 2026Understanding and Evaluating Claw-like Agent Security Through a Computer-Systems Lenscited by 5
- 2026Latent Reuse in Agent Skills: Multi-modal Clone Detection at Ecosystem Scalecited by 4
- 2026PlanTwin: Privacy-Preserving Planning Abstractions for Cloud-Assisted LLM Agentscited by 2
- 2026MCP-DPT: A Defense-Placement Taxonomy and Coverage Analysis for Model Context Protocol Securitycited by 2
- 2026EVOMAL: Self-Poisoning in Self-Evolving Coding Agentscited by 2
- 2026Constraining Host-Level Abuse in Self-Hosted Computer-Use Agents via TEE-Backed Isolationcited by 1
12 most cited of 29 All 29 (JSON)
- 2026Pincer: Resource Authorization for Agents using a Digital Twin1 Oct 2026
- 2026Speculative Safety Honeypot: Toward Proactive Defense Against Multi-turn Agent Attacks30 Sep 2026
- 2026Stealth Apart, Harm Together: Skill Cascading Attacks on Skill-Based Agent Systems24 Sep 2026
- 2026Attack Success Rate Is Not a Number: On Measurement Validity in Agentic AI Security Evaluation21 Sep 2026
- 2026Connecting the Dots in Agentic AI Security: A Cross-Dimensional Threat Taxonomy, Evaluation Maturity, and Open Challenges20 Sep 2026
- 2026Beyond Single-Model Injection: A Threat Model and Defense Architecture for Prompt Injection in Multi-Agent Systems19 Sep 2026
- 2026Measuring and Exploiting Implicit Trust in LLM Tool-Calling Pipelines16 Sep 2026
- 2026Reflections on Trusting Trust, Revisited: Contaminating Self-Modifying AI Coding Agents with Poisoned Benchmarks15 Sep 2026
- 2026Beyond the Payload: How User Invocation Shapes Coding Agent Vulnerability to Repository Poisoning31 Aug 2026
- 2026Towards a Systems Foundation for Agentic Skills: Architecture, Lifecycle, and Security30 Aug 2026
- 2026EVOMAL: Self-Poisoning in Self-Evolving Coding Agents26 Aug 2026
- 2026Workspace Topology as an Attack Vector in Agentic Coding Assistants14 Aug 2026
12 newest of 29 All 29 (JSON)
- 2026Security Considerations for Artificial Intelligence Agents12 Mar 2026
Similar, not cited
Close in wording, no citation either way
- 2026Towards a Risk Assessment of Malicious Skill Files in Coding Agents
- 2025Red-Teaming Coding Agents from a Tool-Invocation Perspective: An Empirical Security Assessment
- 2026"Do Not Mention This to the User": Detecting and Understanding Malicious Agent Skills in the Wild
- 2026Skill-Inject: Measuring Agent Vulnerability to Skill File Attacks
- 2026SoK: The Attack Surface of Agentic AI - Tools and Autonomy
- 2026SkillBloat: Token Amplification Attacks via Skill Injection in LLM Coding Agents
- 2026The Landscape of Prompt Injection Threats in LLM Agents: From Taxonomy to Analysis
- 2026On Understanding, Identifying, and Mitigating Vulnerabilities in Agentic Large Language Models