luovicter-collab/openclaw-docs/clawdbot-security-check
- community
Checking that the SKILL.md file is still in the repository.
Perform a comprehensive read-only security audit of Clawdbot's own configuration. This is a knowledge-based skill that teaches Clawdbot to identify hardening opportunities across the system. Use when user asks to "run security check", "audit clawdbot", "check security hardening", or "what vulnerabilities does my Clawdbot have". This skill uses Clawdbot's internal capabilities and file system access to inspect configuration, detect misconfigurations, and recommend remediations. It is designed to be extensible - new checks can be added by updating this skill's knowledge.
Install
npx vskill@latest install luovicter-collab/openclaw-docs/clawdbot-security-checkSKILL.md
The same SKILL.md was published earlier as violettance/waffle/clawdbot-security-check.
Clawdbot Self-Security Audit Framework
This skill empowers Clawdbot to audit its own security posture using first-principles reasoning. Rather than relying on a static script, Clawdbot learns the framework and applies it dynamically to detect vulnerabilities, understand their impact, and recommend specific remediations.
Core Philosophy
"Security through transparency and self-awareness." — Inspired by ᴅᴀɴɪᴇʟ ᴍɪᴇssʟᴇʀ
Clawdbot should know its own attack surface. This skill embeds that knowledge directly.
Security Principles
Running an AI agent with shell access requires caution. Focus on three areas:
- Who can talk to the bot — DM policies, group allowlists, channel restrictions
- Where the bot is allowed to act — Network exposure, gateway binding, proxy configs
- What the bot can touch — Tool access, file permissions, credential storage
Start with the smallest access possible and widen it as you gain confidence.
Trust Hierarchy
Apply appropriate trust levels based on role:
| Level | Entity | Trust Model | |
|---|---|---|---|
| 1 | Owner | Full trust — has all access | |
| 2 | AI | Trust but verify — sandboxed, logged | |
| 3 | Allowlists | Limited trust — only specified users | |
| 4 | Strangers | No trust — blocked by default |
Audit Commands
Use these commands to run security audits:
clawdbot security audit— Standard audit of common issuesclawdbot security audit --deep— Comprehensive audit with all checksclawdbot security audit --fix— Apply guardrail remediations
The 12 Security Domains
When auditing Clawdbot, systematically evaluate these domains:
1. Gateway Exposure 🔴 Critical
What to check:
- Where is the gateway binding? (
gateway.bind) - Is authentication configured? (
gateway.auth_tokenorCLAWDBOT_GATEWAY_TOKENenv var) - What port is exposed? (default: 18789)
- Is WebSocket auth enabled?
How to detect:
Vulnerability: Binding to 0.0.0.0 or lan without auth allows network access.
Remediation:
2. DM Policy Configuration 🟠 High
What to check:
- What is
dm_policyset to? - If
allowlist, who is explicitly allowed viaallowFrom?
How to detect:
Vulnerability: Setting to allow or open means any user can DM Clawdbot.
Remediation:
3. Group Access Control 🟠 High
What to check:
- What is
groupPolicyset to? - Are groups explicitly allowlisted?
- Are mention gates configured?
How to detect:
Vulnerability: Open group policy allows anyone in the room to trigger commands.
Remediation:
4. Credentials Security 🔴 Critical
What to check:
- Credential file locations and permissions
- Environment variable usage
- Auth profile storage
Credential Storage Map:
| Platform | Path | |
|---|---|---|
~/.clawdbot/credentials/whatsapp/{accountId}/creds.json | ||
| Telegram | ~/.clawdbot/clawdbot.json or env | |
| Discord | ~/.clawdbot/clawdbot.json or env | |
| Slack | ~/.clawdbot/clawdbot.json or env | |
| Pairing allowlists | ~/.clawdbot/credentials/channel-allowFrom.json | |
| Auth profiles | ~/.clawdbot/agents/{agentId}/auth-profiles.json | |
| Legacy OAuth | ~/.clawdbot/credentials/oauth.json |
How to detect:
Vulnerability: Plaintext credentials with loose permissions can be read by any process.
Remediation:
5. Browser Control Exposure 🟠 High
What to check:
- Is browser control enabled?
- Are authentication tokens set for remote control?
- Is HTTPS required for Control UI?
- Is a dedicated browser profile configured?
How to detect:
Vulnerability: Exposed browser control without auth allows remote UI takeover. Browser access allows the model to use logged-in sessions.
Remediation:
Security Note: Treat browser control URLs as admin APIs.
6. Gateway Bind & Network Exposure 🟠 High
What to check:
- What is
gateway.bindset to? - Are trusted proxies configured?
- Is Tailscale enabled?
How to detect:
Vulnerability: Public binding without auth allows internet access to gateway.
Remediation:
7. Tool Access & Sandboxing 🟡 Medium
What to check:
- Are elevated tools allowlisted?
- Is
restrict_toolsormcp_toolsconfigured? - What is
workspaceAccessset to? - Are sensitive tools running in sandbox?
How to detect:
Workspace Access Levels:
| Mode | Description | |
|---|---|---|
none | Workspace is off limits | |
ro | Workspace mounted read-only | |
rw | Workspace mounted read-write |
Vulnerability: Broad tool access means more blast radius if compromised. Smaller models are more susceptible to tool misuse.
Remediation:
Model Guidance: Use latest generation models for agents with filesystem or network access. If using small models, disable web search and browser tools.
8. File Permissions & Local Disk Hygiene 🟡 Medium
What to check:
- Directory permissions (should be 700)
- Config file permissions (should be 600)
- Symlink safety
How to detect:
Vulnerability: Loose permissions allow other users to read sensitive configs.
Remediation:
9. Plugin Trust & Model Hygiene 🟡 Medium
What to check:
- Are plugins explicitly allowlisted?
- Are legacy models in use with tool access?
How to detect:
Vulnerability: Untrusted plugins can execute code. Legacy models may lack modern safety.
Remediation:
10. Logging & Redaction 🟡 Medium
What is logging.redactSensitive set to?
- Should be
toolsto redact sensitive tool output - If
off, credentials may leak in logs
How to detect:
Remediation:
11. Prompt Injection Protection 🟡 Medium
What to check:
- Is
wrap_untrusted_contentoruntrusted_content_wrapperenabled? - How is external/web content handled?
- Are links and attachments treated as hostile?
How to detect:
Prompt Injection Mitigation Strategies:
- Keep DMs locked to
pairingorallowlists - Use mention gating in groups
- Treat all links and attachments as hostile
- Run sensitive tools in a sandbox
- Use instruction-hardened models like Anthropic Opus 4.5
Vulnerability: Untrusted content (web fetches, sandbox output) can inject malicious prompts.
Remediation:
12. Dangerous Command Blocking 🟡 Medium
What to check:
- What commands are in
blocked_commands? - Are these patterns included:
rm -rf,curl |,git push --force,mkfs, fork bombs?
How to detect:
Vulnerability: Without blocking, a malicious prompt could destroy data or exfiltrate credentials.
Remediation:
13. Secret Scanning Readiness 🟡 Medium
What to check:
- Is detect-secrets configured?
- Is there a
.secrets.baselinefile? - Has a baseline scan been run?
How to detect:
Secret Scanning (CI):
Vulnerability: Leaked credentials in the codebase can lead to compromise.
Audit Functions
The --fix flag applies these guardrails:
- Changes
groupPolicyfromopentoallowlistfor common channels - Resets
logging.redactSensitivefromofftotools - Tightens local permissions:
.clawdbotdirectory to700, config files to600 - Secures state files including credentials and auth profiles
High-Level Audit Checklist
Treat findings in this priority order:
- 🔴 Lock down DMs and groups if tools are enabled on open settings
- 🔴 Fix public network exposure immediately
- 🟠 Secure browser control with tokens and HTTPS
- 🟠 Correct file permissions for credentials and config
- 🟡 Only load trusted plugins
- 🟡 Use modern models for bots with tool access
Access Control Models
DM Access Model
| Mode | Description | |
|---|---|---|
pairing | Default - unknown senders must be approved via code | |
allowlist | Unknown senders blocked without handshake | |
open | Public access - requires explicit asterisk in allowlist | |
disabled | All inbound DMs ignored |
Slash Commands
Slash commands are only available to authorized senders based on channel allowlists. The /exec command is a session convenience for operators and does not modify global config.
Threat Model & Mitigation
Potential Risks
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/clawdbot-security-check/SKILL.md
Popularity
- Repository stars
- 1
- 7-day trend score
- 3
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/luovicter-collab/openclaw-docs/clawdbot-security-check)