ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified

guard-scanner

Security scanner for AI agent skills. Use BEFORE installing or running any new skill from ClawHub or external sources. Detects prompt injection, credential theft, exfiltration, identity hijacking, sandbox violations, code complexity, config impact, and 17 more threat categories. Includes a Runtime Guard hook (26 patterns, 5 layers, 0.016ms/scan) that blocks dangerous tool calls in real-time.

skill-install β€” Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/koatora20/guard-scanner
Or

guard-scanner πŸ›‘οΈ

Static + runtime security scanner for AI agent skills. 135 static patterns + 26 runtime patterns (5 layers) across 22 categories β€” zero dependencies. 0.016ms/scan.

When To Use This Skill

  • Before installing a new skill from ClawHub or any external source
  • After updating skills to check for newly introduced threats
  • Periodically to audit your installed skills
  • In CI/CD to gate skill deployments

Quick Start

1. Static Scan (Immediate)

Scan all installed skills:

node skills/guard-scanner/src/cli.js ~/.openclaw/workspace/skills/ --verbose --self-exclude

Scan a specific skill:

node skills/guard-scanner/src/cli.js /path/to/new-skill/ --strict --verbose

2. Runtime Guard (OpenClaw Plugin Hook)

Blocks dangerous tool calls in real-time via before_tool_call hook. 26 patterns, 5 layers, 3 enforcement modes.

openclaw hooks install skills/guard-scanner/hooks/guard-scanner
openclaw hooks enable guard-scanner
openclaw hooks list

3. Recommended order

# Pre-install / pre-update gate first
node skills/guard-scanner/src/cli.js ~/.openclaw/workspace/skills/ --verbose --self-exclude --html

# Then keep runtime monitoring enabled
openclaw hooks install skills/guard-scanner/hooks/guard-scanner
openclaw hooks enable guard-scanner

Runtime Guard Modes

Set in openclaw.json β†’ hooks.internal.entries.guard-scanner.mode:

ModeIntended BehaviorCurrent Status
monitorLog all, never blockβœ… Fully working
enforce (default)Block CRITICAL threatsβœ… Fully working
strictBlock HIGH + CRITICALβœ… Fully working

Threat Categories

#CategoryWhat It Detects
1Prompt InjectionHidden instructions, invisible Unicode, homoglyphs
2Malicious Codeeval(), child_process, reverse shells
3Suspicious Downloadscurl|bash, executable downloads
4Credential Handling.env reads, SSH key access
5Secret DetectionHardcoded API keys and tokens
6Exfiltrationwebhook.site, DNS tunneling
7Unverifiable DepsRemote dynamic imports
8Financial AccessCrypto wallets, payment APIs
9ObfuscationBase64β†’eval, String.fromCharCode
10Prerequisites FraudFake download instructions
11Leaky SkillsSecret leaks through LLM context
12Memory Poisoning*Agent memory modification
13Prompt WormSelf-replicating instructions
14PersistenceCron jobs, startup execution
15CVE PatternsKnown agent vulnerabilities
16MCP SecurityTool/schema poisoning, SSRF
17Identity Hijacking*SOUL.md/IDENTITY.md tampering
18Sandbox ValidationDangerous binaries, broad file scope, sensitive env
19Code ComplexityExcessive file length, deep nesting, eval density
20Config Impactopenclaw.json writes, exec appr...

Metadata

Author@koatora20
Stars1696
Views0
Updated2026-03-01
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build β€” we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-koatora20-guard-scanner": {
      "enabled": true,
      "auto_update": true
    }
  }
}
Safety NoteClawKit audits metadata but not runtime behavior. Use with caution.