CompoSkill: Compositional Skill Chain Attacks from Individually Scanner-Passing LLM Agent Skills
Organizations: Hangzhou Dianzi University · Ant Group · Zhejiang University · Tsinghua University
Abstract
Autonomous AI agents tackling Long Horizon Tasks depend on marketplace skills that are certified one at a time: a scanner returns a safety verdict for each skill and declares the ecosystem safe if every package passes. We show that this assumption fails under skill composition. A skill may pass the per-skill scanner individually yet participate in a risky composition when an agent connects its outputs, capabilities, or side effects with those of other scanner-passing skills. This makes skill composition risk a path level property rather than a node level property, explaining why existing skill scanners that inspect individual packages achieve limited interception. To study this threat, we present CompoSkill, a framework that constructs skill composition attacks through a dual attacker system. The white-box attacker knows the victim's installed skill pool and directly injects explicit skill-id sequences; the black-box attacker knows only a role profile, downloads the top marketplace skills for that scenario, builds a Skill Composition Graph, and searches for high risk chains whose implicit lures never name skill identifiers. We further construct CompoSkill-Bench, a benchmark of 1,140 records built from long-horizon professional workflows across five threats and six scenarios on OpenClaw and Nanobot. CompoSkill achieves risk Chain Formation Rates (CFR) up to 83.3% in the white box setting and 80.6% in the black box setting, while existing skill scanners block only a limited fraction of the risky compositions. Finally, we observe a bridge-bonus-then-hop-decay pattern: a bridge skill can increase attack success, but Attack Success Rate (ASR) decreases once additional hops make the risk chain longer than three skills. These results expose a systematic gap in single skill certification for autonomous AI agents.
Figures & tables
| Threat Type | Source Node | Bridge Node | Terminal Node |
|---|---|---|---|
| T1 Data Exfiltration | Read secrets, credentials, or private notes | Format, summarize, or package payload | Send via HTTP, webhook, or email |
| T2 Memory Tampering | Read memory or policy files | Generate disguised persistence payload | Write back long-term memory |
| T3 Privilege Escalation | Inspect environment or permissions | Generate scripts or command plans | Execute shell or privileged command |
| T4 Multi-Agent Hijacking | Read handoff or routing state | Pollute shared state or task routing | Propagate across agent boundary |
| T5 Resource Exhaustion | Probe quota or resource limits | Wrap redundant loops or retries | Trigger repeated calls or budget blow-up |
| Nanobot | OpenClaw | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Threat | GPT-5.4 | Gemini-3.1 | DeepSeek-V4 | LongCat-2.0 | GPT-5.4 | Gemini-3.1 | DeepSeek-V4 | LongCat-2.0 | ||||||||
| ASR | CFR | ASR | CFR | ASR | CFR | ASR | CFR | ASR | CFR | ASR | CFR | ASR | CFR | ASR | CFR | |
| Data Exfiltration | 10.5 | 26.3 | 15.4 | 61.5 | 53.2 | 80.6 | 39.5 | 63.2 | 19.7 | 25.0 | 52.6 | 60.5 | 71.1 | 72.4 | 69.7 | 71.1 |
| Memory Tampering | 9.2 | 13.2 | 36.0 | 56.0 | 57.7 | 64.8 | 28.6 | 42.9 | 11.8 | 13.2 | 47.4 | 52.6 | 28.9 | 35.5 | 15.8 | 17.1 |
| Privilege Escalation | 14.5 | 30.3 | 38.7 | 61.3 | 55.3 | 71.1 | 32.9 | 50.0 | 11.8 | 11.8 | 36.8 | 38.2 | 39.5 | 43.4 | 38.2 | 38.2 |
| Multi-Agent Hijacking | 12.5 | 12.5 | 11.1 | 44.4 | 31.6 | 50.0 | 23.8 | 42.9 | 10.6 | 10.6 | 25.0 | 25.0 | 39.5 | 39.5 | 23.7 | 23.7 |
| Config | Regime | CFR | DBR | Util |
|---|---|---|---|---|
| A: no scanner | — | 63.2 | 1.00 | 0.69 |
| B: openclaw SkillsGuard | strict-block | 36.8 | 0.58 | 0.72 |
| C: Cisco AI Defense | strict-block | 40.8 | 0.65 | 0.67 |
| D: NVIDIA SkillSpector | strict-block | 31.6 | 0.50 | 0.60 |
AI Agent Security
Artificial intelligence agent security studies attacks and safeguards for tool-using, persistent, and collaborative systems across digital and physical settings.
See all 510 papers