← Lab /Security & privacy

Agent skills can be extracted in just three queries, exposing copyright risk

Proprietary LLM agent skills can be stolen via black-box attacks using only three interactions

Security & privacy arXiv 23 Apr 2026 Attack Real-world evidence Threat model

Published as “Black-Box Skill Stealing Attack from Proprietary LLM Agents: An Empirical Study”

Why it matters

Proprietary skill marketplaces face real copyright and economic threats because attackers can cheaply steal full skill implementations via black-box queries.

Summary

Agent skills can be extracted with only three interactions, creating a serious copyright risk. The authors build an automated prompt generation pipeline that creates 120 diverse skill-stealing prompts and evaluate them against three commercial agent architectures and five closed-source LLMs. Existing prompt-level defenses (instruction and sandwich) only modestly reduce leakage, while their strongest defense (SkillGuard-5) eliminates exact matches but leaves substantial semantic leakage. The attack is cheap, automatable, and successful even after defenses, indicating that current protections are insufficient.

What they found 1

  1. Agent skills can be extracted with only three interactions.

    “Our results show that agent skills can be extracted with only 3 interactions, posing a serious copyright risk.”

Caveats 3

  • Even with SkillGuard-5, semantic leakage remains; under the (HY, COT) setting the filtered ROUGE-L, cosine similarity, and LLM-leakage ratio stay at 17%, 71%, and 0.39 respectively.
  • Few-shot attacks consistently achieve the highest ROUGE-L, cosine similarity, and LLM-leakage scores despite defenses.
  • Although lightweight defenses can reduce leakage in part of the benchmark, they do not fundamentally eliminate the risk.

What’s new here 4

  • Applies prompt-stealing techniques to the domain of LLM agent skills rather than system prompts.
  • Introduces an automated skill-stealing prompt generation framework with scenario rationalization, structure injection, and embedding-based diversity filtering.
  • Creates a benchmark of 120 attacks covering 12 strategy combinations across multiple commercial agents and models.
  • Proposes and evaluates lightweight defenses (input, inference, output) including the SkillGuard-5 and LAN mechanisms.

Threat model stated by the source

Adversaryblack-box user interacting through public API
Capabilityissue arbitrary natural-language queries over multiple rounds, adapt based on prior responses; no access to model weights or internal skill files
Assumesthe target agent loads hidden SKILL.md files during execution; the attacker can observe the model's textual responses