arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.09378cs.CRcs.AI
收藏

BadSkill: 通过模型-技能污染对代理技能进行后门攻击

BadSkill: Backdoor Attacks on Agent Skills via Model-in-Skill Poisoning

Huazhong University of Science and Technology(华中科技大学);Lehigh University(里海大学)

Guiyao Tie, Jiawen Shi, Pan Zhou, Lichao Sun

AI总结:

研究针对代理技能中嵌入的模型提出后门攻击,通过污染技能中的模型实现隐蔽攻击,验证了在不同模型规模和扰动类型下的有效性,并指出模型承载技能作为代理生态系统中的新型供应链风险。

摘要:

代理生态系统越来越多地依赖可安装的技能来扩展功能,某些技能在其执行逻辑中捆绑了学习得到的模型 artifact。这创造了一个未被提示注入或普通插件滥用所捕捉的供应链风险:第三方技能可能看起来无害,但其捆绑的模型中可能隐藏恶意行为。我们提出了BadSkill,一种针对此模型-技能威胁面的后门攻击方法。在BadSkill中,攻击者发布一个看似无害的技能,其嵌入的模型经过后门微调,仅当常规技能参数满足攻击者选择的语义触发组合时才会激活隐藏的负载。为了实现此攻击,我们训练嵌入分类器,采用结合分类损失、基于边距的分离和污染聚焦优化的复合目标,并在受OpenClaw启发的模拟环境中评估,该环境保留了第三方技能安装和执行,同时允许受控的多模型研究。我们的基准涵盖13个技能,包括8个触发任务和5个非触发控制技能,总共有571个负面类查询和396个触发对齐查询。在八个架构(494M-7.1B参数)中,BadSkill在八个触发技能上实现了高达99.5%的平均攻击成功率(ASR),同时在负面类查询上保持了强大的良性侧准确性。在标准测试集上的污染率扫描中,3%的污染率已经产生91.7%的ASR。该攻击在评估的模型规模下和五种文本扰动类型下仍然有效。这些发现将模型承载技能识别为代理生态系统中的新型模型供应链风险,并推动了对第三方技能 artifact 的更强来源验证和行为审查。

英文摘要:

Agent ecosystems increasingly rely on installable skills to extend functionality, and some skills bundle learned model artifacts as part of their execution logic. This creates a supply-chain risk that is not captured by prompt injection or ordinary plugin misuse: a third-party skill may appear benign while concealing malicious behavior inside its bundled model. We present BadSkill, a backdoor attack formulation that targets this model-in-skill threat surface. In BadSkill, an adversary publishes a seemingly benign skill whose embedded model is backdoor-fine-tuned to activate a hidden payload only when routine skill parameters satisfy attacker-chosen semantic trigger combinations. To realize this attack, we train the embedded classifier with a composite objective that combines classification loss, margin-based separation, and poison-focused optimization, and evaluate it in an OpenClaw-inspired simulation environment that preserves third-party skill installation and execution while enabling controlled multi-model study. Our benchmark spans 13 skills, including 8 triggered tasks and 5 non-trigger control skills, with a combined main evaluation set of 571 negative-class queries and 396 trigger-aligned queries. Across eight architectures (494M--7.1B parameters) from five model families, BadSkill achieves up to 99.5\% average attack success rate (ASR) across the eight triggered skills while maintaining strong benign-side accuracy on negative-class queries. In poison-rate sweeps on the standard test split, a 3\% poison rate already yields 91.7\% ASR. The attack remains effective across the evaluated model scales and under five text perturbation types. These findings identify model-bearing skills as a distinct model supply-chain risk in agent ecosystems and motivate stronger provenance verification and behavioral vetting for third-party skill artifacts.

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

↑