arXiv:2610.05943cs.CROct 2026

Manuscript Offprint

arXiv:2610.05943

Runaway Reaction: When Benign Skills Compose into Malicious Behavior

Zunlong Zhou, Ziyuan Yang, Mengyu Sun, Yi Zhang

ABSTRACT

Agent skills package task-specific knowledge and procedures that can be composed to support complex agent tasks, while public marketplaces provide a growing pool of reusable skills. Existing security vetting, however, largely evaluates skills in isolation, leaving composition-induced risks underexplored. Such risks arise because composing benign skills expands the agent's capability space, enabling behaviors unavailable to any skill alone. Interestingly, we find that directly composing benign skills can already induce malicious behaviors, even when every individual skill passes security vetting. We further find that some target malicious behaviors remain difficult to realize through direct composition, even when the selected skills collectively provide the required capabilities. To systematically instantiate these attacks, we present Compositional Risk Induction via Multi skill Execution (CRIME). CRIME first uses the Malicious Plot Casting (MPC) module to decompose a target malicious behavior into complementary requirements and identify suitable benign skill compositions from public skill repositories. For compositions that cannot directly realize the target behavior, the Runaway Reaction Steering (RRS) module uses execution feedback to iteratively refine the selected skills toward the target while requiring each skill to remain benign under standalone vetting. The resulting composition is then passed to the Skill Reaction Chamber (SRC) module, where the skill pair is executed in a sandbox and the resulting environmental consequences are examined to determine whether the target behavior has occurred. Unsuccessful cases are returned to RRS for further refinement. Furthermore, we construct a benchmark of 4,000 public skills across eight cybersecurity behaviors for systematic evaluation of composition-induced vulnerabilities. Experiments across multiple LLMs reveal malicious behaviors in both direct and optimized compositions, showing that individual skill inspection is insufficient to capture multi-skill security risks.

1 INTRODUCTION

Agent skills are emerging as a practical mechanism for extending the capabilities of large language model (LLM) agents (Jiang et al., 2026). A skill packages task-specific instructions, executable scripts, reference materials, and other resources to support a class of tasks (Xu & Yan, 2026). By incorporating specialized knowledge and procedures without modifying the underlying model, skills provide a flexible interface for adapting general-purpose agents. Public repositories and marketplaces, such as SkillHub and ClawHub, further enable large-scale search, installation, and reuse of community-contributed skills (SkillHub, 2026; OpenClaw Foundation, 2026a). However, this growing accessibility also introduces security concerns, as publicly distributed skills may embed malicious instructions or executable logic that can lead to credential theft, data exfiltration, unauthorized command execution, or other harmful behaviors once loaded by an agent (Ji et al., 2026).

To mitigate these security risks, numerous evaluation methods have been proposed. For example, ClawHub incorporates automated security analysis and external malware scanning information (OpenClaw Foundation, 2026b), while research systems such as SkillScan combine static analysis with LLM-based semantic analysis to detect malicious behaviors (Liu et al., 2026). These mechanisms provide protection against malicious individual skills, but multiple skills may participate in the same task and contribute different capabilities to a shared execution. Moreover, this leaves a different question largely unexamined: does the safety of every skill imply the safety of their composition?

Obviously, these two notions of safety are not equivalent, the benignity of each skill in isolation does not guarantee the benignity of their composition. This is because composition introduces cross-skill interactions that are absent during independent evaluation. Capabilities that are harmless on their own may be chained through intermediate outputs, shared state, execution order, or complementary operations, giving rise to behaviors that no individual skill can realize independently (Li et al., 2025a).

We refer to this transition from benign individual components to malicious joint behavior as a runaway reaction. The key issue is not that composition introduces new primitive capabilities, but that it expands the capability space available to the agent. Importantly, composition-level safety subsumes individual-skill safety, since the behaviors achievable by each constituent skill remain part of the composed system's behavior space. Therefore, if a composition is safe, its constituent skills must also be safe. The converse, however, does not hold: independently safe skills may interact to produce an unsafe composition. Through capability chaining and cross-skill interactions, the composed capability space can extend beyond what is achievable by any individual skill in isolation, enabling unsafe behaviors that remain invisible to standalone vetting.

In this work, we investigate two attack surfaces arising from this asymmetry. Direct Composition Attack (DCA) searches public skill repositories for benign skills whose existing functions can jointly realize a target malicious behavior without modification. Adaptive Composition Attack (ACA) instead considers benign skills that collectively provide the capabilities required by the target behavior but whose original composition remains ineffective. ACA then refines the selected skills using joint execution feedback while requiring each modified skill to remain benign under standalone vetting.

To systematically instantiate these attacks, we present Compositional Risk Induction via Multi skill Execution (CRIME). CRIME first applies Malicious Plot Casting (MPC) module to decompose a target malicious behavior into complementary capability requirements and identify individually benign skill pairs whose combined capabilities cover the target. Their original composition is then executed to determine whether the existing functions already realize the target behavior. For initially ineffective compositions, Runaway Reaction Steering (RRS) module uses execution feedback to refine the selected skills while preserving their standalone benignity. Finally, Skill Reaction Chamber (SRC) module determines attack success from externally observable environmental consequences.

Beyond the attack framework itself, we construct a large-scale compositional attack benchmark from 4,000 public skills spanning eight cybersecurity behaviors, enabling systematic evaluation of both direct and adaptive composition risks. Interestingly, we find that even without modifying any skill, the DCA setting already exposes substantial compositional risk: existing public skill repositories can readily serve as a capability reservoir from which attackers assemble benign skills into malicious execution chains, underscoring the practicality and severity of this threat. The main contributions of this paper can be summarized as follows:

• We characterize and analysis compositional risk in two settings: naturally emerging malicious behavior from unmodified benign skills, and adversarially induced behavior through optimization that preserves each skill’s standalone benignity.

• We propose CRIME framework that turns benign public skills into malicious compositions through capability-driven skill discovery and execution-guided optimization, while keeping each skill benign in isolation.

• We construct a compositional attack benchmark from 4,000 public skills across eight cybersecurity behaviors, providing a systematic testbed for evaluating composition-induced risks and stress-testing future skill vetting mechanisms.

References (20)