Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

PhantomSkill: Malicious Code Injection in Agent Skill Ecosystems

About

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.

Yu-Ting Lin, Chia-Mu Yu• 2026

Related benchmarks

TaskDatasetResultRank
Static Skill Scanner EvasionSkill Scanners Evaluation Suite
Actionable Findings27
24
Vulnerability Injection Attack EffectivenessSkill corpus GitHub and community agent skills (test)
Attack Success Rate (ASR)58.8
4
End-to-End Attack EffectivenessSkill corpus
ASR58.8
2
Showing 3 of 3 rows

Other info

Follow for update