arXiv:2608.26733cs.CRAug 2026

Manuscript Offprint

arXiv:2608.26733

Daydreaming: Stealing Hidden Agent Skills through Black-Box Task Interaction

Yu-Lin Tsai, Yu-An Lu, Ci-Yang Tsai, Muxi Lyu, Raluca Ada Popa, Chia-Mu Yu

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

Yu-Lin Tsai ∗^{*}

UC Berkeley

uriah_tsai@berkeley.edu

Yu-An Lu ∗^{*}

National Yang Ming Chiao Tung University

yuan.la14@nycu.edu.tw

Ci-Yang Tsai

National Yang Ming Chiao Tung University

atziluth.en10@nycu.edu.tw

Muxi Lyu

UC Berkeley

muxi_lyu@berkeley.edu

Raluca Ada Popa

UC Berkeley

raluca@eecs.berkeley.edu

Chia-Mu Yu

National Yang Ming Chiao Tung University

chiamuyu@nycu.edu.tw

Abstract

Agent skills bundle instructions, reference data, and executable helpers that let a general agent perform specialized tasks. Hosted providers can keep these files secret while selling access to task results, making the skill itself a valuable target. Existing disclosure defenses can block requests that ask for the skill or reproduce its text, but they cannot block customers from submitting the ordinary tasks the service is built to complete. We present Daydreaming, an execution-only attack that steals a multi-file skill through black-box task interactions. The victim is never asked to reveal the skill or grade a reconstruction. Instead, Daydreaming adaptively creates crafted tasks whose results distinguish possible hidden behaviors. It tests individual behaviors, uses attacker-controlled shadow agents to choose a design, and completes each file using stored victim results and local execution checks. We formalize three nested threat levels of access as Differential, Trace, and Output, and focus on Output, where the attacker sees only the final response and returned files.

Across 7 skills and 4 victim models, Daydreaming recovers 86.8% of original skill's capability at Output, outperforming SigLeak by almost 4×. It produces installable skills using a median of 32 victim calls per skill even with disclosure defenses enabled. These results show that hiding skill files and filtering direct disclosure do not, by themselves, prevent functional reconstruction through normal use.

1 Introduction

General-purpose agents are broad, but specialized real-world tasks demand depth. Real-world expertise frequently depends on more than the capabilities of the underlying model: sophisticated instructions, domain-specific reference materials, tuned parameters, helper scripts, tools, and carefully engineered workflows may all be required to perform a specialized task reliably. Agent systems encode that as a skill the agent loads behind an ordinary task interface [5, 21]. A growing market sells such capabilities the way software is sold as a service, a setting we call Skill-as-a-Service (SkaaS) where the vendor hosts the skill on its own agent and the customer pays per task or by subscription. Software-as-a-service withholds the program and charges for what it computes while SkaaS withholds the expertise and charges for what it judges. Existing vendors already sell hosted access in domains such as law, autonomous medical coding, and security operations, sometimes charged per completed task. 0^{0} Moreover, these vendors treat the hidden skill as a protected asset, as their terms of service forbid reverse-engineering the service or using outputs to build a competing one [7, 11, 13], and stealing attacks motivated by this kind of commercial market have appeared for single prompt settings such as domain-specific system prompts [25, 31].

However, as agentic systems package increasingly specialized expertise into hosted skills, the skill itself can become a substantially more valuable proprietary asset than a single prompt. Building such a skill may require experts and engineers to translate domain knowledge into detailed decision logic, curate supporting data, tune thresholds and parameters, and refine workflows through repeated deployment experience. For instance, a security-operations vendor advertising only one line for its hosted skill, “investigate security alerts and return a verdict with the evidence,” may keep private years of engineering and operational knowledge encoded in its escalation rules, threat indicators, reference data, and tuned thresholds that determine which alerts are worth waking an analyst for. Yet its customers are enterprises whose own networks raise those alerts, so each customer can place chosen alerts in front of the skill and observe what the vendor decides.

The execution output of a skill reveals an attack path that prior defenses do not address. Current defenses focus on the

0^{0}Hosted, access-only vendors include Harvey (law, https://www.harvey.ai) and Dropzone (security operations, https://www.dropzone.ai); Nym sells autonomous medical coding [20]; Intercom's Fin is billed per resolution [16], per-task metering applied to expertise, accessed 2026-08-21. The running example used throughout this paper is a composite of this last shape; the advertised line is our own.

∗^{*}These authors contributed equally.

disclosure path: detecting suspicious requests that attempt to reveal the hidden skill and blocking outputs that reproduce protected text. On the other hand, the work path, which enables benign user task execution, remains vulnerable to behavioral cloning, reverse engineering, and reconstruction. Thus, execution itself becomes a source of observation and behavioral inference.

We formalize this observability for behavioral inference into three nested levels: Output (o3)(o_{3}), Trace (o2)(o_{2}), and Differential (o1)(o_{1}), depending on what information the deployment exposes to the customer. Output exposes only the final response and returned files, making it the most restrictive and challenging setting for an attacker. Trace additionally exposes the agent's intermediate tool activity, including which tools were called, their inputs, and returned results; such traces are commonly surfaced so customers can audit work they did not compute themselves. Differential provides richer feedback by revealing how outputs change under controlled variations of the input. We focus primarily on Output, since an attack that succeeds with only final outputs also applies when richer observations are available.

We present Daydreaming, a skill-stealing attack that treats task execution as a black-box system identification problem. Daydreaming is execution-only: every query asks the victim to perform a genuine task, and the victim is never asked to reveal its hidden skill or to compare, grade, or correct a reconstruction. This allows the attack to operate even when disclosure defenses are already active, which we assume throughout. Daydreaming repeatedly constructs tasks for which plausible properties, skill plans, or file versions predict different outcomes, then uses the victim's observed result to eliminate alternatives and refine its reconstruction. Rather than synthesizing the target skill in one pass, Daydreaming reconstructs it sequentially through repeated probing and revision. We evaluate the stolen skill primarily by whether it reproduces the victim's task performance on unseen inputs, rather than by whether its files textually match the hidden originals.

Across seven skills and three victim models, Daydreaming recovers 35.8–86.8% of the behavioral-utility gap between no skill and the original skill using only Output access and 31.3–32.8 victim calls per skill. It achieves the highest behavioral utility among all evaluated attacks and baselines for every victim model.

As such, we make the following contributions:

• We formalize the observability available to a skill-stealing attacker as three nested access levels, Differential (o1)⊇Trace(o2)⊇Output(o3)(o_1) \supseteq \text{Trace}(o_2) \supseteq \text{Output}(o_3) (Section 4), and place every prior attack on that axis. We also show that no level can guarantee exact recovery of the hidden source.

• We build Daydreaming, an execution-only skill-reconstruction attack. Every query commissions ordinary work and never requests the hidden skill or a judgment of the reconstruction. As a result, Daydreaming operates even when disclosure blocking, extraction-input classification, and output filtering are all enabled (Section 5).

• We show that Daydreaming works at the most restrictive access level (Output o3o_{3}), with a limited number of victim queries. Across 7 skills, Daydreaming recovers 86.8% of the victim's task performance at Output and 87.0% and 86.0%, respectively at Trace and Differential with median attacker inference cost (Section 6).