Trust Me, Import This: Dependency Steering Attacks via Malicious Agent Skills
On the map: LLM agents and tool use → Agent threats, guardrails and governance
Abstract (arXiv)
LLM-powered coding agents increasingly make software supply chain decisions. They generate imports, recommend packages, and write installation commands. Prior work showed that these systems can hallucinate non-existent package names, which attackers may register as malicious packages. In this paper, we show that this risk is not only a passive model failure. It can be actively induced through the persistent Skill artifact. We introduce Dependency Steering, an attack paradigm in which a malicious Skill biases a coding agent toward an attacker-controlled package during benign coding tasks. The attack does not require modifying model weights, training data, or user prompts. To construct realistic attacks, we design a Skill-level optimization method that searches for localized semantic edits that preserve the apparent purpose of the original Skill while increasing targeted package generation. Across multiple coding-oriented LLMs and programming benchmarks, Dependency Steering achieves high targeted hallucination rates, transfers across models and task domains, and remains difficult for evaluated Skill scanners and LLM-based auditors to detect. Our results show that persistent agent instructions form an underexplored software supply chain attack surface.
Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). Placed in Agent threats, guardrails and governance, one of 16 directions in LLM agents and tool use. Builds on 32 of its 52 references that are in the map. First posted on arXiv 10 May 2026.
Builds on
32 of 52 references.
Closest ancestors · 5
Same direction, newest first
- 2026How Your Credentials Are Leaked by LLM Agent Skills: An Empirical Study3 Apr
- 2026SkillProbe: Security Auditing for Emerging Agent Skill Marketplaces via Multi-Agent Collaboration22 Mar
- 2026Skill-Inject: Measuring Agent Vulnerability to Skill File Attacks23 Feb
- 2026"Do Not Mention This to the User": Detecting and Understanding Malicious Agent Skills in the Wild6 Feb
- 2024InjecAgent: Benchmarking Indirect Prompt Injections in Tool-Integrated Large Language Model Agents5 Mar
Other references · 27
- 2022Survey of Hallucination in Natural Language Generationcited by 2,075
- 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineeringcited by 1,737
- 2023A Survey on Hallucination in Large Language Models: Principles, Taxonomy, Challenges, and Open Questionscited by 1,601
- 2023Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injectioncited by 1,443
- 2024Qwen2.5-Coder Technical Reportcited by 1,203
- 2024OpenHands: An Open Platform for AI Software Developers as Generalist Agentscited by 1,002
- 2020On Faithfulness and Factuality in Abstractive Summarizationcited by 900
- 2025Phi-4-Mini Technical Report: Compact yet Powerful Multimodal Language Models via Mixture-of-LoRAscited by 521
- 2018Learning Word Vectors for 157 Languagescited by 280
- 2024PoisonedRAG: Knowledge Corruption Attacks to Retrieval-Augmented Generation of Large Language Modelscited by 267
- 2024RepairAgent: An Autonomous, LLM-Based Agent for Program Repaircited by 232
- 2024AutoDAN-Turbo: A Lifelong Agent for Strategy Self-Exploration to Jailbreak LLMscited by 199
15 more
- 2024A Comprehensive Survey of Hallucination in Large Language, Image, Video and Audio Foundation Modelscited by 100
- 2024LLM Hallucinations in Practical Code Generation: Phenomena, Mechanism, and Mitigationcited by 93
- 2024We Have a Package for You! A Comprehensive Analysis of Package Hallucinations by Code Generating LLMscited by 65
- 2020Backstabber's Knife Collection: A Review of Open Source Software Supply Chain Attackscited by 61
- 2024You Name It, I Run It: An LLM Agent to Execute Tests of Arbitrary Projectscited by 47
- 2023Understanding and Detecting Hallucinations in Neural Machine Translation via Model Introspectioncited by 44
- 2019Small World with High Risks: A Study of Security Threats in the npm Ecosystemcited by 37
- 2025Poison-RAG: Adversarial Data Poisoning Attacks on Retrieval-Augmented Generation in Recommender Systemscited by 32
- 2025Llama-3.1-FoundationAI-SecurityLLM-8B-Instruct Technical Reportcited by 23
- 2024ConfusedPilot: Confused Deputy Risks in RAG-based LLMscited by 22
- 2025Importing Phantoms: Measuring LLM Package Hallucination Vulnerabilitiescited by 15
- 2025GPT-4.1 Sets the Standard in Automated Experiment Design Using Novel Python Librariescited by 8
- 2025NeuroGenPoisoning: Neuron-Guided Attacks on Retrieval-Augmented Generation of LLM via Genetic Optimization of External Knowledgecited by 7
- 2024DONAPI: Malicious NPM Packages Detector using Behavior Sequence Knowledge Mappingcited by 6
- 2023Journey to the Center of Software Supply Chain Attackscited by 2
Built on by
Citing papers per year: 2026: 5.
5 papers.
- 2026Harmless Yet Harmful: Neutral Prompting Attacks for Stealthy Hallucination Steering in Agent Skillscited by 1
- 2026Setup Complete, Now You Are Compromised: Weaponizing Setup Instructions Against AI Coding Agentscited by 1
- 2026SkillPoison: Progressive Skill Poisoning via Successful Experiencescited by 1
- 2026A Finger on the Scale: Covert Policy Steering through Agentic Skillscited by 0
- 2026SINGED: Correct Outputs Do Not Certify Safe Execution in LLM Agentscited by 0
- 2026SkillPoison: Progressive Skill Poisoning via Successful Experiences6 Oct 2026
- 2026SINGED: Correct Outputs Do Not Certify Safe Execution in LLM Agents27 Sep 2026
- 2026A Finger on the Scale: Covert Policy Steering through Agentic Skills2 Sep 2026
- 2026Setup Complete, Now You Are Compromised: Weaponizing Setup Instructions Against AI Coding Agents16 Jul 2026
- 2026Harmless Yet Harmful: Neutral Prompting Attacks for Stealthy Hallucination Steering in Agent Skills28 May 2026
Similar, not cited
Close in wording, no citation either way
- 2026PhantomSkill: Malicious Code Injection in Agent Skill Ecosystems
- 2026Supply-Chain Poisoning Attacks Against LLM Coding Agent Skill Ecosystems
- 2026Package Hallucination Attacks on Coding Agents through Prompt Injection in Rule Files
- 2026Towards a Risk Assessment of Malicious Skill Files in Coding Agents
- 2026SkillBloat: Token Amplification Attacks via Skill Injection in LLM Coding Agents
- 2026Black-Box Skill Stealing Attack from Proprietary LLM Agents: An Empirical Study
- 2026SkillGate: Cost Efficient Runtime Malicious Skill File Detection in Coding Agents
- 2026MalSkills: Detecting Malicious Skills in the Agentic Supply Chain via Neuro-symbolic Reasoning