arXiv(opens in a new tab)cs.CRSep 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2609.07131

AgentLeak: Cloning Stronger LLM Agent Capabilities onto Weaker Agents Beyond Skill Stealing

Xiaoting Lyu, Yuhong Wu, Yufei Han, Shichang Liu, Liang Zhang, Bin Wang, Bin Wang, Xiaobo Ma, Wei Wang

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

Abstract

Large language model (LLM) agents increasingly achieve long-horizon tasks by combining foundation models with explicit skills and implicit procedural knowledge acquired through execution. The resulting task-solving capabilities have become valuable proprietary assets, raising a new security question: can a substantially weaker attacker-controlled agent acquire the capabilities of a stronger proprietary agent through limited black-box interaction? Existing skill-stealing attacks recover explicit skill artifacts, yet we show that artifact leakage does not necessarily transfer capability: a weaker agent may possess the same skills but still fail because it lacks procedural behaviors implicitly realized by the stronger agent. Our key insight is that the skill execution gap itself forms a leakage surface, where missing behaviors are exposed through observable differences between successful victim executions and failed attacker executions. Based on this, we present AgentLeak, a black-box capability-cloning attack that identifies capability-critical behaviors from these execution differences and incorporates them into attacker-side skills, while keeping the attacker's model, harness, and tools unchanged. Across 20 task scenarios comprising 600 instances, diverse agent systems, and multiple backbone models, AgentLeak improves task pass rates by over 40% compared with direct skill reuse and recovers more than 80% of the victim-attacker capability gap. Our findings reveal a confidentiality risk in LLM agents: protecting explicit artifacts alone is insufficient, as observable execution behavior can leak the procedural knowledge required to reconstruct proprietary task-solving capabilities in low-capability and attacker-controlled agents.

1 Introduction

Large language model (LLM) agents are increasingly deployed for long-horizon tasks requiring planning, tool use, environment interaction, error recovery, and result verification [14,28].

For commercial agent services, a core proprietary asset is the task-solving capability: the ability to reliably complete challenging domain-specific tasks end to end. This capability is shaped by the underlying LLM, procedural knowledge encoded in skills, agent orchestration, and tool interactions, often requiring substantial investment in model adaptation, expert workflows, and deployment-driven refinement. If a substantially weaker attacker-controlled agent can reconstruct such capability using only a low-capability open-weight model, an open-source agent framework, and limited black-box interactions, an attacker could replicate a proprietary agent's task-solving capability without costly model training or system development, at only a fraction of the cost required to build a comparably capable agent. Protecting realized agent capability therefore represents a broader confidentiality challenge beyond protecting individual models, prompts, or explicit artifacts.

Existing security studies [10,23,24,27,30] primarily focus on protecting or extracting individual agent artifacts, including model parameters, prompts, and skills. Among these artifacts, skills serve as a key carrier of procedural knowledge, encoding task instructions, workflows, tool-use strategies, and recovery behaviors [2,11], and have therefore become a primary target for extraction attacks. Recent attacks show that proprietary skills can be extracted through black-box interactions [27], inferred from execution trajectories [7], or reconstructed from their hidden functionality [8]. However, these studies demonstrate only that skill content or functionality can be stolen, leaving open whether the task-solving capability enabled by agents with these skills can also be transferred. This question is particularly important in the strong-to-weak setting, where the attacker controls a substantially weaker open-weight agent than the proprietary victim. If such capability transfer is possible, an attacker could obtain a low-cost substitute for a proprietary service without developing or acquiring a similarly capable agent system. However, prior work has not examined whether stolen skills can enable such strong-to-weak capability transfer. We therefore ask:

Does stealing a stronger agent's skills actually transfer its task-solving capability to a substantially weaker agent?

∗^{*}Email: xiaoting.lyu@xjtu.edu.cn

†^{\dagger}Email: wei.wang@xjtu.edu.cn

Figure

Figure 1: Skill Stealing alone does not reproduce the strong victim agent's capability on a weaker agent.

Our motivating study reveals that skill stealing alone does not guarantee the task-solving capability transfer. We deploy the same skills used by a proprietary stronger Codex agent with GPT-5.5 [20] on a weaker attacker-controlled agent built on OpenHands [26] with a Qwen3.6-35B backbone [22]. As shown in Figure 1, directly acquiring the victim skills provides only limited improvement, and the weaker agent remains substantially behind the victim even when executing identical skills. Even distilling trajectories into new skills using state-of-the-art skill optimization [18] fails to close this gap. These results reveal a fundamental distinction between skill leakage and capability leakage: possessing a skill does not necessarily imply possessing the capability realized by a stronger agent using that skill. We refer to this disparity as the skill execution gap.

The skill execution gap arises because skills specify what an agent should do, but not necessarily how the procedure is executed. Critical behaviors, including task decomposition, tool selection, feedback interpretation, and result verification, are often implicitly supplied by the stronger agent during execution. A weaker agent may possess the same skill instructions while lacking the decision-making behaviors required to realize them. Consequently, the realized capability is not fully contained in the explicit skill artifact, but also depends on the implicit execution behaviors of the agent.

At first glance, the skill execution gap may appear to provide a natural barrier against capability cloning. Our key observation, however, is that this barrier is fragile. During normal interaction, deployed agents often expose execution-related information, such as tool invocations, intermediate observations, and final outcomes. Comparing successful victim executions with failed attacker executions reveals the missing behaviors responsible for the execution gap. This creates an attack opportunity: an attacker can identify missing capability-critical behaviors and encode them into attacker-side skills, thereby bridging the skill execution gap.

We formalize this threat as agent capability cloning: trans-

ferring the task-solving capability of a proprietary victim agent to a substantially weaker agent. We consider a black-box attacker controlling a substantially weaker agent, who can query the victim agent on limited task instances and observe execution traces available through its normal interface. Starting from available skills obtained from public sources or existing extraction techniques [27], the attacker modifies only its local skills to bridge the capability gap. The attacker does not access the victim's private skills, model parameters, hidden reasoning, memory, or other privileged information, and keeps its own model, agent harness, and tools unchanged.

Realizing capability cloning on a substantially weaker agent requires overcoming three challenges. First, successful victim executions reveal only instance-specific trajectories rather than the reusable workflows underlying the victim's capability. The attacker must therefore recover the task-solving structure, including task decomposition and execution stages, instead of simply copying trajectories. Second, execution differences between victim and attacker agents do not directly indicate missing capabilities. The attacker must identify capability-critical deficits, such as missing validation or recovery behaviors, from benign variations in execution traces. Third, identified deficits must be transformed into explicit and reusable procedural guidance that a weaker agent can reliably follow.

To address these challenges, we present AgentLeak, a black-box capability-cloning attack that reconstructs missing procedural knowledge from victim-attacker execution differences and incorporates it into attacker-side skills while keeping the underlying model fixed. The key insight is that the execution gap between stronger and weaker agents provides a channel for capability leakage: behaviors implicitly realized by the stronger victim but absent from the attacker reveal capability-critical procedures that can be externalized into skills. Specifically, to recover the reusable workflow hidden behind instance-specific victim executions, AgentLeak abstracts successful victim trajectories into workflows and maps workflow stages to relevant skills. To identify missing capabilities rather than superficial trace differences, it performs workflow-guided differential diagnosis between victim and attacker executions to localize capability-critical deficits. To make recovered behaviors executable by the weaker agent, it converts identified deficits into behavioral primitives and incorporates them into attacker-side skills through structured rewriting. The refined skills are iteratively re-executed to uncover remaining deficits and validated on previously solved tasks to prevent regressions. Through this process, implicit execution behaviors are externalized into explicit skills, enabling the weaker agent to recover the missing capability.

We evaluate AgentLeak on 20 representative task scenarios from SkillsBench [12], covering different difficulty levels and 6 application domains with 600 task instances in total, against state-of-the-art agentic systems with widely deployed harnesses and frontier models. Unlike evaluations based on synthetic or simulated traces, our attack directly targets real

Table 1: Comparison with related extraction and skill-evolution paradigms.

ParadigmTarget AssetKnowledge SourceObjectiveCapability Transfer
Model Extraction [4, 10, 13, 24]Proprietary modelBlack-box outputsRecover model behaviorModel-level surrogate
Prompt Extraction [5, 23, 30]Hidden prompts/configurationsBlack-box interactionsRecover hidden prompts/configurationsPrompt reproduction
Skill Extraction [7, 8, 27]Explicit skill artifactsAgent interactions / execution trajectoriesRecover skill artifacts or functionalityArtifact-level recovery
Self-Evolving Skills [15, 18, 25, 31]Own SkillsOwn execution experienceImprove own agent performanceSelf-improvement
AgentLeakVictim's task-solving capabilityVictim-attacker differential executionsReconstruct task-solving capabilityCapability clone on weaker agents

victim agents and measures capability reconstruction through their actual executions in native task environments. AgentLeak requires only a single victim query instance per scenario to perform capability reconstruction. Compared with direct skill reuse [27] and skill evolution [18], it improves task pass rates by over 40 percentage points and recovers over 80% of the victim-attacker capability gap. The reconstructed skills further transfer across attacker models and harnesses, while existing defenses provide only limited protection.

Our contributions are summarized as follows:

  • We uncover a fundamental capability leakage issue in LLM agents: possessing stolen skills does not guarantee capability transfer, but observable execution differences reveal procedural behaviors that enable capability reconstruction.

  • We present AgentLeak, a black-box capability-cloning attack that enables weaker attacker-controlled agents to acquire stronger agent capabilities through skill-level reconstruction without modifying the underlying model.

  • We evaluate AgentLeak across diverse tasks, models, and agent systems, demonstrating substantial capability recovery, transferability, and practical attack feasibility.

References (27)