Install
openclaw skills install paid-bash-security-v1-123-validator bash security chain validated in production Claude Code deployments. Every check closed a real attack vector.
openclaw skills install paid-bash-security-v1-1Understand the threat model first? Read the free primer: OpenClaw Bash Safety — Why Your Agent Is a Security Risk It covers what ClawHavoc exploited, why text-pattern matching alone fails, and why this validator exists.
This skill installs a 23-validator bash security chain — the exact sequence
Anthropic runs in production Claude Code before every shell execution. It activates
on every exec tool call your OpenClaw agent makes.
Validator categories:
Each category closes a distinct attack class. Skipping any one leaves a category of attack unblocked.
mkdir -p ~/.openclaw/workspace/skills/bash-security-validator
cp SKILL.md ~/.openclaw/workspace/skills/bash-security-validator/
Reload OpenClaw or restart the gateway.
After installation, the agent will validate bash commands before execution. Test with a safe command:
Ask your agent: "Run: echo hello"
Normal execution proceeds. Then test a flagged pattern — a command that pipes untrusted remote content directly into a shell interpreter. The validator should intercept and refuse, explaining which validator triggered and why.
Two modes available. Set in your agent system prompt or SOUL.md:
Strict mode (recommended for production): Block and report. The agent stops, explains what triggered, and asks for confirmation or alternative.
Audit mode (recommended for onboarding): Log and warn. The agent notes the risk but proceeds. Use this for 1–2 weeks to understand what your existing workflows trigger before switching to strict.
Add to SOUL.md:
Bash security enforcement: strict
Full specification in BASH_SECURITY_ARCHITECTURE.md (included in package).
Pre-processing gates (4):
Text validators (5):
Structural validators (6):
Encoding validators (4):
Persistence/escalation validators (4):
341 skills on ClawHub (early 2026) contained malicious setup scripts that passed all standard text-level checks. The attack vectors were:
Three specific validators in this chain block all three attack vectors. All three were absent from standard OpenClaw exec validation at the time.
This skill is included in the Production Agent Ops — Battle-Tested Architecture Pack along with 6 other production architecture files. If you need compaction, loop termination, session memory, and the rest — the bundle costs less than buying individually.