security-audit
Fail-closed security auditing for OpenClaw/ClawHub skills & repos: trufflehog secrets scanning, semgrep SAST, prompt-injection/persistence signals, and supply-chain hygiene checks before enabling or installing.
- License 许可
- MIT
- 最近更新
- 2026-08-23
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- security-audit
- metadata
- { "openclaw": { "emoji": "?️", "install": [ { "id": "apt-jq", "bins": [ "jq" ], "kind": "apt", "label": "Install jq (apt)", "package": "jq" }, { "id": "apt-ghog", "bins": [ "python3" ], "kind": "apt", "label": "Install Python 3 (apt)", "package": "python3" }, { "id": "apt-trufflehog", "bins": [ "trufflehog" ], "kind": "apt", "label": "Install trufflehog (apt)", "package": "trufflehog" }, { "id": "pipx-semgrep", "kind": "shell", "label": "Install semgrep (pipx)", "command": "python3 -m pip install --user pipx && python3 -m pipx ensurepath && pipx install semgrep" }, { "id": "brew-jq", "bins": [ "jq" ], "kind": "brew", "label": "Install jq (brew)", "formula": "jq" }, { "id": "brew-trufflehog", "bins": [ "trufflehog" ], "kind": "brew", "label": "Install trufflehog (brew)", "formula": "trufflehog" }, { "id": "brew-semgrep", "bins": [ "semgrep" ], "kind": "brew", "label": "Install semgrep (brew)", "formula": "semgrep" } ], "requires": { "bins": [ "jq", "trufflehog", "semgrep", "python3" ] } } }
- description
- Fail-closed security auditing for OpenClaw/ClawHub skills & repos: trufflehog secrets scanning, semgrep SAST, prompt-injection/persistence signals, and supply-chain hygiene checks before enabling or installing.
02 资源文件 9
- 参考文档_meta.json648 B
- 参考文档CHANGELOG.md538 B
- 参考文档docs/OPENCLAW_SKILL_MANIFEST_SCHEMA.md925 B
- 参考文档docs/README_ZERO_TRUST_INSTALL.md1.3 KB
- 参考文档openclaw-skill.json1.1 KB
- 参考文档README.md575 B
- 脚本scripts/hostile_audit.py12.8 KB
- 脚本scripts/run_audit_json.sh2.4 KB
- 脚本scripts/security_audit.sh1.0 KB
03 SKILL.md 正文
security-audit
A hostile-by-design, fail-closed audit workflow for codebases and OpenClaw/ClawHub skills.
It does not try to answer “does this skill work?”. It tries to answer: “can this skill betray the system?”
What it checks (high level)
This skill’s scripts combine multiple layers:
- Secrets / credential leakage: trufflehog
- Static analysis: semgrep (auto rules)
- Hostile repo audit (custom): prompt-injection signals, persistence mechanisms, suspicious artifacts, dependency hygiene
If any layer fails, the overall audit is FAIL.
Run an audit (JSON)
From this skill folder (use bash so it works even if executable bits were not preserved by a zip download):
bash scripts/run_audit_json.sh <path>
Example:
bash scripts/run_audit_json.sh . > /tmp/audit.json
jq '.ok, .tools' /tmp/audit.json
Security levels (user configurable)
Set the strictness level (default: standard):
OPENCLAW_AUDIT_LEVEL=standard bash scripts/run_audit_json.sh <path>
OPENCLAW_AUDIT_LEVEL=strict bash scripts/run_audit_json.sh <path>
OPENCLAW_AUDIT_LEVEL=paranoid bash scripts/run_audit_json.sh <path>
standard: pragmatic strict defaults (lockfiles required; install hooks/persistence/prompt-injection signals fail)strict: more patterns become hard FAIL (e.g. minified/obfuscation artifacts)paranoid: no "best-effort" hashing failures; more fail-closed behavior
Manifest requirement (for zero-trust install workflows)
For strict/quarantine workflows, require a machine-readable intent/permissions manifest at repo root:
openclaw-skill.json
If a repo/skill does not provide this manifest, the hostile audit should treat it as FAIL.
See: docs/OPENCLAW_SKILL_MANIFEST_SCHEMA.md.
Optional: execution sandbox (Docker)
Docker is optional here. This skill can be used for static auditing without Docker.
If you want to execute any generated/untrusted code, run it in a separate sandbox workflow (recommended).
Files
scripts/run_audit_json.sh— main JSON audit runnerscripts/hostile_audit.py— prompt-injection/persistence/dependency hygiene scannerscripts/security_audit.sh— convenience wrapper (always returns JSON, never non-zero)openclaw-skill.json— machine-readable intent/permissions manifest
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.