SkillDRE: Dual-Stage Red-Team Evolution of Agent Skills via Pre-Execution and Runtime Feedback
Pengyu Zhu, Jingyi Yang, Yi Liu, Li Sun, Sen Su
Beijing University of Posts and Telecommunications · North China Electric Power University · Chongqing University of Posts and Telecommunications
Published September 26, 2026 · on the feed September 29, 2026 · ▲ 2 · arXiv 2609.32400
The abstract
Agent skills package instructions, executable code, and task-specific resources into reusable artifacts that agents can improve using execution feedback. The same mechanism also enables attackers to evolve malicious skills, making them more effective and less detectable. However, a candidate skill may pass pre-execution scanning yet fail to realize its target under runtime defenses, while a revision that repairs execution may introduce new scanner findings. We introduce SkillDRE, a fully automated framework for evolving complete malicious skill packages through a dual-stage feedback loop. Given a benign task and its associated skills, SkillDRE autonomously constructs and validates a task-conditioned malicious objective and a verifiable judge rule. It then holds both fixed while evolving the skill implementation, with preservation of legitimate task capability. SkillDRE combines scanner-guided evolution with runtime-guided refinement informed by execution outcomes observed under runtime defense. Each runtime-guided revision returns to the pre-execution stage for rescanning and further optimization before re-execution, forming a cross-stage closed loop. Evaluated on SkillsBench across four victim models, SkillDRE achieves an average attack success rate of 45.28%, exceeding the strongest baseline by 40.3%, while its final submitted skills receive no SkillScan findings and largely preserve benign-task performance. These results show that two-stage defense feedback can serve as a useful learning signal for adaptive red teaming and that evaluating either defense stage in isolation can miss the resulting attack capability. Codes is available at https://github.com/whfeLingYu/SkillDRE
The Brief
2:54A short podcast summary of the paper. Written and voiced by AI.
Transcript
SkillDRE. Dual-Stage Red-Team Evolution of Agent Skills via Pre-Execution and Runtime Feedback. By Pengyu Zhu and four others, from the Beijing University of Posts and Telecommunications, North China Electric Power University, and one other institution. Published on the twenty-sixth of September. Its code repository is public and real: about twenty-five source files.
Agent skills bundle instructions, executable code and task-specific resources into reusable packages, and agents can improve them using feedback from execution. The same loop is open to attackers. A malicious skill can be evolved, too, to become more effective and harder to detect. Defences come in two stages, though, and they pull an attacker in different directions. A candidate skill can pass the scanner that inspects it before execution, and still fail to reach its goal once runtime defences are active. A revision that fixes the runtime failure can then trip new findings from the scanner. Optimizing against either stage alone leaves the other one standing.
SkillDRE is a fully automated red-team framework that evolves complete malicious skill packages against both stages at once, through a dual-stage feedback loop. It does not choose between satisfying the scanner and surviving the runtime defence. It alternates between them until one candidate does both. The point of building such a thing is to show what an adaptive attacker could achieve, so that the defences can be measured against it rather than against attacks that were never shaped to beat them.
It begins with a benign task and the skills associated with it. From these, SkillDRE constructs and validates, on its own, a task-conditioned malicious objective and a verifiable judge rule for deciding whether that objective was met. Both are then held fixed while the skill implementation evolves, and the evolution also has to preserve the skill's legitimate task capability. Two kinds of feedback drive it. Scanner-guided evolution works against the pre-execution stage. Runtime-guided refinement uses the outcomes observed when the skill runs under a runtime defence. Every runtime-guided revision goes back to the pre-execution stage to be rescanned and optimized further before it is executed again. That return trip closes the loop across the two stages.
The evaluation uses SkillsBench, across four victim models. SkillDRE reaches an average attack success rate of forty-five point two eight percent, which exceeds the strongest baseline by forty point three percent. Its final submitted skills draw no findings from SkillScan, and they largely preserve performance on the benign task. Put together, those three results describe a skill that works as an attack, passes inspection before it runs, and still does the job it claims to do, which is the combination the dual-stage loop was designed to reach.
Two conclusions come out of this, one for each side. For red teamers, feedback from both defence stages together is a useful learning signal for adaptive red teaming. For defenders, the warning is sharper: testing either stage in isolation can miss an attack that only exists because it was shaped against both.
Paper Quest · 7 chapters · about 22 min
Play this paper
Learn it by doing: make the calls the authors made, guess the result before you see it, and defend it in a viva graded on your own words. Chapter 1 is right here.
Chapter 1 🧩 · The problem
Two guards, and fixing one problem keeps waking the other.
You are red-teaming agents that load skills: packages of instructions, code and resources. Your job is to show what an adaptive attacker could do, so defences are measured fairly.
The road ahead
- 1 · The problem ~2 min
- 2 · What came before ~3 min
- 3 · The key idea ~3 min
- 4 · Choose your own research ~3 min
- 5 · Build the method ~3 min
- 6 · The experiment ~3 min You’ll guess: Evolving malicious skills against both a pre-execution scanner and a runtime defense, what average attack success rate did SkillDRE reach across four victim models on SkillsBench?
- 7 · The viva ~5 min Three questions from the examiners, answered in your own words. Win it for the paper’s trophy.
Free, with Google or an email address. Your stars and progress are kept.