OpenClaw Security Audit
What to check and why — covering all 13 Clawkeeper security audit checks.
Version & CVE Detection
Check your OpenClaw version
$ openclaw --versionClawkeeper cross-references your version against known CVEs. Outdated versions may have unpatched vulnerabilities.
Detects installed version and checks against known CVEs
| CVE | Severity | Affected | Fix |
|---|---|---|---|
| CVE-2024-XXXXX | Critical | < 0.2.0 | Upgrade to 0.2.1+ |
| CVE-2024-YYYYY | High | < 0.1.8 | Upgrade to 0.1.9+ |
Configuration Audit
Review your OpenClaw config
$ cat ~/.config/openclaw/config.jsonClawkeeper checks for insecure defaults and dangerous settings.
Audits OpenClaw configuration for insecure settings
{
"allowHttp": true,
"skipTlsVerify": true,
"verbose": true,
"logLevel": "debug",
"allowAllHosts": true
}{
"allowHttp": false,
"skipTlsVerify": false,
"verbose": false,
"logLevel": "warn",
"allowAllHosts": false,
"allowedHosts": [
"api.anthropic.com"
]
}Hardening audit
Beyond config, Clawkeeper checks that OpenClaw's runtime behavior is locked down: file permissions, process isolation, and signal handling.
Checks OpenClaw runtime hardening (permissions, isolation)
Credential Security
Check .env files
$ find . -name '.env*' -exec echo 'Found: {}' \\;Ensure .env files aren't committed to git and have restrictive permissions (600).
Audits .env file permissions and git tracking status
Scan for exposed credentials
Clawkeeper scans your workspace for hardcoded API keys, tokens, and passwords using pattern matching.
Scans for hardcoded secrets in workspace files
Verify credential storage
Credentials should be in your OS keychain or a secrets manager — not in plain text files.
Checks that credentials use secure storage (keychain/vault)
config.json. Use environment variables or your OS keychain instead.Skills & SOUL.md
Audit installed skills
Skills have broad system access. Clawkeeper performs static analysis on installed skills to detect dangerous patterns.
Static analysis of installed skills for dangerous patterns
Verify SOUL.md integrity
The SOUL.md file defines your agent's behavior. Clawkeeper checks for prompt injection, base64-encoded payloads, and unicode obfuscation.
Audits SOUL.md for prompt injection and obfuscation
Prompt Injection & Rogue Commands
Scan sessions for prompt injection
Clawkeeper scans your most recent session JSONL files for prompt injection attempts in user messages — jailbreak phrases, base64-encoded payloads, and invisible Unicode characters.
Sub-check: Session Prompt Injection — detects injection in session transcripts
Detect rogue agent commands
Session logs are scanned for suspicious commands executed by AI agents: data exfiltration (curl POST), reverse shells, base64-to-shell execution, privilege escalation, and history clearing.
Detects rogue bash commands in agent session history
Check MEMORY.md for poisoned instructions
MEMORY.md persists across sessions and is writable by agents. Clawkeeper checks for injected jailbreak phrases, security-disabling instructions, C2 callback URLs, and encoded content.
Sub-check: Memory Prompt Injection — detects poisoned instructions in MEMORY.md
Container & Gateway
Container security
If running in Docker, Clawkeeper audits capabilities, read-only filesystem, privilege escalation, and resource limits.
Audits container hardening settings
Gateway configuration
For deployments using an API gateway, Clawkeeper checks TLS settings, rate limiting, authentication requirements, and CORS policy.
Audits API gateway configuration for security best practices
Instance detection
$ npx clawkeeper scan --check openclaw_runningDetects all running OpenClaw instances and their process attributes (user, PID, memory usage, port bindings).
Detects running OpenClaw instances and their attributes
NemoClaw & NanoClaw Checks
NemoClaw guardrails audit
For NemoClaw instances, Clawkeeper verifies that NeMo Guardrails is installed, configured, and running. Checks include guardrail policy validation, PII masking status, jailbreak detection rules, and audit log configuration.
NanoClaw container isolation
NanoClaw instances get additional container isolation checks: mount allowlist validation, ephemeral container lifecycle, channel-only network policy, and resource limits. These replace Runtime Shield checks since NanoClaw uses OS-level isolation instead.
Full Audit Scan
$ npx clawkeeper scan --phase security_audit
PASS openclaw_versionPASS openclaw_configPASS openclaw_hardeningPASS env_filePASS credential_exposurePASS session_commandsPASS credential_storePASS skills_securityPASS soul_securityPASS container_securityPASS gateway_advancedPASS openclaw_runningPASS cve_audit
─────────────────────────────────
13/13 checks passed. Grade: A
