对 Clawdbot 自身的配置执行全面的只读安全审核。这是一项基于知识的技能,可教会 Clawdbot 识别整个系统的强化机会。当用户要求“运行安全检查”、“审核clawdbot”、“检查安全强化”或“存在哪些漏洞”时使用
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install clawdbot-security-check或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install clawdbot-security-check⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/clawdbot-security-check/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: clawdbot-self-security-audit description: 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. homepage: https://github.com/TheSethRose/Clawdbot-Security-Check metadata: {"clawdbot":{"emoji":"🔒","os":["darwin","linux"],"requires":{"files":["read"],"tools":["exec","bash"]},"install":[{"id":"read-skill","kind":"skill","name":"clawdbot-self-security-audit","label":"Install security audit skill","bins":["SKILL.md"]}]}} ---
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.
> "Security through transparency and self-awareness." — Inspired by ᴅᴀɴɪᴇʟ ᴍɪᴇssʟᴇʀ
Clawdbot should know its own attack surface. This skill embeds that knowledge directly.
Running an AI agent with shell access requires caution. Focus on three areas:
Start with the smallest access possible and widen it as you gain confidence.
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 |
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 remediationsWhen auditing Clawdbot, systematically evaluate these domains:
What to check:
gateway.bind)gateway.auth_token or CLAWDBOT_GATEWAY_TOKEN env var)How to detect:
cat ~/.clawdbot/clawdbot.json | grep -A10 '"gateway"'
env | grep CLAWDBOT_GATEWAY_TOKEN
Vulnerability: Binding to 0.0.0.0 or lan without auth allows network access.
Remediation:
# Generate gateway token
clawdbot doctor --generate-gateway-token
export CLAWDBOT_GATEWAY_TOKEN="$(openssl rand -hex 32)"
---
What to check:
dm_policy set to?allowlist, who is explicitly allowed via allowFrom?How to detect:
cat ~/.clawdbot/clawdbot.json | grep -E '"dm_policy|"allowFrom"'
Vulnerability: Setting to allow or open means any user can DM Clawdbot.
Remediation:
{
"channels": {
"telegram": {
"dmPolicy": "allowlist",
"allowFrom": ["@trusteduser1", "@trusteduser2"]
}
}
}
---
What to check:
groupPolicy set to?How to detect:
cat ~/.clawdbot/clawdbot.json | grep -E '"groupPolicy"|"groups"'
cat ~/.clawdbot/clawdbot.json | grep -i "mention"
Vulnerability: Open group policy allows anyone in the room to trigger commands.
Remediation:
{
"channels": {
"telegram": {
"groupPolicy": "allowlist",
"groups": {
"-100123456789": true
}
}
}
}
---
What to check:
Credential Storage Map: | Platform | Path | |----------|------| | WhatsApp | ~/.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:
ls -la ~/.clawdbot/credentials/
ls -la ~/.clawdbot/agents/*/auth-profiles.json 2>/dev/null
stat -c "%a" ~/.clawdbot/credentials/oauth.json 2>/dev/null
Vulnerability: Plaintext credentials with loose permissions can be read by any process.
Remediation:
chmod 700 ~/.clawdbot
chmod 600 ~/.clawdbot/credentials/oauth.json
chmod 600 ~/.clawdbot/clawdbot.json
---
What to check:
How to detect:
cat ~/.clawdbot/clawdbot.json | grep -A5 '"browser"'
cat ~/.clawdbot/clawdbot.json | grep -i "controlUi|insecureAuth"
ls -la ~/.clawdbot/browser/
Vulnerability: Exposed browser control without auth allows remote UI takeover. Browser access allows the model to use logged-in sessions.
Remediation:
{
"browser": {
"remoteControlUrl": "https://...",
"remoteControlToken": "...",
"dedicatedProfile": true,
"disableHostControl": true
},
"gateway": {
"controlUi": {
"allowInsecureAuth": false
}
}
}
Security Note: Treat browser control URLs as admin APIs.
---
What to check:
gateway.bind set to?How to detect:
cat ~/.clawdbot/clawdbot.json | grep -A10 '"gateway"'
cat ~/.clawdbot/clawdbot.json | grep '"tailscale"'
Vulnerability: Public binding without auth allows internet access to gateway.
Remediation:
{
"gateway": {
"bind": "127.0.0.1",
"mode": "local",
"trustedProxies": ["127.0.0.1", "10.0.0.0/8"],
"tailscale": {
"mode": "off"
}
}
}
---
What to check:
restrict_tools or mcp_tools configured?workspaceAccess set to?How to detect:
cat ~/.clawdbot/clawdbot.json | grep -i "restrict|mcp|elevated"
cat ~/.clawdbot/clawdbot.json | grep -i "workspaceAccess|sandbox"
cat ~/.clawdbot/clawdbot.json | grep -i "openRoom"
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:
{
"restrict_tools": true,
"mcp_tools": {
"allowed": ["read", "write", "bash"],
"blocked": ["exec", "gateway"]
},
"workspaceAccess": "ro",
"sandbox": "all"
}
Model Guidance: Use latest generation models for agents with filesystem or network access. If using small models, disable web search and browser tools.
---
...
安装 Clawdbot 安全检查 后,可以对 AI 说这些话来触发它
Help me get started with Clawdbot Security Check
Explains what Clawdbot Security Check does, walks through the setup, and runs a quick demo based on your current project
Use Clawdbot Security Check to perform a comprehensive read-only security audit of Clawdbot's own ...
Invokes Clawdbot Security Check with the right parameters and returns the result directly in the conversation
What can I do with Clawdbot Security Check in my documents & notes workflow?
Lists the top use cases for Clawdbot Security Check, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/clawdbot-security-check/ 目录(个人级,所有项目可用),或 .claude/skills/clawdbot-security-check/(项目级)。重启 AI 客户端后,用 /clawdbot-security-check 主动调用,或让 AI 根据上下文自动发现并使用。
Clawdbot 安全检查 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Clawdbot 安全检查 可免费安装使用。请查阅仓库了解许可证信息。
对 Clawdbot 自身的配置执行全面的只读安全审核。这是一项基于知识的技能,可教会 Clawdbot 识别整个系统的强化机会。当用户要求“运行安全检查”、“审核clawdbot”、“检查安全强化”或“存在哪些漏洞”时使用
Clawdbot 安全检查 属于「Documents & Notes」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my documents & notes tasks using Clawdbot Security Check
Identifies repetitive steps in your workflow and sets up Clawdbot Security Check to handle them automatically