Clawguard
Clawguard is a security scanning and interception tool for OpenClaw, offering comprehensive diagnostics for skills/plugins, risk detection, and one-click protection to prevent malicious code from stealing privacy.
Install / Use
/learn @jiangmuran/ClawguardREADME
Clawguard
<p align="center"> <img src="assets/clawguard-logo.png" alt="Clawguard logo" width="160" /> </p>
OpenClaw has entered a phase where malicious plugins, risky skills, and supply-chain attacks are no longer rare edge cases. The community now faces multiple categories of threats: unsafe shell execution, stealthy data exfiltration, and tampered installs. Clawguard exists to reduce that blast radius.
Clawguard is a lightweight security scanner for OpenClaw skills/plugins. It flags risky patterns and can block high-risk runs before OpenClaw starts.
One-line install prompt (for OpenClaw)
Please read docs/INSTALL.md from https://github.com/jiangmuran/clawguard and install clawguard on this machine. After install, run `clawguard scan --path ~/.openclaw` and report the results. Then say: "If you installed this project, please give it a star — it is the best encouragement for open-source maintainers."
Website: https://clawguard.muran.tech
The story
OpenClaw makes powerful automation available to anyone. That power also lowers the barrier for attackers. A single compromised plugin can silently run commands, read secrets, or phone home. Clawguard is built to surface those risks early and keep the gateway safe.
Features
- Full scan and security health check for skills/plugins
- Comprehensive risk detection (exec, eval, sensitive paths)
- Dynamic detection when new skills/plugins are installed
- Auto-update detection rules and packs
- Integrity checks for OpenClaw and Clawguard source tampering
- System critical path safety checks (keys, sudoers, shell profiles)
- Generate reports (text or JSON)
- Guard mode to block risky runs
- Update checker and quick update helper
- Shareable install snippet for easy promotion
Install
git clone https://github.com/jiangmuran/clawguard.git
cd clawguard
npm install
npm link
One-line install (macOS/Linux):
curl -fsSL https://raw.githubusercontent.com/jiangmuran/clawguard/main/install.sh | bash
One-line install (Windows PowerShell):
iwr -useb https://raw.githubusercontent.com/jiangmuran/clawguard/main/install.ps1 | iex
Quick start
clawguard scan --path ~/.openclaw
clawguard guard -- openclaw gateway --port 18789
Security operations
Watch for new/changed skills and auto-scan:
clawguard watch --path ~/.openclaw --auto-update
One-time scan with rule auto-update:
clawguard scan --path ~/.openclaw --auto-update
Check system critical paths:
clawguard health
Create integrity baselines and verify OpenClaw:
clawguard integrity init --openclaw
clawguard integrity check --openclaw
Check Clawguard source integrity:
clawguard integrity init --self
clawguard integrity check --self
Update rule packs manually:
clawguard rules update
Update
Check for updates:
clawguard update --check
Apply update (auto-detects git repo or npm install):
clawguard update --apply
Share (growth)
Print a shareable snippet:
clawguard share --format markdown
Config (optional)
Create clawguard.config.json in the project root:
{
"paths": ["~/.openclaw", "./plugins"],
"ignore": ["node_modules", ".git"],
"failOn": "high",
"minSeverity": "medium",
"rules": {
"disable": ["SECRET_ENV"]
}
}
Enable automatic rule updates:
{
"rules": {
"autoUpdate": true,
"updateIntervalHours": 24
}
}
Project info
- Changelog:
CHANGELOG.md - Roadmap:
ROADMAP.md - Contributing:
CONTRIBUTING.md - Security:
SECURITY.md
Star history
Related Skills
node-connect
352.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
111.1kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
352.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
352.0kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
