Security hardening for Clawdbot Gateway...
Harden Clawdbot Gateway deployments by fetching current security practices and applying them.
Before advising on security, fetch the latest official documentation:
# Primary security guide
web_fetch https://raw.githubusercontent.com/clawdbot/clawdbot/main/docs/gateway/security.md
# Specific topics
web_fetch https://raw.githubusercontent.com/clawdbot/clawdbot/main/docs/gateway/sandboxing.md
web_fetch https://raw.githubusercontent.com/clawdbot/clawdbot/main/docs/gateway/authentication.md
web_fetch https://raw.githubusercontent.com/clawdbot/clawdbot/main/docs/gateway/pairing.md
clawdbot security audit # Basic check
clawdbot security audit --deep # Live Gateway probe
clawdbot security audit --fix # Auto-apply safe fixes
clawdbot sandbox explain # Debug sandbox/tool policy
User needs help with security
āāā Running audit or interpreting findings?
ā āāā Run `clawdbot security audit`, explain findings, suggest fixes
āāā Configuring access control (DM/group policies)?
ā āāā Fetch security.md, explain pairing vs allowlist vs open
āāā Setting up sandboxing?
ā āāā Fetch sandboxing.md, explain mode/scope/workspaceAccess
āāā Managing secrets in config?
ā āāā Run scripts/extract_secrets.py or guide manual .env creation
āāā Responding to incident?
ā āāā Follow contain ā rotate ā audit workflow
āāā General security question?
āāā Fetch security.md, consult references/quick-reference.md
For details, read references/quick-reference.md.
Automate moving hardcoded secrets from config to .env:
python scripts/extract_secrets.py --dry-run # Preview
python scripts/extract_secrets.py # Execute
chmod 600 config, chmod 700 dirsbind: "loopback", freeze policies/tmp/clawdbot/*.log) and transcriptsclawdbot security audit --deep