Trust Me, Import This: Dependency Steering Attacks via Malicious Agent Skills
Yiyong Liu, Chia-Yi Hsu, Chun-Ying Huang, Michael Backes A, Rui Wen, Chia-Mu Yu · 2026 · 4 citationsRead the paper
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.
What the full text shows
Working prototype- Dependency Steering allows attackers to bias coding agents toward attacker-controlled packages via persistent Skill artifacts without modifying model weights or user prompts. (Across multiple coding-oriented LLMs and programming benchmarks)
- The attack achieves high targeted hallucination rates, causing agents to import or recommend specific attacker-chosen packages during benign tasks. (Tested on Llama-3.1, Phi-4-mini, and Qwen2.5-Coder)
- The attack is transferable across different models and task domains. (Across multiple open-source LLMs)
- Existing Skill scanners and LLM-based auditors fail to effectively detect these malicious Skills. (Evaluated against current Skill auditing tools)
- Setup
- Evaluated using open-source LLMs (Llama-3.1, Phi-4-mini, Qwen2.5-Coder) across various programming benchmarks and package domains.
- How
- The authors developed a semantic-preserving optimization framework using a Context-Patch Injection Engine and a Multi-Objective Scorer with a veto mechanism. This framework employs a RAG-driven lifelong strategy exploration pipeline to find localized semantic edits that increase targeted package generation while preserving the original Skill's purpose.
Summarized by Gemma 4 from the open-access full text · 9 Nov 2026. Read it