TL;DR
Modern AI agents extend their abilities using downloadable, third-party "skills"—modular bundles of instructions and scripts. This paper reveals a major blind spot in agent security: skill cascading attacks, where an attacker splits a malicious goal across multiple seemingly innocent skills. Individually, each skill passes security scans with flying colors, but when an agent runs them together in a shared context window, they quietly conspire to cause severe harm—like erasing a fatal drug-interaction warning before a doctor ever sees it.
What Problem Does This Paper Address?
If you've used tools like Claude Code, Codex, or OpenClaw, you're looking at the future of LLM agents: ecosystems where developers publish reusable "skills" on public marketplaces (like ClawHub) for anyone to install. Naturally, open marketplaces invite bad actors, so the community has built static and LLM-based security scanners to vet skills before installation.
Here is the catch: existing defenses assume the unit of danger is a single skill. In reality, skills don't run in vacuum-sealed chambers. They read from and write to the same shared context window. Because the underlying LLM treats earlier skill outputs as authoritative inputs for later skills, subtle, defensible tweaks in one skill can snowball through subsequent ones. Checking skills one by one is like inspecting the ingredients of a binary explosive separately and declaring both safe to bring on a plane.
Methods
The authors formalize a Skill Cascading Attack around three strict rules: individual stealth (every modified skill passes per-skill scanners), joint harm (running them together on a normal user prompt causes harm), and indispensability (undoing any single modification breaks the attack). They categorize these into Causal cascades (a sequential domino effect), Compositional cascades (parallel harmless fragments combining into a harmful whole), and Hybrid cascades.
To prove these aren't just theoretical edge cases, the authors built SKILLCASCADE, an automated multi-agent red-teaming factory powered by five specialized LLM agents:
- Scenario Discovery Agent: Mines marketplaces for skills that naturally chain together for realistic tasks.
- Attack Agent: Plans the cascade and rewrites the skills. Crucially, every edit must include a legitimate technical rationale—a plausible cover story a well-meaning developer might write (e.g., "filtering low-weight noise from executive summaries").
- Scanner Agent: Vets each modified skill in isolation using standard security tools; failures get sent back for stealthier rewrites.
- Test Case Generator & Sandbox: Pairs the skills with innocent user prompts and runs them in a fresh container.
- Judge Agent: Evaluates the execution trace to verify the attack actually worked, routing failures back to earlier agents for iteration.
Finally, the authors prototype an adaptive defense called the Behavior-Composition Scanner, which asks an LLM to summarize each skill's "if-then" behavioral commitments, chain them together, and imagine a counterfactual scenario where that chain goes wrong.
Datasets
By pointing SKILLCASCADE at real-world skills on ClawHub, the authors generated SKILLCASCADE-BENCH, the first benchmark dedicated to cross-skill vulnerabilities. It features 213 human-audited test cases (with substantial inter-annotator agreement, Fleiss's $\kappa = 0.82$) across 10 domains—ranging from Healthcare and Finance to E-commerce—averaging 3.25 skills per cascade. Unlike prior benchmarks that test single-skill prompt injections or malicious scripts, every case here is self-contained, benign in isolation, and strictly requires multi-skill interaction to trigger one of seven harmful objectives (such as decision manipulation, output corruption, or data exfiltration).
Key Insights and Ideas
- Harm operates at the semantic layer, not the code layer: Single-skill attacks usually leave dirty fingerprints—suspicious keywords, weird tool privileges, or overt prompt injections. Cascading attacks hug the benign baseline because they weaponize normal data-engineering practices (like re-labeling edge cases or down-weighting background info) across shared LLM context.
- Simply concatenating skills doesn't fix scanner blindness: You might think, "Why not just feed all installed skills into an LLM scanner at once?" The authors tried this (
Joint-LLM), and it still missed over 80% of attacks. Without structured counterfactual reasoning about how outputs flow into inputs, scanners get lulled to sleep by each skill's locally reasonable cover story. - The LLM backbone matters way more than the agent framework: Switching between host platforms (OpenClaw, Claude Code, Codex) shifted attack success by less than 6 percentage points, proving the vulnerability is baked into the shared-context paradigm itself. Smaller models and open-weight models were notably more gullible than frontier flagships.
Key Results
- High Attack Success Rate (ASR): Across 24 combinations of agent frameworks and LLM backbones, cascades succeeded 89.4% of the time on average—ranging from 76.5% on Claude Opus 4.6 up to 97.1% on Qwen 3 72B. Even heavily safety-aligned domains like Healthcare saw over 80% ASR.
- Near-Total Evasion of Existing Defenses: Modified skills bypassed five per-skill scanners at rates between 86.6% and 94.3% (within 4.7 points of untouched, benign skills). Joint-skill scanners still approved 81.7%–83.0% of malicious cascades, and four runtime trajectory monitors failed to catch 88.5% of attacks on average.
- True Indispensability: In ablation tests on three-skill cascades, reverting just one modified skill back to its original version caused ASR to plummet from ~90% down to 13%–18%.
- Proof-of-Concept Defense: Their proposed Behavior-Composition Scanner slashed attack stealth on causal cascades by over 30 percentage points (dropping stealth from 83.0% to 52.8%), though parallel compositional and hybrid attacks remained tougher nuts to crack (58.6% and 64.1% stealth).
Limitations and Future Work
The authors note that all experiments took place in controlled sandboxes rather than live production systems, meaning the 89.4% ASR represents a worst-case stress test rather than real-world frequency. Furthermore, the threat model requires victims to co-install multiple attacker-controlled skills—feasible via bundled vendor suites, though its exact prevalence in wild marketplaces remains an open empirical question. Looking ahead, because their counterfactual scanner is only a partial fix—especially struggling when harmless fragments aggregate in parallel—building rigorous, system-level compositional defenses is wide-open territory for future security research.
Summary updated