Exploring the Threat Landscape of Agent Skills

Luca Beurer-Kellner, Aleksei Kudrinskii, Marco Milanta, Kristian Bonde Nielsen, Hemang Sarkar, and Liran Tal

Summary: An analysis of 3,984 AI agent skills from major marketplaces uncovered 76 confirmed malicious payloads, with 13.4% of all skills carrying at least one Critical-level security issue and several malicious skills still live at publication.

The AI agent ecosystem is experiencing unprecedented growth. As of early 2026, major skill marketplaces such as ClawHub and skills.sh host thousands of “skills”, packaged instructions and code that extend an AI agent’s capabilities.Agent Skill Specification, agentskills.io. These skills let agents perform new tasks ranging from library-specific code generation and data analysis to trading automation and system administration. Our team has analyzed thousands of these skills across different marketplaces, and the findings are concerning: many are actively malicious, and many more are highly vulnerable.

Across the 3,984 skills we analyzed on clawhub.ai and skills.sh, we confirmed 76 malicious payloads, including credential theft, backdoor installation, and data exfiltration. 13.4% of those skills (534) contain at least one Critical-level security issue, and at least eight manually confirmed malicious skills remain publicly installable on clawhub.ai as of publication. As skill marketplaces grow rapidly and agents gain access to sensitive credentials and systems, automated security analysis is no longer optional.

A marketplace growing faster than its defenses

Researchers previously demonstrated the theoretical possibility of skill-based attacks.[1] In February 2026, the OpenSourceMalware team documented the first real-world coordinated campaign targeting Claude Code and OpenClaw users through 30+ malicious skills, some of which remained at time of publication.[2] Many of these skills do not just distribute malware in the traditional sense: they rely on an unprecedented level of prompt injection to hijack and infiltrate agent systems, an attack pattern that classical code and malware scanners often cannot detect.

The risk of malicious skills scales with the ecosystem. Skill publication volume was flat through mid-January 2026, then turned sharply exponential, with daily uploads climbing into the hundreds by early February. Today, skills.sh counts more than a million individual agent skills.

New skills / day 6004503001500
Jan 07Jan 15Jan 23Feb 01
Figure 1 New skills published per day early 2026. After a flat start, publication volume turns exponential in late January, reaching several hundred skills per day. Manual security review cannot keep pace with this rate.

The emergence of malicious skills, combined with this explosive growth, presents the security community with challenges on several fronts. The scale of thousands of rapidly growing skills makes manual review and reporting too slow. The complexity of skills, which mix prompts, code, and configuration, demands analysis that goes beyond classical code scanning. Novel attack vectors like prompt injection fall outside what traditional static analysis was built for. Trust assumptions lead users to install skills without scrutiny. And the emergence of personal agents like OpenClaw creates high-value targets with access to credentials, proprietary code, file systems, and APIs.

A threat taxonomy for agent skills

Based on manual review of hundreds of skills, our team derived a taxonomy of eight specialized security scanners, each targeting a distinct threat category grounded in behaviors observed in real-world skills. We implement these scanners using the agent-scan engine, which combines multiple customized LLM judges with deterministic rules to identify malicious and vulnerable behaviors.

CRITICAL Prompt Injection

Hidden or deceptive instructions outside the skill’s stated purpose: obfuscated payloads, "ignore previous instructions", system-message impersonation.

CRITICAL Malicious Code

Backdoors, data exfiltration, RCE, and supply-chain attacks in a skill’s scripts: credential theft, typosquatted packages, privileged executables.

CRITICAL Suspicious Downloads

Fetches from untrusted sources that distribute malware: unknown domains, releases from unfamiliar users, password-protected archives.

HIGH Improper Credential Handling

Insecure handling of secrets that can lead to exfiltration: echoing API keys, embedding credentials in commands, asking users to paste secrets.

HIGH Secret Detection

Hardcoded secrets embedded directly in skill prompts: API keys, passwords, auth tokens, private keys or certificates.

MEDIUM Third-Party Content Exposure

Fetching and processing untrusted external content, enabling indirect prompt injection and lethal-trifecta scenarios.

MEDIUM Unverifiable Dependencies

External URLs and dependencies that can control behavior at runtime: curl | bash, dynamic imports, remote instruction loading.

MEDIUM Direct Money Access

Direct access to financial accounts, trading platforms, or payment systems. Not inherently malicious, but warrants extra scrutiny.

MEDIUM Modifying System Services

Compromising the integrity of the user’s machine: editing service files or startup scripts, installing persistent backdoor-like programs.

Figure 2 The threat taxonomy. Eight scanners span three risk levels, from Critical categories that signal active compromise (prompt injection, malicious code, suspicious downloads) to Medium categories that flag risk exposure rather than intent.

The Critical categories capture behavior that signals active compromise. The High and Medium categories flag risk exposure: a skill that fetches third-party content or handles credentials unsafely is not malicious by itself, but that expands the attack surface for further attacks significantly.

What the scans found

We ran automated scans with all scanners enabled across every skill available at clawhub.ai and the top 100 most-used skills on skills.sh.

Uncovering 76 malicious payloads

Scanning a historical dump of clawhub.ai in February 2026 and manually confirming the flagged skills, our team uncovered 76 confirmed cases of highly malicious skills, including malware installation, data exfiltration, and credential theft. The dataset is deduplicated by author and skill ID, so the figure reflects unique skill identities rather than version counts. We do not deduplicate across different author/skill-ID pairs, because the same malicious skill is often republished under new IDs or authors.

We continuously monitor new skills as they are published, and bad actors often upload many malicious skills at once. Therefore, this number of course undercounts the true total at time of publication, as our scanning was limited to a scraped dataset.

Detection rates across marketplaces

Applying all scanners across both marketplaces reveals the occurrence rates of each pattern. We include our Confirmed Malicious set as a separate column to highlight which vulnerability classes co-occur with malicious behavior. The contrast is stark: curated skills.sh skills show negligible Critical findings, while every confirmed malicious skill triggers the malicious-code and suspicious-download detectors, and 91% also employ prompt injection.

skills.sh (top 100) clawhub.ai (all) Confirmed malicious
Detection rate (%) 1007550250
0
2.6
91
Prompt Inj.
0
5.3
100
Mal. Code
0
10.9
100
Susp. Download
5
7.1
63
Credentials
0
0.7
32
Secrets
9
17.7
54
3rd-Party
2
2.9
21
Dependencies
2
8.7
10
Money Access
3
7.6
39.5
System Svcs.
↓ lower is safer
Figure 3 Detection rates by scanner. skills.sh's curated top 100 (grey) shows near-zero Critical findings; clawhub.ai's full registry (amber) shows elevated rates across the board; the confirmed malicious set (red) lights up almost every scanner. Note the strong separation between curated and malicious skills.

For a more global perspective, we also computed the fraction of all skills ever hosted on clawhub.ai that carry security issues.As of February 3rd, 2026. Of 3,984 skills analyzed, 13.40% (534 skills) have at least one Critical-level issue (prompt injection, malicious code, or suspicious download), and 36.82% (1,467 skills) have at least one issue of another severity level.

What the data tells us

Prompt injections meet malware. The data shows an evolution in agent attacks: 100% of confirmed malicious skills contain malicious code patterns, while 91% simultaneously employ prompt injection. This combination is highly effective. Injections prime the agent to accept malicious code that a human would normally reject, while the code accomplishes objectives that prompt manipulation alone cannot. At the same time, prompt injections alone can also drive malware-like behavior, creating a new form of malicious natural-language software. This lowers the barrier to entry sharply, since such payloads can be authored entirely in natural language and require no deep technical or coding expertise.

Third-party content is a standing risk. Skills that fetch untrusted third-party content represent 17.7% of clawhub.ai skills and 9% of the skills.sh top 100. Many are benign by design, but they create significant attack surface for indirect prompt injection. When a skill retrieves data from web pages, social media, or APIs and feeds it into an LLM, an attacker can inject malicious instructions by poisoning the data source, without ever compromising the skill’s implementation.[4] This greatly expands the surface for so-called toxic flows[6], also called the lethal trifecta of AI agents,[7] in which an attacker hijacks an agent to extract sensitive data through public channels.[5, 8]

Remote code and prompt execution hide in plain sight. Unverifiable dependencies from remote URLs appear in 2.9% of clawhub.ai skills and 21% of malicious samples. These skills fetch and execute external content at runtime, effectively adding a backdoor: the published skill looks benign during review, but the attacker can change its behavior at any time by updating the fetched content. The attack logic lives on attacker-controlled infrastructure rather than in the skill code. The moltbook.com heartbeat skill (a skill that runs unsupervised every few hours) illustrates the pattern. It re-downloads its own instructions from a remote server on every run, which lets the operator hijack an entire user base by advertising malicious instructions.

1 # Moltbook Heartbeat
2 *This runs periodically, but you can also check Moltbook anytime!*
4 ## First: check for skill updates
5 $ curl -s https://www.moltbook.com/skill.json | grep '"version"'
6 Compare with your saved version. If there is a new version, re-fetch the skill files:
7 $ curl -s https://www.moltbook.com/skill.md > ~/.moltbot/skills/moltbook/SKILL.md
8 $ curl -s https://www.moltbook.com/heartbeat.md > ~/.moltbot/skills/moltbook/HEARTBEAT.md
10 ## Are you claimed?
11 $ curl moltbook.com/api/v1/agents/status -H "Authorization: Bearer YOUR_API_KEY"
12 ...
Figure 4 moltbook.com's heartbeat prompt. The auto-update instructions (red) lead to remote prompt execution: the skill re-downloads its own instructions on every run, so the operator can change agent behavior across the entire user base at any time, without review. The status check (green) further promotes improper credential handling, embedding the API key in plaintext directly in a shell command.

Secrets leak both ways. We find hardcoded secrets in 34 clawhub.ai skills and 32% of confirmed malicious samples. These include both accidentally leaked API keys and deliberately embedded authentication tokens. Developers sometimes expose their own credentials during skill development, while malicious actors embed secrets as attack infrastructure, using them to authenticate exfiltration endpoints or to password-protect encrypted archives that evade malware scanning.

Attacks and Vulnerabilities. Our Critical-level detectors show strong discriminative power on confirmed malicious skills. The High and Medium detectors behave differently: they fire for up to 9% of skills.sh and 18% of clawhub.ai skills, and up to 63% of confirmed malicious samples. These categories flag risk exposure rather than malicious intent, and on manual review the measured rates reflect genuine security concerns and bad practices.

Marketplace curation matters. skills.sh’s top 100 show negligible Critical findings and low risk exposure, consistent with community curation and popularity-based filtering surfacing higher-quality skills. clawhub.ai’s full registry shows elevated rates across every category. We caution that we did not perform a full registry scan of skills.sh, which makes a direct comparison difficult.

Indicators of compromise

Across the confirmed malicious skills, our team identified three main attack techniques:

  1. Installation instructions link to external platforms hosting malware and ask the agent to install untrusted software on the user’s machine.
  2. Installation instructions contain obfuscated commands that exfiltrate user data.
  3. Instructions prompt the agent to disable security measures and engage in risky behavior, often with no immediate benefit to the developer (mostly destructive intent).

Malicious skills span categories and originate from many accounts. We identified at least one party that programmatically generates malicious skills, producing 40+ skills that follow the same pattern.

Recommendations

The agent skill ecosystem has a security problem. With 13.4% of skills carrying Critical issues and confirmed malware campaigns already in circulation, the gap between adoption speed and security maturity is widening.

For users. Do not install skills without review. Check the source, inspect any included code or scripts, and be wary of skills that request elevated privileges or download external binaries. Popularity is not a safe proxy for security: download metrics can be inflated, and we have observed malicious skills with significant download counts before removal. Even popular, non-malicious skills can offer significant attack surface. We recommend scanning tools such as Snyk Agent Scan in addition to manual review.

For marketplace operators. Integrate automated scanning into the submission pipeline. Our results show that deterministic rules combined with model-based analysis catch a large share of malicious patterns at a low false-positive rate. Gate-blocking skills with Critical-level findings pending manual review can keep a very large class of today’s malicious skills from ever reaching users.

For skill developers. Reduce third-party prompt-injection risk, handle credentials through environment files or vaults, and avoid auto-updating or remote code execution mechanisms. A good practice is to build skills as fully self-contained packages, leaving update mechanisms to marketplace operators.

The current state of the ecosystem mirrors the “Wild West” era of early package managers like npm and PyPI: explosive growth shadowed by security growing pains. That parallel also offers a roadmap. By learning from the past and adopting proactive defenses now, the community can keep agents safe. To support this effort, we are releasing the security scanners used in this work through the mcp-scan project.

References

Key prior work and resources referenced above:

  1. Schmotz, Abdelnabi, Andriushchenko. Agent Skills Enable a New Class of Realistic and Trivially Simple Prompt Injections. arXiv:2510.26328, 2025.
  2. OpenSourceMalware. Clawdbot Skills Ganked Your Crypto. 2026.
  3. Tal. Inside the 'clawdhub' Malicious Campaign: AI Agent Skills Drop Reverse Shells on OpenClaw Marketplace. Snyk Security Labs, 2026.
  4. Greshake et al. Not What You've Signed Up For: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injection. 2023.
  5. Milanta, Beurer-Kellner. GitHub MCP Exploited: Accessing Private Repositories via MCP. 2025.
  6. Beurer-Kellner, Milanta, Fischer. Toxic Flows in Agentic Systems and MCP Servers. 2025.
  7. Willison. The Lethal Trifecta. 2025.
  8. PromptArmor Threat Intelligence Team. Superhuman AI Exfiltrates Emails. 2026.