arXiv:2610.35082cs.CLOct 2026

Manuscript Offprint

arXiv:2610.35082

CoSA: The Conflict of Skills Attack in Real-World LLM Agent Ecosystems

Yujia Zheng, Tianhao Li, Shangzhi Xu, Yuekai Huang, Ziyou Jiang, Zhaoyang Li, Yuyao Ge, Junran Peng, Mingyang Li

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Yujia Zheng 1,2∗†^{1,2*\dagger} Tianhao Li 2∗^{2*} Shangzhi Xu 3,4^{3,4} Yuekai Huang 5,6,7^{5,6,7} Ziyou Jiang 5,6,7^{5,6,7} Zhaoyang Li 5,6,7^{5,6,7} Yuyao Ge 6,8^{6,8} Junran Peng 1‡^{1\ddagger} Mingyang Li 5,6,7‡^{5,6,7\ddagger}

1^{1}University of Science and Technology Beijing 2^{2}ZODA 3^{3}Fangcun Leap 4^{4}University of New South Wales 5^{5}Institute of Software, Chinese Academy of Sciences 6^{6}University of Chinese Academy of Sciences 7^{7}State Key Laboratory of Complex System Modeling and Simulation Technology 8^{8}Institute of Computing Technology, Chinese Academy of Sciences

yujia.zheng@sigmir.org tianhao.li@owasp.org mingyang2017@iscas.ac.cn

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%.

sigmir-org.github.io/CoSA

1 INTRODUCTION

Modern AI agents increasingly solve complex tasks by composing multiple specialized capabilities over the course of execution. Agent Skills (Anthropic, 2025) make such capabilities reusable by packaging task-specific instructions, code, and resources as procedural knowledge (Xu & Yan, 2026; Zhan et al., 2024; Zhang et al., 2025). During execution, agents can select and compose Skills to complete delegated tasks (Gao, 2026; Xu & Yan, 2026; Li et al., 2026a). This modularity also creates dependencies between independently authored Skills, making their interactions an important source of security risk.

Public Skills have been found to contain prompt-injection, data-exfiltration, credential-theft, and behavior-manipulation threats (Liu et al., 2026b;a), and controlled attacks can induce exfiltration or

∗^{*}Equal contribution, co-first author.

†^{\dagger}Work done at ZODA.

1^{1}Corresponding author.

Figure

Figure 1: Motivating example. Although each Skill passes the individual security checks, their composition leads to unauthorized execution of code from a submitted package.

destructive actions (Schmotz et al., 2026), conceal payloads in auxiliary scripts (Jia et al., 2026), or backdoor bundled models (Tie et al., 2026). Corresponding defenses inspect Skill packages statically and semantically (Liu et al., 2026b; Hou & Yang, 2026), localize risky instruction spans through attention signals (Etteib et al., 2026), or enforce manifest-based runtime controls over contextual influence and action side effects (Pan et al., 2026).

However, these works largely treat individual Skill packages as the unit of analysis, yet passing such checks (Cisco AI Defense, 2026; agent-clis) does not ensure workflow level compliance, as individually benign Skills may jointly induce policy violations that remain undetectable. For instance, one Skill may check the status of a deployment, another may collect materials for reproducing a failure, and a third may run the validation steps configured in the CI/CD pipeline. When combined, the reproduction materials can lead the agent to execute code from a submitted package, even though its execution was never authorized (Figure 1). The root cause is that a single Skill's output can take on a more consequential role when other Skills reuse it, because the constraints tied to its original purpose are not carried along with the output. An adversary can exploit this by adding locally benign Skills to the target system, without modifying existing Skills or expanding runtime permissions. Since each addition is individually benign, isolated inspection cannot determine whether, once combined with the existing Skills, it steers the agent toward policy violations.

We formalize this vulnerability as Conflict of Skills (CoS) and identify four recurring mechanisms through controlled executions of real-world Skills with matched single-Skill controls. These findings guide the Conflict of Skills Attack (CoSA), which analyzes the existing Skill pool to construct additions through capability supplementation, supplying missing operations, and relationship reshaping, altering artifact exchange, decision propagation, and action-target bindings. CoSA selects a budgeted set of domain-relevant candidates passing individual security checks. We construct CoSA-Bench from public real-world Skills, controlled services, task assets, and policies, covering 288 business tasks across four domains and three risks: data leakage, unauthorized state modification, and unsafe execution. Paired runs compare original and augmented pools on tasks fixed before attack, with autonomous Skill selection. Dependency analysis guides a lightweight harness-level guard checking information flow and authorization before consequential actions.

We evaluate CoSA with five backbone LLMs and three agent harnesses, finding that small, locally benign additions can substantially amplify runtime risk. With augmentation capped at 5% of each original Skill pool, CoSA raises the pooled policy-violation rate by 23.43 percentage points, with increases across all four domains and three risk categories. OpenClaw ablations suggest that this effect depends on candidate construction and informed selection, while human-reviewed trajectories link compliant-to-violating transitions to cross-Skill dependencies involving the additions. This increase is only weakly associated with added-Skill retrieval and occurs without changes in the evaluated scanner's severe-alert counts, reinforcing the importance of examining how Skills interact during execution. Guided by this evidence, we evaluate a guard that checks information flow and authorization before consequential actions. In a five-model OpenClaw recruiting experiment, defended runs show substantially fewer violations (6.67% vs. 65.28%) with a small aggregate change in benign task completion (65.00% vs. 66.67%).

Contributions. We make the following contributions:

  1. We formalize Conflict of Skills (CoS) as policy violations arising from artifact or decision reuse across Skills that pass individual security checks, and characterize four recurring mechanisms through controlled executions.

  2. We present CoSA, a mechanism-guided attack framework that identifies composition opportunities and constructs budgeted, locally admissible Skill additions through capability supplementation and relationship reshaping.

  3. We construct CoSA-Bench, comprising 288 business tasks across four domains, and quantify changes in policy violations caused by Skill-pool augmentation through paired evaluations with five LLMs and three agent harnesses.

  4. We develop a lightweight harness-level guard that checks information flow and authorization before consequential actions, and evaluate its security, utility, and runtime reliability in a five-model OpenClaw recruiting experiment.

References (62)