Dont hack me

From sundial-org/awesome-openclaw-skills · View interactive version

Dont hack me is an AI agent skill from the GitHub repository sundial-org/awesome-openclaw-skills. 別駭我!基本安全檢測 — Security self-check for Clawdbot/Moltbot. Run a quick audit of your clawdbot.json to catch dangerous misconfigurations — exposed gateway, missing auth, open DM policy, weak tokens, loose file permissions. Auto-fix included. Invoke: "run a security check" or "幫我做安全檢查".

How to use this skill

Skill file

dont-hack-me

Security self-check skill for Clawdbot / Moltbot.

Reads ~/.clawdbot/clawdbot.json and checks 7 items that cover the most

common misconfigurations. Outputs a simple PASS / FAIL / WARN report.

How to run

Say any of:

Checklist — step by step

When this skill is triggered, follow these steps exactly:

Step 0 — Read the config

Use the read tool to open ~/.clawdbot/clawdbot.json.

Parse the JSON content. If the file does not exist or is unreadable,

report an error and stop.

Also run a shell command to get the file permissions:

stat -f '%Lp' ~/.clawdbot/clawdbot.json

(On Linux: stat -c '%a' ~/.clawdbot/clawdbot.json)

Step 1 — Gateway Bind

Step 2 — Gateway Auth Mode

Step 3 — Token Strength

Step 4 — DM Policy (per channel)

Step 5 — Group Policy (per channel)

Step 6 — File Permissions

Step 7 — Plaintext Secrets Scan

Output format

After completing all checks, output a report in this exact format:

🔒 Security Check Report

1. Gateway Bind        <ICON> <STATUS> — <detail>
2. Gateway Auth        <ICON> <STATUS> — <detail>
3. Token Strength      <ICON> <STATUS> — <detail>
4. DM Policy           <ICON> <STATUS> — <detail>
5. Group Policy        <ICON> <STATUS> — <detail>
6. File Permissions    <ICON> <STATUS> — <detail>
7. Secrets Scan        <ICON> <STATUS> — <detail>

Score: X/7 PASS, Y WARN, Z FAIL

Where:

Auto-fix flow

If any item is FAIL or WARN, do the following:

  1. Show the report first (as above).
  2. List each fixable item with a short description of what will be changed.
  3. Ask the user: "Want me to fix these? (yes / no / pick)"
  1. Apply the fixes (see Fix recipes below).
  2. After applying, re-read the config and re-run the full check to confirm everything is PASS.
  3. If the config was changed, remind the user: "Run clawdbot gateway restart to apply the new settings."

Fix recipes

Use these exact fixes for each item. Edit ~/.clawdbot/clawdbot.json using the edit/write tool.

#1 Gateway Bind — FAIL

Set gateway.bind to "loopback":

{ "gateway": { "bind": "loopback" } }
#2 Gateway Auth — FAIL

Set gateway.auth.mode to "token". If no token exists yet, also generate one:

{ "gateway": { "auth": { "mode": "token", "token": "<GENERATED>" } } }

Generate the token with:

openssl rand -hex 24

That produces a 48-character hex string (192-bit entropy).

#3 Token Strength — FAIL / WARN

Replace the existing token with a new strong one:

openssl rand -hex 24

Write the output into gateway.auth.token.

#4 DM Policy — FAIL

Set dmPolicy to "pairing" for each affected channel:

{ "channels": { "<name>": { "dmPolicy": "pairing" } } }
#5 Group Policy — FAIL

Set groupPolicy to "allowlist" for each affected channel:

{ "channels": { "<name>": { "groupPolicy": "allowlist" } } }
#6 File Permissions — FAIL / WARN

Run:

chmod 600 ~/.clawdbot/clawdbot.json
#7 Secrets Scan — WARN

This one cannot be auto-fixed safely. Instead, list each flagged key and

remind the user:

Important rules for auto-fix

```bash

cp ~/.clawdbot/clawdbot.json ~/.clawdbot/clawdbot.json.bak

```

keys, write back the complete JSON. Never lose existing settings.

write to avoid partial states.

the user must update any paired clients with the new token.

Warn: "Your gateway token was changed. Any paired devices will need the

new token to reconnect."

What this skill does NOT check

For a more comprehensive audit, see community tools like clawdbot-security-check.

Reference

Based on the community-compiled "Top 10 Clawdbot/Moltbot Security Vulnerabilities" list.

Covers 7 of the 10 items that apply to typical macOS-native deployments.


小安 Ann Agent — Taiwan 台灣

Building skills and local MCP services for all AI agents, everywhere.

為所有 AI Agent 打造技能與在地 MCP 服務,不限平台。

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.