跳到正文
arXiv:cs.AI· Xiaofang Yang, Ziqi Miao, Chen Qian, Dianbo Sui, Jing Shao, Lijun Li·· 13 小时前

Defense-as-Skill:为技能增强型智能体演化运行时防护技能

Defense-as-Skill: Evolving Runtime Guard Skill for Skill-Augmented Agents

AI 导读

研究者提出 Defense-as-Skill,将运行时防护本身实现为可安装、可检查、可编辑的技能,其防护组件 SkillSonar 在不改动智能体运行时的前提下,按用户任务边界将敏感动作判定为允许、重规划或确认。

正文

View PDF HTML (experimental)

Abstract:Skill-augmented agents load reusable skills as persistent runtime context, improving task performance but also giving malicious skills a durable channel for steering future actions. Such skills may leak secrets, corrupt code, bypass approvals, or stage data for exfiltration only after a concrete user task and workspace state make the unsafe action appear useful. This makes pre-install vetting insufficient and calls for runtime, task-conditioned protection. We propose Defense-as-Skill, a defense paradigm that implements the runtime guard itself as an installable, inspectable, and editable skill. Our guard, SkillSonar, runs alongside untrusted task skills and checks sensitive actions against the user's task boundary, routing each action to an allow, replan, or confirmation decision without modifying the underlying agent runtime. To study this setting, we construct SCOPE-R, a task-conditioned dataset covering 6 risk families and 21 sub-categories, with 206 attack-confirmed malicious instances and 43 benign tasks. We then improve SkillSonar on the SCOPE-R training subset using runtime guard-skill evolution, a Monte-Carlo Tree Search procedure that evolves the on-disk guard skill from feedback on the rollouts. Across Claude Code and OpenClaw, the evolved guard substantially reduces attack success while maintaining a favorable safety-utility trade-off; on repeated GLM-5 runs, ID ASR drops from 0.482 to 0.104 and OOD ASR from 0.606 to 0.115, with gains transferring across victim models, held-out risk families, and external benchmarks. These results show that runtime guards can be skill-native, transparent, and evolvable policy artifacts for skill-augmented agents.
Comments: Accepted by NeurIPS 2026. Code: this https URL
Subjects: Cryptography and Security (cs.CR); Artificial Intelligence (cs.AI)
Cite as: arXiv:2609.01487 [cs.CR]
  (or arXiv:2609.01487v2 [cs.CR] for this version)
  https://doi.org/10.48550/arXiv.2609.01487

arXiv-issued DOI via DataCite

Submission history

From: Xiaofang Yang [view email]
[v1] Tue, 1 Sep 2026 16:19:31 UTC (8,400 KB)
[v2] Fri, 9 Oct 2026 12:29:56 UTC (8,398 KB)

来源:arXiv:cs.AI · arxiv.org