← Back to Skills Marketplace
taha2053

ClawGuard

cross-platform ✓ Security Clean
552
Downloads
0
Stars
1
Active Installs
1
Versions
Install in OpenClaw
/install claw-guard
Description
Security auditor for ClawHub skills. Run before installing ANY skill — scans SKILL.md and scripts for prompt injection, data exfiltration, shell injection, p...
README (SKILL.md)

ClawGuard — Security Auditor for ClawHub Skills

Scan before you install. Every time.

The ClawHavoc attack (February 2026) put over 1,100 malicious skills on ClawHub — stealing SSH keys, crypto wallets, browser passwords, and opening reverse shells. 91% of them combined code malware with prompt injection. ClawGuard was built to make sure you never install one blindly.

ClawGuard is the first skill you install. Then use it to audit every skill after.


External Endpoints

Endpoint Purpose Data Sent
None Fully local analysis Nothing leaves your machine

ClawGuard performs all analysis locally. No external API calls. No telemetry. No network access of any kind.


Security & Privacy

  • Zero external calls. All analysis happens on your local filesystem.
  • No credentials required. No API keys, tokens, or env vars.
  • Read-only. ClawGuard never writes to the target skill directory — it only reads.
  • Open source. Every check is visible in scripts/scan.py. Read it before trusting it.

Trust Statement: ClawGuard reads skill files on your local machine and outputs a report. Nothing is transmitted anywhere. You can verify this by reading scripts/scan.py before running.


Model Invocation Note

ClawGuard is invoked when you ask OpenClaw to check, audit, scan, or inspect a skill before installing. You can also run it directly via python3 skills/clawguard/scripts/scan.py \x3Cpath-to-skill>. OpenClaw will not invoke ClawGuard automatically without your request — it is always user-initiated.


How to Use

Via OpenClaw (natural language)

"Scan the skill at ./skills/some-skill before I install it"
"Is the weather skill safe to install?"
"Audit clawhub skill: capability-evolver"
"Check this skill directory for malicious patterns"

Via CLI (direct)

python3 skills/clawguard/scripts/scan.py ./path/to/skill-folder

What ClawGuard Checks

ClawGuard runs 7 checks across every skill it audits:

1. 🔴 Prompt Injection Detection

Scans SKILL.md for hidden instructions that try to hijack the AI agent — patterns like instruction-override patterns, jailbreak phrases, role-swap commands, and base64-encoded command strings.

2. 🔴 Data Exfiltration Detection

Scans all shell scripts for outbound data patterns — curl/wget to unknown domains, DNS tunneling, reverse shell patterns (bash -i, nc -e, /dev/tcp), and base64-encoded command execution.

3. 🔴 Shell Injection Risk

Checks for unsafe variable interpolation (unquoted $VAR in curl URLs), missing set -euo pipefail, raw user input passed to shell commands without sanitization.

4. 🟡 Permission Mismatch

Compares permissions declared in SKILL.md frontmatter against what scripts actually access. A skill that declares env: [] but reads $HOME/.ssh/ is a red flag.

5. 🟡 External Endpoint Audit

Extracts every URL and domain contacted in scripts. Cross-references against the External Endpoints table in SKILL.md. Flags undeclared endpoints.

6. 🟡 Repository Trust Score

Evaluates: GitHub account age (must be 7+ days), repo star count, commit history depth, number of contributors, and time since last commit.

7. 🟢 Structure Compliance

Verifies the skill follows the ClawHub spec: valid SKILL.md frontmatter, correct clawdbot metadata key (not openclaw), semver version, and declared files field.


Output Format

ClawGuard outputs a clean, readable report:

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔍 CLAWGUARD REPORT — some-skill v1.0.0
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

VERDICT: ✅ PASS  (or ⚠️ WARN or ❌ FAIL)

CHECK RESULTS:
  ✅ No prompt injection patterns detected
  ✅ No data exfiltration patterns detected
  ✅ No shell injection risks detected
  ✅ Permissions match declared scope
  ⚠️  1 undeclared endpoint found: api.example.com
  ✅ Repository trust signals: OK
  ✅ Structure compliant

FINDINGS:
  [WARN] scripts/fetch.sh line 12: URL contacts api.example.com
         Not declared in SKILL.md External Endpoints table.
         Recommend: verify this domain before installing.

RECOMMENDATION:
  This skill passes all critical checks. One minor warning
  requires manual review before installing.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Verdict Rules

  • ✅ PASS — All critical checks pass, 0-1 minor warnings
  • ⚠️ WARN — No critical failures, but 2+ warnings or 1 medium-severity finding
  • ❌ FAIL — Any critical finding: prompt injection, confirmed exfiltration, reverse shell, or credential theft pattern

Severity Reference

Finding Severity Verdict Impact
Prompt injection instruction 🔴 Critical FAIL
Reverse shell pattern 🔴 Critical FAIL
Base64-encoded shell execution 🔴 Critical FAIL
Credential/key exfiltration 🔴 Critical FAIL
Undeclared external endpoint 🟡 Medium WARN
Missing set -euo pipefail 🟡 Medium WARN
Unquoted variable in curl URL 🟡 Medium WARN
Missing security manifest 🟡 Low WARN
Wrong metadata key (openclaw vs clawdbot) 🟢 Info Note
Missing homepage field 🟢 Info Note

Example Interactions

"Scan ./skills/new-skill I just downloaded"
→ Runs full audit, outputs structured report, gives install recommendation

"Is the gog skill safe?"
→ Locates installed gog skill, scans it, outputs verdict

"Check all my installed skills for issues"
→ Scans every directory under ./skills/, outputs summary table

"Scan this skill and explain any warnings in plain English"
→ Outputs report with plain-language explanations of each finding

File Structure

clawguard/
├── SKILL.md              ← You are here
├── README.md             ← Install guide
└── scripts/
    └── scan.py           ← Core scanner (Python 3, stdlib only)

Philosophy

ClawGuard is deliberately minimal:

  • One script. scan.py uses Python 3 stdlib only — no pip installs, no dependencies.
  • Read-only. It never modifies anything.
  • Local only. It never phones home.
  • Transparent. Every check is readable in plain Python. Audit the auditor.
Usage Guidance
ClawGuard appears coherent and appropriate for the claimed purpose. Before installing or relying on it: (1) open scripts/scan.py and confirm there are no network calls (look for imports or use of requests, urllib, socket, subprocess that contacts the network, or explicit HTTP calls). (2) Verify scan.py does not execute scanned code or write to locations outside the scanned skill directory. (3) If you rely on 'repo star count' or 'GitHub account age', confirm how those metrics are computed (local git metadata vs remote API). (4) Run the scanner on a copy of a target skill in a sandbox first. Finally, because the SKILL.md intentionally contains prompt-injection examples, be aware those phrases may trigger other automated reviews — this is expected but worth noting.
Capability Analysis
Type: OpenClaw Skill Name: claw-guard Version: 1.0.0 This skill is a security auditor designed to detect prompt injection, data exfiltration, and other malicious patterns in other OpenClaw skills. Both its `SKILL.md` documentation and `scripts/scan.py` code explicitly state and adhere to a 'read-only', 'local-only', 'no external calls', and 'stdlib-only' philosophy. The `scan.py` script uses only standard Python libraries for pattern matching (regex) and does not perform any file writing, network communication, or execution of untrusted code. The `SKILL.md` itself contains no prompt injection attempts. All evidence indicates a transparent, purpose-aligned, and non-malicious security tool.
Capability Assessment
Purpose & Capability
The skill is described as a local security auditor and requires no env vars or binaries; scan.py and SKILL.md consistently implement scanning of files in a target skill directory. One small mismatch: the 'Repository Trust Score' lists metrics like repo star count and GitHub account age which normally require network/GitHub API access — the package claims 'no external calls', so those metrics must be derived from local git metadata or are aspirational. This is plausible but worth verifying in scan.py if you rely on those exact metrics.
Instruction Scope
SKILL.md instructs local use (python3 skills/clawguard/scripts/scan.py <path>) and promises read-only, local analysis. The file contains many prompt-injection example strings (e.g., 'ignore previous instructions') — these appear as detection examples, which is expected, but the presence of raw injection phrases can trigger other static detectors or confuse automated evaluators. Verify scan.py only reads target files and doesn't itself execute untrusted code from scanned skills.
Install Mechanism
No install spec; instruction-only with an included scan.py. No downloads, no package managers, and the README/scan.py both claim stdlib-only. That's proportionate for a local scanner.
Credentials
The skill declares and appears to need no environment variables, credentials, or config paths. scan.py's SECURITY MANIFEST at the top also states 'Environment variables accessed: none' and 'External endpoints called: none', which aligns with the declared purpose.
Persistence & Privilege
Registry flags are normal (not always:true). The skill is user-invocable and does not claim to modify system-wide settings or other skills. Nothing requests elevated or persistent privileges.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install claw-guard
  3. After installation, invoke the skill by name or use /claw-guard
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
ClawGuard v1.0.0 — Initial Release - Launches a local security auditor for ClawHub skills: scans for prompt injection, data exfiltration, shell injection, permission mismatches, and other malicious patterns. - Provides PASS / WARN / FAIL verdicts with detailed reports, requiring user request to run. - Fully local and read-only; no external calls, telemetry, or credential requirements. - Audits SKILL.md and scripts against 7 core security checks, including repository trust signals. - Simple usage via natural language in OpenClaw or CLI command.
Metadata
Slug claw-guard
Version 1.0.0
License
All-time Installs 1
Active Installs 1
Total Versions 1
Frequently Asked Questions

What is ClawGuard?

Security auditor for ClawHub skills. Run before installing ANY skill — scans SKILL.md and scripts for prompt injection, data exfiltration, shell injection, p... It is an AI Agent Skill for Claude Code / OpenClaw, with 552 downloads so far.

How do I install ClawGuard?

Run "/install claw-guard" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is ClawGuard free?

Yes, ClawGuard is completely free (open-source). You can download, install and use it at no cost.

Which platforms does ClawGuard support?

ClawGuard is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created ClawGuard?

It is built and maintained by Almouthana Taha Khalfallah (@taha2053); the current version is v1.0.0.

💬 Comments