openclaw-warden-pro
Full workspace security suite: detect unauthorized modifications, scan for prompt injection patterns, and automatically respond with countermeasures — snapshot restore, skill quarantine, git rollback, and automated protection sweeps. The complete post-installation security layer for agent workspaces.
- License 许可
- MIT
- 最近更新
- 2026-08-23
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- openclaw-warden-pro
- metadata
- { "openclaw": { "os": [ "darwin", "linux", "win32" ], "emoji": "?️", "requires": { "bins": [ "python3" ] } } }
- description
- Full workspace security suite: detect unauthorized modifications, scan for prompt injection patterns, and automatically respond with countermeasures — snapshot restore, skill quarantine, git rollback, and automated protection sweeps. The complete post-installation security layer for agent workspaces.
- user-invocable
- true
02 资源文件 3
- 参考文档_meta.json291 B
- 参考文档README.md4.1 KB
- 脚本scripts/integrity.py35.2 KB
03 SKILL.md 正文
OpenClaw Warden Pro
Everything in openclaw-warden (free) plus automated countermeasures.
Free version detects threats. Pro version responds to them.
Detection Commands (also in free)
python3 {baseDir}/scripts/integrity.py baseline --workspace /path/to/workspace
python3 {baseDir}/scripts/integrity.py verify --workspace /path/to/workspace
python3 {baseDir}/scripts/integrity.py scan --workspace /path/to/workspace
python3 {baseDir}/scripts/integrity.py full --workspace /path/to/workspace
python3 {baseDir}/scripts/integrity.py status --workspace /path/to/workspace
python3 {baseDir}/scripts/integrity.py accept SOUL.md --workspace /path/to/workspace
Pro Countermeasures
Restore from Snapshot
Restore a tampered file to its baseline snapshot. Critical, config, and skill files are automatically snapshotted when the baseline is established.
python3 {baseDir}/scripts/integrity.py restore SOUL.md --workspace /path/to/workspace
Git Rollback
Restore a file to its last git-committed state.
python3 {baseDir}/scripts/integrity.py rollback SOUL.md --workspace /path/to/workspace
Quarantine a Skill
Disable a suspicious skill by renaming its directory. The agent will not load quarantined skills.
python3 {baseDir}/scripts/integrity.py quarantine bad-skill --workspace /path/to/workspace
Unquarantine a Skill
Restore a quarantined skill after investigation.
python3 {baseDir}/scripts/integrity.py unquarantine bad-skill --workspace /path/to/workspace
Protect (Automated Response)
Full scan + automatic countermeasures in one pass: restore tampered critical files, quarantine malicious skills, flag remaining issues. This is the recommended command for session startup.
python3 {baseDir}/scripts/integrity.py protect --workspace /path/to/workspace
Recommended Integration
Session Startup Hook (Claude Code)
{
"hooks": {
"SessionStart": [
{
"hooks": [
{
"type": "command",
"command": "python3 scripts/integrity.py protect",
"timeout": 30
}
]
}
]
}
}
Heartbeat (OpenClaw)
Add to HEARTBEAT.md for periodic protection:
- Run workspace integrity protection (python3 {skill:openclaw-warden-pro}/scripts/integrity.py protect)
After Installing New Skills
Run protect to auto-quarantine skills that modified workspace files.
What Gets Monitored
| Category | Files | Alert Level |
|---|---|---|
| Critical | SOUL.md, AGENTS.md, IDENTITY.md, USER.md, TOOLS.md, HEARTBEAT.md | WARNING |
| Memory | memory/*.md, MEMORY.md | INFO |
| Config | *.json in workspace root | WARNING |
| Skills | skills/*/SKILL.md | WARNING |
Countermeasure Summary
| Command | Action |
|---|---|
protect |
Full scan + auto-restore + auto-quarantine + flag |
restore <file> |
Restore from baseline snapshot |
rollback <file> |
Restore from git history |
quarantine <skill> |
Disable skill by renaming directory |
unquarantine <skill> |
Re-enable a quarantined skill |
No External Dependencies
Python standard library only. No pip install. No network calls. Everything runs locally.
Cross-Platform
Works with OpenClaw, Claude Code, Cursor, and any tool using the Agent Skills specification.
04 同仓库更多 Skills
crowd-prompting
A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.
dilemm-ai
Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).
arxiv-paper-reviews
Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, or submitting paper reviews via API at http://150.158.152.82:8000.
arxiv-paper-reviews
Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, or submitting paper reviews via API at http://150.158.152.82:8000.
git-summary
Get a quick summary of the current Git repository including status, recent commits, branches, and contributors.
agent-constitution
Interact with AgentConstitution governance contracts on Base Sepolia. Check compliance, read rules, log actions, query governance state.