NeurIPS 2026QuestionsPapersAreasAboutMarkdown

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

Xiaofang Yang, Ziqi Miao, Dianbo Sui, Jing Shao, Lijun Li

NeurIPS page · OpenReview · alphaXiv · Open on the map

Category: AI Safety, Security & Alignment › Multi-Agent Security Evaluation · Type: new method · Keywords: skill-augmented agents, runtime guard, defense-as-skill, Monte-Carlo Tree Search, security, code generation

Areas: AI Agents › Agent Robustness › LLM Agent Attacks; Safety & Security › Language Model Security › LLM Agent Security

Summary

Defense-as-Skill introduces SkillSonar, a runtime guard skill that evolves via Monte-Carlo Tree Search to protect skill-augmented agents while preserving task utility.

Explained to a 5-year-old

Some robots can learn tricks that they keep in memory. Sometimes a trick can be used to do something bad, like steal secrets, later on. We made a new helper that watches the tricks and decides if they are safe. The helper can learn to be better by trying things out. This helps keep the robots safe while they do their jobs.

Explained to a 5-year-old, longer

Imagine a robot that can remember many little tricks it can use when it needs to do something. These tricks are stored in the robot so they can be used again later, which helps the robot work faster. However, a bad trick could hide and wait for a special moment when it looks useful, then do something harmful like take secret information. To stop this, we created a friendly watcher that sits alongside the robot and checks each trick to see if it matches the task the user wants. The watcher can be changed and improved by playing many games and learning from the results. By practicing many times, the watcher gets better at spotting dangerous tricks while still allowing helpful ones. This makes the robot safer to use in real life, even when the tricks come from unknown sources.

For a technical reader

The paper presents a defense paradigm where the runtime guard itself is packaged as a skill that can be installed, inspected, and edited. This guard, SkillSonar, monitors actions against user task boundaries and routes them to allow, replan, or confirm decisions. It is improved using Monte-Carlo Tree Search evolution on a dataset of risky and benign tasks. Evaluations on two code-generation backends show reduced attack success with minimal overhead and good generalization.

Problem

Skill-augmented agents can be compromised by malicious skills that remain dormant until a specific task context makes unsafe actions appear useful, making pre-install vetting insufficient.

Method

The defense implements a runtime guard as an installable skill that monitors actions against task boundaries and uses Monte-Carlo Tree Search to evolve the guard’s decision policy from rollout feedback, without altering the underlying agent runtime.

Results

The approach reduces attack success on SCOPE-R while keeping benign task utility and modest token overhead, and it generalizes to out-of-distribution attack families.

Contributions

A runtime guard implemented as an evolvable skill for skill-augmented agents, a task-conditioned dataset SCOPE-R covering multiple risk families, and a Monte-Carlo Tree Search evolution procedure to improve the guard.

Practical relevance

Enables secure deployment of skill-augmented agents in real-world settings by providing transparent, evolvable runtime protection.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction