arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.19191cs.CR
收藏

PhantomSkill: 代理技能生态系统中的恶意代码注入

PhantomSkill: Malicious Code Injection in Agent Skill Ecosystems

National Yang Ming Chiao Tung University(国立阳明交通大学)

Yu-Ting Lin, Chia-Mu Yu

AI总结:

提出PhantomSkill攻击框架,通过VulMask技术将恶意行为隐藏在技能的辅助资源中,利用漏洞形状的实现绕过检测,在保持良性功能的同时降低警告和恶意软件检测率。

摘要:

代理技能使得基于LLM的编码代理能够从第三方包获取领域特定能力,但也引入了新的供应链攻击面。我们提出PhantomSkill,一个攻击框架,将恶意行为隐藏在技能的辅助资源中,而非其文本描述中。其核心技术VulMask将明显的恶意脚本重写为漏洞形状的实现,其恶意行为仅在攻击者控制的触发条件下激活。这种设计将可见信号从明确的恶意意图转变为看起来普通的易受攻击代码。在代表性的宿主技能、攻击目标、编码代理、生成模型和自动审查器上,与明显的恶意脚本相比,VulMask在保持良性功能的同时减少了警告和恶意软件级别检测。我们的结果表明,技能生态系统需要资源级审查、执行时隔离以及将代理技能中的可利用漏洞视为潜在恶意载荷的安全策略。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑