CoRedSkill: Stealthy Skill Composition Attacks via AST-Guided Injection
Qichen Zhao, Shengfang Zhai, Qingni Shen, Zhonghai Wu, Jiaheng Zhang
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.
Create a lesson
Related papers
VX-One: Typed, Calibrated Decision Heads for Real-Time Perimeter Triage - An empirical study of unknown-attack honesty, cascade gray zones, and calibration under drift
Juan S. Santillana
GhostFaceMPC: Privacy-Preserving Face Recognition with Multi-Party Computation
Davide Carnemolla, Dario Catalano, Mario Di Raimondo
Free-XOR TFHE via Lazy Bootstrapping
Ali Ajorian, Osman Biçer
Characterizing and Defending Utility-Hijacking in Instruction-Tuning Data Selection
Yahao Ren, Jian Lou, Huadi Zheng et al.
Compaction Laundering: Provenance Destruction in Context-Compacting Coding Agents
Arshan Dabirsiaghi
Linear Self-Symmetries of Inverse-Based S-boxes: Generic Rigidity and Applications
Zheng Zhang, Na Zhang