cs.CROct 14, 2026

CoRedSkill: Stealthy Skill Composition Attacks via AST-Guided Injection

Authors: Qichen Zhao, Shengfang Zhai, Qingni Shen, Zhonghai Wu, Jiaheng Zhang

Organizations: Peking University · National University of Singapore

Abstract

Agents extend their capabilities through reusable skills that package instructions, executable code, and resources. Composing these skills enables complex task workflows, but their dependencies can also connect malicious operations across skills, making their combined intent difficult to identify through individual-package auditing. We introduce CoRedSkill, a compositional red-teaming method that forms stealthy attacks through cooperating skills while preserving their original utility. CoRedSkill decomposes an existing workflow into interdependent skills and embeds attack operations in task functions through abstract syntax tree (AST) rewriting, with skill instructions guiding the agent to autonomously select and invoke the relevant skills, and workflow dependencies and intermediate artifacts connecting the injected operations during task execution. We construct a benchmark of 150 cases covering 50 tasks and three attack objectives to evaluate attack success, task completion, and audit detection. In the main evaluation, CoRedSkill achieves 98.0% attack success and 95.3% task success with a 3.3% detection rate, and a joint success rate of 90.7% (attack success, task completion, and audit evasion in the same case) compared with 6.7--42.7% for the four baselines. Skill compositions can therefore complete legitimate tasks while carrying out unauthorized operations that evade auditing.

Figures & tables

Appendix figures & tables4 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. JailbreakSkill: Scaling Automated Red-Teaming with Reusable and Ever-Evolving Skills

    Aug 17, 2026Xiaoyu Wen, Jiajia Li, Zhida He +11LLM Jailbreak AttacksAutomated Red Teaming

  2. Proteus: A Self-Evolving Red Team for Agent Skill Ecosystems

    May 12, 2026Zhaojiacheng ZhouLLM Agent SecurityAutomated Red Teaming

  3. SkillDRE: Dual-Stage Red-Team Evolution of Agent Skills via Pre-Execution and Runtime Feedback

    Sep 26, 2026Pengyu Zhu, Jingyi Yang, Yi Liu +2Automated Red TeamingLLM Red Teaming