PhantomSkill: Malicious Code Injection in Agent Skill Ecosystems
On the map: LLM agents and tool use → Agent threats, guardrails and governance
Abstract (arXiv)
Agent skills allow LLM-based coding agents to acquire domain-specific capabilities from third-party packages, but they also introduce a new supply-chain attack surface. We present PhantomSkill, an attack framework that hides malicious behavior in a skill's auxiliary resources rather than in its textual description. Its core technique, VulMask, rewrites overt malicious scripts into vulnerability-shaped implementations whose malicious behavior is activated only under attacker-controlled trigger conditions. This design shifts the visible signal from explicit malicious intent to ordinary-looking insecure code. Across representative host skills, attack goals, coding agents, generation models, and automated reviewers, VulMask preserves benign utility while reducing warning and malware-level detection compared with overt malicious scripts. Our results show that skill ecosystems require resource-level vetting, execution-time containment, and security policies that treat exploitable vulnerabilities in agent skills as potential malicious payloads.
Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Placed in Agent threats, guardrails and governance, one of 16 directions in LLM agents and tool use. Builds on 3 of its 9 references that are in the map. First posted on arXiv 17 Jun 2026.
Builds on
3 of 9 references.
Closest ancestors · 2
Same direction, newest first
- 2026Supply-Chain Poisoning Attacks Against LLM Coding Agent Skill Ecosystems3 Apr
- 2026Skill-Inject: Measuring Agent Vulnerability to Skill File Attacks23 Feb
Other references · 1
Built on by
Citing papers per year: 2026: 4.
4 papers.
- 2026Cloak and Detonate: Scanner Evasion and Dynamic Detection of Agent Skill Malwarecited by 6
- 2026CompoSkill: Compositional Skill Chain Attacks from Individually Scanner-Passing LLM Agent Skillscited by 2
- 2026SkillSentry: Adaptive Honey Worlds for Dynamic Safety Testing of Agent Skillscited by 0
- 2026Towards a Systems Foundation for Agentic Skills: Architecture, Lifecycle, and Securitycited by 0
- 2026Towards a Systems Foundation for Agentic Skills: Architecture, Lifecycle, and Security30 Aug 2026
- 2026CompoSkill: Compositional Skill Chain Attacks from Individually Scanner-Passing LLM Agent Skills17 Aug 2026
- 2026SkillSentry: Adaptive Honey Worlds for Dynamic Safety Testing of Agent Skills4 Aug 2026
- 2026Cloak and Detonate: Scanner Evasion and Dynamic Detection of Agent Skill Malware2 Jul 2026
Similar, not cited
Close in wording, no citation either way
- 2026Towards a Risk Assessment of Malicious Skill Files in Coding Agents
- 2026"Do Not Mention This to the User": Detecting and Understanding Malicious Agent Skills in the Wild
- 2026Trust Me, Import This: Dependency Steering Attacks via Malicious Agent Skills
- 2026MalSkillBench: A Runtime-Verified Benchmark of Malicious Agent Skills
- 2026SkillBloat: Token Amplification Attacks via Skill Injection in LLM Coding Agents
- 2026SkillShield: Prompt-Space Security Skills for LLM Coding Agents
- 2026Agent Skills in the Wild: An Empirical Study of Security Vulnerabilities at Scale
- 2026EVOMAL: Self-Poisoning in Self-Evolving Coding Agents