skill-guard
Scan ClawHub skills for security vulnerabilities BEFORE installing. Use when installing new skills from ClawHub to detect prompt injections, malware payloads, hardcoded secrets, and other threats. Wraps clawhub install with mcp-scan pre-flight checks.
Best use case
skill-guard is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Scan ClawHub skills for security vulnerabilities BEFORE installing. Use when installing new skills from ClawHub to detect prompt injections, malware payloads, hardcoded secrets, and other threats. Wraps clawhub install with mcp-scan pre-flight checks.
Teams using skill-guard should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/skill-guard/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How skill-guard Compares
| Feature / Agent | skill-guard | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Scan ClawHub skills for security vulnerabilities BEFORE installing. Use when installing new skills from ClawHub to detect prompt injections, malware payloads, hardcoded secrets, and other threats. Wraps clawhub install with mcp-scan pre-flight checks.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# skill-guard **The only pre-install security gate for ClawHub skills.** ## Why skill-guard? | | **VirusTotal** (ClawHub built-in) | **skillscanner** (Gen Digital) | **skill-guard** | |---|---|---|---| | **When it runs** | After publish (server-side) | On-demand lookup | **Before install (client-side)** | | **What it checks** | Malware signatures | Their database | **Actual skill content** | | **Prompt injections** | ❌ | ❌ | ✅ | | **Data exfiltration URLs** | ❌ | ❌ | ✅ | | **Hidden instructions** | ❌ | ❌ | ✅ | | **AI-specific threats** | ❌ | ❌ | ✅ | | **Install blocking** | ❌ | ❌ | ✅ | **VirusTotal** catches known malware binaries — but won't flag `<!-- IGNORE PREVIOUS INSTRUCTIONS -->`. **skillscanner** checks if Gen Digital has reviewed it — but can't scan new or updated skills. **skill-guard** uses [mcp-scan](https://github.com/invariantlabs-ai/mcp-scan) (Invariant Labs, acquired by Snyk) to analyze what's actually in the skill, catches AI-specific threats, and blocks install if issues are found. ## The Problem Skills can contain: - 🎭 **Prompt injections** — hidden "ignore previous instructions" attacks - 💀 **Malware payloads** — dangerous commands disguised in natural language - 🔑 **Hardcoded secrets** — API keys, tokens in plain text - 📤 **Data exfiltration** — URLs that leak your conversations, memory, files - ⛓️ **Toxic flows** — instructions that chain into harmful actions **One bad skill = compromised agent.** Your agent trusts skills implicitly. ## The Solution ```bash # Instead of: clawhub install some-skill ./scripts/safe-install.sh some-skill ``` skill-guard: 1. **Downloads to staging** (`/tmp/`) — never touches your real skills folder 2. **Scans with mcp-scan** — Invariant/Snyk's security scanner for AI agents 3. **Blocks or installs** — clean skills get installed, threats get quarantined ## What It Catches Real example — skill-guard flagged this malicious skill: ``` ● [E004]: Prompt injection detected (high risk) ● [E006]: Malicious code pattern detected ● [W007]: Insecure credential handling ● [W008]: Machine state compromise attempt ● [W011]: Third-party content exposure ``` VirusTotal: 0/76 engines. **mcp-scan caught what antivirus missed.** ## Usage ```bash # Secure install (recommended) ./scripts/safe-install.sh <skill-slug> # With version ./scripts/safe-install.sh <skill-slug> --version 1.2.3 # Force overwrite ./scripts/safe-install.sh <skill-slug> --force ``` ## Exit Codes | Code | Meaning | Action | |------|---------|--------| | `0` | Clean | Skill installed ✓ | | `1` | Error | Check dependencies/network | | `2` | Threats found | Skill quarantined in `/tmp/`, review before deciding | ## When Threats Are Found Skill stays in `/tmp/skill-guard-staging/skills/<slug>/` (quarantined). You can: 1. **Review** — read the scan output, inspect the files 2. **Install anyway** — `mv /tmp/skill-guard-staging/skills/<slug> ~/.openclaw/workspace/skills/` 3. **Discard** — `rm -rf /tmp/skill-guard-staging/` ## Requirements - `clawhub` CLI — `npm i -g clawhub` - `uv` — `curl -LsSf https://astral.sh/uv/install.sh | sh` ## Why This Matters Your agent has access to your files, messages, maybe your whole machine. One malicious skill can: - Read your secrets and send them elsewhere - Modify your agent's behavior permanently - Use your identity to spread to other systems **Trust, but verify.** Scan before you install.
Related Skills
toolguard-daemon-control
Manage long-running processes as macOS launchd services.
lobsterguard
Bilingual security auditor for OpenClaw. 68 checks across 6 categories, 11 auto-fixes, OWASP Agentic AI Top 10.
cloudflare-guard
Configures and manages Cloudflare DNS, caching, security rules, rate limiting, and Workers.
tokenguard
API cost guardian for AI agents. Track spending, enforce limits, prevent runaway costs. Essential for any agent making paid API calls.
skillguard
Security scanner for ClawHub skills. Vet third-party skills before installation — detect dangerous patterns, suspicious code, and risky dependencies.
guardskills
Security gate for skill installs.
farnwick-skillguard
AI-powered security scanner for OpenClaw skills.
jasper-configguard
Safe config changes for OpenClaw with automatic.
token-guard
<!-- 🌌 Aoineco-Verified | S-DNA: AOI-2026-0213-SDNA-TG01 -->.
publish-guard
<!-- 🌌 Aoineco-Verified | S-DNA: AOI-2026-0213-SDNA-PG01 -->.
input-guard
Scan untrusted external text (web pages, tweets, search results, API responses) for prompt injection attacks. Returns severity levels and alerts on dangerous content. Use BEFORE processing any text from untrusted sources.
guardrails - Interactive Security Guardrails Configuration
Helps users configure comprehensive security guardrails for their OpenClaw workspace through an interactive interview process.