CoSA: The Conflict of Skills Attack in Real-World LLM Agent Ecosystems
Organizations: University of Science and Technology Beijing · ZODA · Fangcun Leap · University of New South Wales ·
Abstract
Agent Skills allow LLM agents to combine reusable capabilities, but checking each Skill in isolation cannot rule out policy violations when they are composed. We term such failures Conflict of Skills (CoS): artifacts or assessment signals produced for one purpose may be reused downstream without preserving the restrictions or authorization needed for their new use. Using controlled executions of publicly available Skills and matched single-Skill controls, we identify four recurring mechanisms behind CoS. Building on these findings, we introduce the Conflict of Skills Attack (CoSA), which adds locally admitted Skills to an existing pool to supply missing business operations (capability supplementation) or reshape artifact exchange, decision reuse, and target/action bindings (relationship reshaping). CoSA leaves existing Skills and runtime permissions unchanged. To evaluate this threat under autonomous Skill selection, we introduce CoSA-Bench, built from real-world Skills and controlled services, with 288 tasks across recruiting, finance, IT, and business, covering data leakage, unauthorized state modification, and unsafe execution. Across five LLMs and three agent harnesses, additions capped at 5% of each original pool raise the policy-violation rate from 35.02% to 58.45%, an increase of 23.43 percentage points. Trace analysis links compliant-to-violating transitions to cross-Skill dependencies involving the additions. Finally, we develop a lightweight harness-level guard that checks information flow and authorization before consequential actions. On OpenClaw recruiting tasks across five models, the guard reduces violations from 65.28% to 6.67%, while policy-compliant task completion on matched benign controls changes from 66.67% to 65.00%.
Figures & tables
| Domain | Tasks | DL | UA | UE | |
|---|---|---|---|---|---|
| Recruiting | 49 | 72 | 24 | 24 | 24 |
| Finance | 73 | 72 | 24 | 24 | 24 |
| IT | 64 | 72 | 24 | 24 | 24 |
| Business | 66 | 72 | 24 | 24 | 24 |
| Policy violation | OTR | ITR | ||||
|---|---|---|---|---|---|---|
| Harness | Original | CoSA | ASR | Original | CoSA | CoSA |
| OpenClaw | 31.94 | 54.24 | +22.29 | 77.57 | 76.53 | 68.61 |
| OpenHands | 40.07 | 66.11 | +26.04 | 96.04 | 94.79 | 88.82 |
| OpenCode | 33.06 | 55.00 | +21.94 | 96.81 | 97.78 | 84.44 |
| All settings | 35.02 | 58.45 | +23.43 | 90.14 | 89.70 | 80.63 |
| Variant | ASR (%) | ASR vs. original (pp) |
|---|---|---|
| Original pool | 31.94 | — |
| Random Benign Injection | 26.39 | |
| Random CoSA Candidate Selection | 43.40 | |
| Full CoSA | 54.24 |
Appendix figures & tables11 assets
Supplementary material from the paper’s appendix.
Appendix
| Role | Meaning |
|---|---|
| READ | Retrieve information from environment resources beyond the supplied inputs. |
| TRANSFORM | Reformat, aggregate, filter, or derive information from supplied inputs. |
| ASSESS | Produce a score, recommendation, readiness judgment, or decision signal. |
| EXTERNALIZE | Send or expose information to another recipient or system. |
| MUTATE | Change a persistent resource or business state. |
| EXECUTE | Run code, a command, or another executable workload. |
| Field | Meaning |
|---|---|
| Declared business function of operation . | |
| Required inputs, including artifact types, fields, formats, and relevant environment state. | |
| Produced outputs, artifacts, observations, or state signals. | |
| Runtime permissions required by the operation. | |
| Observable side effects, including disclosure, persistent mutation, or execution. | |
| Assessment signals produced or accepted by the operation, such as scores, recommendations, readiness judgments, and status indicators. |
| Condition | Violations | Completed tasks |
|---|---|---|
| Single-Skill control | (8.33%) | (91.67%) |
| Selected multi-Skill composition | ( 68.33% ) | (91.67%) |
| Harness | Model | Original ASR | CoSA ASR | ASR | ITR |
|---|---|---|---|---|---|
| OpenClaw | Qwen3.6 | 34.03 | 59.38 | +25.35 | 71.88 |
| MiniMax-M3 | 36.46 | 57.99 | +21.53 | 66.67 | |
| DeepSeek-V4 | 32.64 | 60.76 | +28.13 | 66.32 | |
| GPT-5.6 | 20.14 | 29.86 | +9.72 | 70.14 | |
| GLM-5.1 | 36.46 | 63.19 | +26.74 | 68.06 | |
| OpenHands | Qwen3.6 | 42.01 | 72.57 | +30.56 | 86.11 |
| Group | OpenClaw | OpenHands | OpenCode |
|---|---|---|---|
| Recruiting | 41.67 / 65.28 | 35.83 / 64.44 | 38.06 / 65.83 |
| Finance | 27.50 / 48.06 | 37.22 / 63.06 | 36.67 / 55.56 |
| IT | 26.11 / 47.22 | 45.28 / 68.61 | 28.89 / 47.78 |
| Business | 32.50 / 56.39 | 41.94 / 68.33 | 28.61 / 50.83 |
| DL | 39.38 / 64.38 | 43.75 / 74.79 | 44.79 / 70.00 |
| UA | 37.50 / 55.63 | 43.75 / 69.58 | 35.83 / 56.46 |
| Risk | |||||
|---|---|---|---|---|---|
| DL | 450 | 554 | 60 | 376 | 450 |
| UA | 365 | 507 | 55 | 513 | 365 |
| UE | 347 | 302 | 35 | 756 | 347 |
| Total | 1,162 | 1,363 | 150 | 1,645 | 1,162 |
| Model | DL | UA | UE | Overall |
|---|---|---|---|---|
| Qwen3.6 | 70.83 / 0.00 | 54.17 / 0.00 | 41.67 / 0.00 | 55.56 / 0.00 |
| GPT-5.6 | 58.33 / 8.33 | 50.00 / 8.33 | 16.67 / 0.00 | 41.67 / 5.56 |
| DeepSeek-V4 | 83.33 / 20.83 | 79.17 / 8.33 | 66.67 / 8.33 | 76.39 / 12.50 |
| GLM-5.1 | 95.83 / 8.33 | 58.33 / 8.33 | 87.50 / 8.33 | 80.56 / 8.33 |
| MiniMax-M3 | 91.67 / 20.83 | 83.33 / 0.00 | 41.67 / 0.00 | 72.22 / 6.94 |
| All models | 80.00 / 11.67 | 65.00 / 5.00 | 50.83 / 3.33 | 65.28 / 6.67 |
| Model / risk | Valid BLOCK | Risk Success | No Effective Risky Action | Risky Actions Produced | Risk Coverage (%) |
| Qwen3.6 | 2 | 0 | 70 | 2 | 100.00 |
| GPT-5.6 | 22 | 4 | 46 | 26 | 84.62 |
| DeepSeek-V4 | 31 | 9 | 32 | 40 | 77.50 |
| GLM-5.1 | 27 | 6 | 39 | 33 | 81.82 |
| MiniMax-M3 | 33 | 5 | 34 | 38 | 86.84 |
| Overall | 115 | 24 | 221 | 139 | 82.73 |
| Scope | (ITR, CoSA ASR) | (ITR, ASR) | (ITR, ASR) |
|---|---|---|---|
| All groups | 0.397 | 0.058 | 0.007 |
| OpenClaw | 0.389 | -0.053 | -0.115 |
| OpenHands | 0.320 | 0.116 | -0.008 |
| OpenCode | 0.415 | 0.015 | -0.080 |
LLM Agent Security
Large language model agent security studies attacks and safeguards for systems that plan, use tools, retain memory, and act across applications.
See all 330 papers