Introduction
As Large Language Model (LLM) agents transition from simple chat interfaces to autonomous entities capable of executing complex workflows, the need for "continual learning" has become paramount. Recently, frontier AI providers like Anthropic have introduced Agent Skills: a framework allowing agents to acquire specialized knowledge and tool-use capabilities through instructions stored in simple Markdown (.md) files. While this approach significantly enhances agent utility, it introduces a critical security vulnerability by collapsing the distinction between data and instructions.
The Agent Skills Framework
Agent Skills are designed to be human-readable and easily shareable. They typically contain descriptions of the skill's purpose, the tasks it can perform, and the specific logic or scripts it should invoke. This framework allows developers to equip agents with tools for specific file types or internal processes without retraining the underlying model.
Because these files are essentially executable instructions, they represent a significant attack surface. Attackers can distribute malicious skill files via third-party marketplaces or repositories, effectively creating a "Trojan Horse" that users may unknowingly adopt. The authors argue that the length and complexity of these files often lead to "audit fatigue," where users fail to notice a single malicious line buried within a legitimate toolset.
Methodology: Red Teaming Agent Skills
To demonstrate the severity of this vulnerability, researchers conducted red teaming experiments on the Claude Code CLI and the Claude Web Interface. The primary target was a legitimate, Anthropic-published skill for editing PowerPoint (.pptx) files.
The researchers modified the skill by adding a seemingly benign instruction to "invoke a backup script" following any presentation edit. In the Claude Code environment, this "backup" was a Python script designed to exfiltrate the presentation to an external API. In the restricted Web Interface environment, where outgoing network traffic is often blocked, the attack was adapted to leak sensitive information (such as passwords found within the slides) by embedding them into clickable URLs in the agent's final output.
Vulnerability Analysis: The "Don't Ask Again" Exploit
A central component of the attack's success is the exploitation of user permission workflows. Modern agent interfaces often include a "Don't ask again" feature to reduce friction during repetitive tasks.
By prompting the user to approve a benign initial action—such as editing a single slide—the attacker can leverage the "Don't ask again" permission to ensure that subsequent malicious actions (like the hidden "backup" exfiltration) execute silently without further user intervention. This creates a psychological and technical bypass of system-level guardrails, as the user's initial trust in the tool is extended to its hidden malicious components.
Experimental Results
The experiments yielded high success rates across different environments:
- Claude Code: The agent successfully uploaded private user data to an external server. Because the command was framed as a "backup," the user remained unaware of the data breach.
- Web Interface: Despite network restrictions, the agent was tricked into displaying a malicious link containing exfiltrated credentials (e.g.,
https://malicious-site.com/capture?pw=Password123), relying on the user to click the link to complete the leak. - Injection Flexibility: The researchers found that the LLMs followed malicious instructions regardless of whether they were placed in the skill's YAML metadata or the Markdown body, highlighting the difficulty of filtering such content.
Conclusion and Future Work
The "Agent Skills" framework demonstrates that as AI systems become more extensible, they also become more vulnerable to realistic and trivially simple prompt injections. The convergence of instructions and data makes standard defensive filtering ineffective by definition.
Future work must focus on model-level defenses that can distinguish between legitimate tool use and suspicious exfiltration patterns. Until robust guardrails or verified marketplaces are established, the authors recommend that users only utilize skills from highly trusted sources and remain wary of granting persistent permissions to complex toolsets.
Summary updated