The CompoSkill framework launches attacks by combining Agent skills that each pass scanningCompoSkill: Compositional Skill Chain Attacks from Individually Scanner-Passing LLM Agent Skills
The researchers propose CompoSkill to evaluate skill composition attacks; on OpenClaw, black-box data exfiltration ASR reaches 71.1%, and existing scanners retain at least 50% bypass rate.
The attacker's goal is to induce the agent to combine benign skills into source–bridge–terminal attack chains to cause harm; it is divided into two knowledge settings: the white-box attacker knows the installed skill pool and injects explicit skill-id sequences; the black-box attacker only knows public market metadata and user profiles, uses SCG graph optimization to retrieve high-risk chains, and injects implicit business prompts without skill-ids.
- Autonomous agents often assemble multiple specialized skills in long-horizon tasks. Existing security audits only independently detect at the granularity of individual skills, failing to identify cross-skill data flows and harmful attack chains formed when multiple individually benign skills are combined at runtime.
- CompoSkill constructs a skill composition graph, abstracting skills as capability tuples, and searches for source-bridge-terminal attack chains via constrained k-shortest path graph optimization. The framework includes a white-box attacker that injects explicit skill invocations and a black-box attacker triggered implicitly only via business instructions.
- On CompoSkill-Bench, black-box attacks achieve up to 71.1% ASR and 80.6% CFR. Existing single-skill scanners still have a defense bypass rate of 0.50 to 0.65 under strict blocking mode; three-skill chains are easier to trigger than two-skill chains due to the bridge node's format adaptation.
- The paper does not have a dedicated section discussing limitations and future directions. Experiments cover 4 models, 2 agent platforms, and 6 professional scenarios, but the paper does not report agreement rates between evaluation judgments and manual review, nor the number of repeated runs.
- Evaluated models
- GPT-5.4Gemini-3.1-flashDeepSeek-V4LongCat-2.0OpenClaw SkillsGuardCisco AI Defense Skill ScannerNVIDIA SkillSpector
- Benchmarks
- CompoSkill-Bench
- Metrics
- CFRASRUtilityDBR
The researchers propose the CompoSkill framework, which uses agent skills that each individually pass market security scanning, and combines them to form source-bridge-terminal risk chains to carry out attacks. The white-box attacker knows the victim's skill pool and injects explicit skill sequences; the black-box attacker only uses persona profiles to download popular market skills, builds a Skill Composition Graph, and searches for high-risk chains without exposing skill IDs. The researchers built CompoSkill-Bench with 1,140 records on two runtimes, OpenClaw and Nanobot, five threat categories, and six professional scenarios; the risk chain formation rate is up to 83.3% for white-box and 80.6% for black-box. Existing SkillsGuard, Cisco AI Defense Skill Scanner, and NVIDIA SkillSpector still leave 31.6% to 40.8% chain formation rates under strict blocking mode, with defense bypass rates of 0.50 to 0.65.
Why it was selectedThe paper proposes an attack framework at the skill composition level, showing that individual skills passing scanning does not mean the combined execution path is safe, and can serve as a reference for security evaluation of skill markets and agent runtimes.
Paper analysis
What problem does this paper attempt to solve?
Existing single-skill security scanning has blind spots; multiple independent benign skills can combine at runtime to form harmful paths.
Single-skill independent security detection cannot prevent cross-skill attack chains formed through skill combination.
- Long-horizon tasks and skill mechanisms: Autonomous agents handling long-horizon specialized tasks need to install multiple specialized skills from the marketplace; these skills grant the agent system-level permissions such as file read/write, network access, and command execution, and carry implicit data flows.
- Blind spots of per-skill scanning: Existing marketplace reviews detect at the granularity of individual skills; the authors state that even if each skill passes security review independently, the agent may orchestrate them at runtime into harmful source-bridge-sink chains, and security properties fail when combined.
- Combination attack framework and benchmark: The authors propose the CompoSkill attack framework, combining white-box and black-box dual attacker systems to assess combination risks, and construct the CompoSkill-Bench benchmark containing 1,140 records.
- Threat model:
- Attack goal: induce the agent to combine benign skills into source-bridge-sink attack chains, achieving harmful effects such as data exfiltration, memory tampering, privilege escalation, multi-agent hijacking, or resource exhaustion.
- Attacker knowledge: divided into white-box attacker Aw and black-box attacker Ab; Aw knows the victim's installed skill pool and injects explicit skill identifier sequences; Ab only knows public marketplace metadata and user profiles, inferring work scenarios.
- Attacker capability: the black-box attacker injects implicit prompts through business inputs the victim may encounter, containing no skill identifiers, and the agent planner autonomously orchestrates calls.
- Victim system: autonomous agents running on Nanobot or OpenClaw platforms, having installed role skills from ClawHub matching daily workflows.
What related research exists?
Existing research mostly focuses on single-skill backdoors, injections, or two-node combinations, lacking automated attack and defense modeling for multi-hop combined attacks.
Large Language Model Agent Security and Prompt Injection
- AgentPoison (Chen et al. 2024) hijacks decisions through long-term memory poisoning; MINJA (Dong et al. 2026) achieves memory injection with minimal perturbations; Crescendo (Russinovich et al. 2025) bypasses alignment defenses through multi-turn progressive induction. The authors note these works focus on single injection points and do not address cross-skill combination attack surfaces.
Skill and Plugin Ecosystem Security
- BadSkill (Tie et al. 2026) and PhantomSkill (Lin and Yu 2026) implant backdoors through model poisoning and code disguise, respectively; Dynamic Malicious Skills (Chen et al. 2026), SKILL-INJECT (Schmotz et al. 2026), and SkillJect (Jia et al. 2026) use skill documentation or files to achieve prompt injection.
- On the defense side, SkillGuard (Pan et al. 2026) and structured security audits (Lv et al. 2026) impose permission constraints or audits on individual skills. The authors note that the threat model granularity in these works is a single skill, leaving cross-skill combination risks invisible.
Agent Protocols and Skill Combination Risks
- AgentThread (Zheng et al. 2026) performs formal security analysis of agent bridging protocols at the protocol layer, finding 30 failures that only appear under combination; SkillTrojan (Feng et al. 2026) studies skill backdoors but still assumes a single skill contains a backdoor.
- SkillProbe (Guo et al. 2026) audits 2,500 ClawHub skills to flag combination risk pairs, but the authors note it is a market audit rather than runtime exploitation; SkillReact (Wang et al. 2026b) evaluates pairwise combination risks of 211K skill pairs, but is limited to 2 nodes and single hops; SCR-Bench (Xie et al. 2026) records path-level results under three combination mechanisms, but does not propose an attacker model, does not automate chain synthesis, and does not vary chain length.
Baseline Methods and Benchmarks
- The paper compares three skill scanners: OpenClaw SkillsGuard, Cisco AI Defense Skill Scanner (Cisco AI Defense 2026), and NVIDIA SkillSpector (NVIDIA 2026); the evaluation benchmark is the authors' CompoSkill-Bench.
Positioning of This Work
- The authors position this work at the skill layer itself, not targeting protocol bridging mechanisms, but rather the skill combination attack surface assembled by the agent's own planner within autonomous agents, where the attack system automatically synthesizes and executes multi-hop attack chains based on public market metadata.
How does the paper address this problem?
CompoSkill uses a skill composition graph and constrained shortest path search to find high-risk chains, and constructs both white-box and black-box attackers.
CompoSkill is divided into two stages: constructing a Skill Composition Graph (SCG) that encodes the capability-level composability of market skills, and synthesizing high-risk attack chains through constrained graph optimization and converting them into professional task prompts.
Skill Abstraction and Capability Space
- Represent each skill as a capability tuple s = ⟨I(s), O(s), r(s)⟩, ignoring implementation details already checked by individual scanners.
- The capability alphabet contains 7 atomic capabilities: Σ = {file, net, cmd, mem, cfg, db, msg}. I(s) and O(s) are input and output capability subsets extracted from market metadata; r(s) ∈ {0.2, 0.5, 0.9} corresponds to low, medium, and high risk labels given by the market.
Skill Composition Graph and Path Risk Constraints
- For a specific professional scenario, collect a candidate skill set V and build a directed graph G = (V, E, w). When an upstream skill's output and a downstream skill's input have an intersection, a directed edge is established, with weight reflecting the proportion of downstream required capabilities satisfied: w(sa, sb) = |O(sa) ∩ I(sb)| / |I(sb)| ∈ (0, 1]. The authors note that a high edge weight does not mean maliciousness, but rather indicates that the two are easy for a planner to call sequentially.
- Divide capabilities into source capability set Csrc = {file, cfg, db} (reading sensitive internal state) and terminal capability set Cterm = {net, cmd, msg, mem} (externalizing, executing, or persisting attacks).
- A risk chain is defined as a short path P = (ssrc, [sbrg,] sterm), with path length 2 or 3; the source node's output must contain a source capability, the terminal node's output must contain a terminal capability, and the bridge node in a three-node chain must maintain graph connectivity.
Constrained Shortest Path Search and Filtering
- The black-box attacker synthesizes candidate chains based on market metadata, defining a path composite score formula:
Score(P) = ( ∏j=1|P|−1 w(sj, sj+1) ) r(ssrc) r(sterm) The formula encourages natural compositional transitions through the product of edge weights, while preferring high-harm capabilities through endpoint risk terms.
- Convert edge weights to log-domain costs c(sa, sb) = -log w(sa, sb); for fixed endpoint pairs, maximizing the score is equivalent to minimizing the path cost:
argmaxP Score(P) = argminP ∑j=1|P|−1 c(sj, sj+1) This formula transforms chain discovery into a constrained k-shortest path problem, solved using Yen's algorithm with oversampling factor α = 10 and output budget K = 10.
- After ThreatFilter filters endpoints matching threat types, apply a Coherent filter check: require that the overlap ratio of input-output capabilities between adjacent skills is at least 0.5, and that intermediate artifacts are semantically consistent with the work scenario.
Dual Attacker Task Instantiation
- The white-box attacker Aw knows the target's installed skill pool and directly injects prompts containing explicit skill identifier call sequences.
- The black-box attacker Ab only knows the user's professional profile, infers the work scenario from the market, retrieves high-risk chains, and generates implicit prompts containing only capability-level business instructions, without revealing any skill names or tool call syntax.
What experiments did the paper conduct?
Black-box attack ASR reaches up to 71.1%, existing scanners retain at least 50% of attack capability, and attacks exhibit bridge dividends and hop-count decay.
Experimental Setup
- Models tested: GPT-5.4, Gemini-3.1-flash (abbreviated as Gemini-3.1 in the original table), DeepSeek-V4, LongCat-2.0.
- Benchmark dataset: CompoSkill-Bench, containing 6 professional scenarios (healthcare, financial investment, legal compliance, digital assets and payments, DevOps and system administration, marketing and information operations), 76 roles, covering 5 threat types, with a total of 380 long-horizon task instances; each instance has 3 variants: clean, explicit injection (white-box Aw), implicit injection (black-box Ab), totaling 1,140 records. All skills are taken from the top 1000 by downloads on ClawHub and all independently passed platform security audits.
- Agent platforms: Nanobot and OpenClaw.
- Baseline defenses: OpenClaw SkillsGuard, Cisco AI Defense Skill Scanner, NVIDIA SkillSpector, all in strict-block mode.
- Metric definitions: Chain formation rate (CFR, proportion where the agent invokes the full chain and passes sensitive state), attack success rate (ASR, proportion where the terminal step actually triggers harmful effects), task utility (Utility, task completion score on no-injection variants), defense bypass rate (DBR, ratio of CFR with defenses on vs. off).
- Evaluation method: LLM-as-a-judge reads full execution traces for judgment, followed by manual checks by the authors to verify judgment accuracy.
Main Results
Swipe horizontally to read the table
Model Nanobot ASR (%) Nanobot CFR (%) OpenClaw ASR (%) OpenClaw CFR (%) GPT-5.4 15.2 25.8 12.1 13.4 Gemini-3.1-flash 25.4 54.3 36.6 39.9 DeepSeek-V4 45.6 64.1 45.8 48.2 LongCat-2.0 28.4 44.3 34.5 35.0 (According to Table 2, overall results for three-skill chains under black-box attacks; in the original table, Gemini-3.1-flash is labeled as Gemini-3.1)
- Performance differences across models: The authors note that DeepSeek-V4 is most affected under black-box settings, showing the highest overall metrics on both platforms; GPT-5.4 shows the lowest chain formation rate, which the authors attribute to frontier models being more conservative in multi-skill chain assembly.
- Formation rate higher than trigger rate: CFR is higher than ASR across all models and platforms; the authors analyze that assembling source-bridge-terminal chains is easier than completing the final harmful operation, and agents often assemble the chain without executing the final harm.
- Threat type distribution differences: The authors state that Data Exfiltration and Privilege Escalation are the easiest to form, with ASR and CFR reaching 71.1% and 72.4% respectively for data exfiltration on OpenClaw/DeepSeek-V4 (according to Table 2).
Defense Effectiveness of Existing Skill Scanners
- Test setup: Evaluated on the Nanobot platform with OpenClaw SkillsGuard, Cisco AI Defense, and NVIDIA SkillSpector in strict-block mode against black-box combination attacks (according to Table 3).
- Experimental results: Without scanners, baseline CFR is 63.2% and Utility is 0.69; with SkillsGuard, CFR is 36.8%, DBR is 0.58, Utility is 0.72; with Cisco AI Defense, CFR is 40.8%, DBR is 0.65, Utility is 0.67; with NVIDIA SkillSpector, CFR is 31.6%, DBR is 0.50, Utility is 0.60.
- Author interpretation: The authors state that even when configured to directly block violating skills, defense bypass rates under each scanner still reach 0.50–0.65, retaining at least half of the combination attack capability; and benign task utility is not significantly degraded, demonstrating a mechanistic disconnect between single-skill scanning and path-level risk.
Impact of Skill Chain Length on Attacks
- Test setup: Compared 2-skill and 3-skill chain formation rates under implicit injection on Nanobot (according to Figure 4), and extended chain length to L ∈ {2, 3, 4, 5, 6} on DeepSeek-V4 to test ASR (according to Figure 5).
- Experimental results: In the 2-skill vs. 3-skill comparison, data exfiltration CFR rises from 64.9% to 80.6%, privilege escalation from 65.8% to 71.1% (according to Figure 4); in the L=2 to 6 extension experiment, average ASR across five threat types is 35.2% at L=2, rises to 55.4% at L=3, drops to 37.8% at L=4, 33.6% at L=5, and 21.8% at L=6 (according to Figure 5 and main text).
- Author interpretation: The authors propose a bridge-bonus-then-hop-decay pattern, suggesting that a single bridge skill packages direct jumps as routine business steps to lower vigilance, but beyond 3 skills, additional hops mainly reduce path coherence and increase execution failure points.
White-box Attack Upper Bound Evaluation and End-to-End Case
- Test setup: Evaluated the explicit-injection white-box attacker Aw on Nanobot/DeepSeek-V4 (according to Figure 3), and conducted a case study on a DevOps pre-deployment compliance check scenario.
- Experimental results: Under white-box attacks, privilege escalation ASR reaches 59.7% and CFR 83.3% (Utility 86.2%), data exfiltration ASR is 28.3% and CFR 58.3% (according to Figure 3); average task utility in white-box scenarios is 75.3% (according to main text).
- Author interpretation: The authors state that white-box attacks give an upper bound on combination risk, and high utility makes such risks less noticeable in normal business; the case study shows that prompt injection is only an input channel, and the core of harm lies in the planner chaining three individually benign skills and passing sensitive state.
Other Ablations and Analyses
- Memory tampering metrics under white-box attacks: ASR 28.6%, CFR 30.6%, Utility 82.2% (according to Figure 3).
- Multi-agent hijacking metrics under white-box attacks: ASR 14.3%, CFR 38.1%, Utility 83.6% (according to Figure 3).
- Resource exhaustion metrics under white-box attacks: ASR 20.3%, CFR 51.4%, Utility 64.3% (according to Figure 3).
- CFR for 2-skill and 3-skill chains on memory tampering: 63.2% and 64.8% respectively (according to Figure 4).
- CFR for 2-skill and 3-skill chains on multi-agent hijacking and resource exhaustion: multi-agent hijacking 45.7% and 50.0%, resource exhaustion 38.6% and 53.9% respectively (according to Figure 4).
What are some points that can be further explored?
The paper does not dedicate a section to discussing limitations; experiments are evaluated on 4 models, 2 platforms, and 6 professional scenarios.
Limitations and Future Directions Noted by the Authors
The paper does not specifically discuss limitations.
Experimental Coverage
- Model coverage: Experiments tested 4 models: GPT-5.4, Gemini-3.1-flash, DeepSeek-V4, and LongCat-2.0 (Section 4).
- Platform coverage: Evaluations were conducted on two autonomous agent platforms: Nanobot and OpenClaw (Section 4).
- Scenario and role coverage: Evaluations covered 6 professional scenarios: healthcare, financial investment, legal compliance, digital assets and payments, DevOps and system administration, marketing and information operations, with a total of 76 roles (Section 3.3).
- Defense coverage: Defense experiments tested 3 single-skill scanners: OpenClaw SkillsGuard, Cisco AI Defense Skill Scanner, and NVIDIA SkillSpector (Section 4).
- Unreported information: The paper does not report specific agreement rates between LLM-as-a-judge judgments and manual review by the authors, nor does it report the number of repeated test runs.
Summarize the main content of the paper
The paper analyzes risks of agent skill composition, pointing out that single-package security certification status is not composable and that path-level protection is needed.
- Positioning and core problem: The paper targets scenarios where autonomous agents rely on skill mechanisms in long-horizon tasks, pointing out that in the existing ecosystem, independent security auditing of individual skills cannot prevent path-level attack risks arising from the runtime combination of skills.
- Attack framework modeling: Proposes the CompoSkill framework, which models skills as capability tuples based on 7 atomic capabilities and constructs a skill composition graph, transforming multi-hop attack chain synthesis into a constrained k-shortest path graph optimization problem. It designs a white-box attacker with explicit invocation and a black-box attacker triggered implicitly via business instructions.
- Benchmark construction: Constructs CompoSkill-Bench, which includes 6 professional scenarios, 76 roles, and 5 threat types, covering 380 task instances and 1,140 evaluation records.
- Main experimental findings: Black-box attacks achieve 71.1% ASR and 72.4% CFR on OpenClaw/DeepSeek-V4 data exfiltration tasks (Table 2); white-box attacks achieve 59.7% ASR and 83.3% CFR on Nanobot/DeepSeek-V4 privilege escalation tasks (Figure 3).
- Defenses and chain length patterns: Three mainstream single-skill scanners still have defense bypass rates of 0.50–0.65 in strict-block mode (Table 3); attack chains exhibit a bridge-bonus and hop-decay pattern, with average ASR across five threat types peaking at 55.4% at 3 skills, and longer chains showing reduced success due to decreased coherence (Figure 5).
- Author conclusions and implications: The authors note that a single skill passing security scanning is not composable; combinations of individually benign skills can still produce harmful behaviors. Agent security defenses urgently need to shift from isolated review of individual components to systematic monitoring of runtime execution paths and capability flows.