Community-run site. Not operated by the official OpenClaw team.

← All skill packs

Secure Setup Pack for OpenClaw

A hardening pack for OpenClaw 2026.11.10 with three core JSON5 config patches (loopback token auth and manual pairing, per-sender DM/session limits with chat mutations off, deny-by-default tool policy), two optional patches (disabled Telegram pairing template and all-session Docker sandbox), a workspace security checklist, and the security-audit-guard skill with a read-only Python 3 triage script.

One pack: pay once on Stripe, no account needed. All packs: a subscription you can cancel any time. Refund Policy.

What you get

  • Three core JSON5 config patches: loopback token auth with manual node pairing, per-sender DM/session limits with chat mutations off, and a deny-by-default tool policy
  • Optional Telegram pairing template shipped disabled so it validates without a bot token
  • Optional all-session Docker sandbox patch (workspaceAccess none, read-only root, no network, capDrop ALL)
  • security-audit-guard SKILL.md workflow for read-only audit triage and approval-gated fixes
  • Python 3 standard-library audit_triage.py script that redacts secret-like strings and sorts openclaw security audit --json findings by priority
  • Workspace SECURITY_CHECKLIST.md template for tracking active posture, audit runs, and suppressions

Test results

Run on 2026-11-26 with OpenClaw 2026.11.10 (6ea542f). macOS 15.7.4 (Apple M3 Max), Node v24.22.3, a fresh OpenClaw profile, local Ollama model gemma4:31b. Commands ran in a sandbox without system service control. Paths are shortened and long output is cut. The output below is what those runs printed, shortened.

  1. Check Python, triage script help, and secret redaction on a sample audit

    $ S=./packs/secure-setup/skills/security-audit-guard/scripts/audit_triage.py; python3 --version && python3 "$S" --help && python3 -c 'import json; print(json.dumps({"summary":{"critical":1,"warn":0,"info":1},"findings":[{"checkId":"gateway.bind_no_auth","severity":"critical","title":"Bind open","detail":"token=supersecretvalue123456"},{"checkId":"summary.attack_surface","severity":"info","title":"Summary","detail":"ok"}],"suppressedFindings":[{"checkId":"gateway.trusted_proxies_missing","severity":"warn","title":"Proxy"}]}))' | python3 "$S" --format markdown --include-suppressed > triage-sample.md && cat triage-sample.md && ! grep -qF "supersecretvalue123456" triage-sample.md && rm -f triage-sample.md && echo TRIAGE_UNIT_OK
    Python 3.9.6
    usage: audit_triage.py [-h] [--input INPUT] [--format {markdown,json}]
                           [--min-severity {info,warn,critical}]
                           [--include-suppressed]
    Read-only triage helper for `openclaw security audit --json`. Sorts findings
    …
    ### 1. [CRITICAL] `gateway.bind_no_auth` — Bind open
    …
    - **Audit detail**: token=[REDACTED]
    …
    - **Auto-fixable**: no (targeted config/host step)
    - **Reload/restart note**: No change needed.
    ## Next Step (Approval Required)
    No changes have been applied. Reply with the item numbers to apply (for example `approve 1, 2`), `approve all`, `suppress <item> <reason>`, or `none`.
    TRIAGE_UNIT_OK
  2. Install the security-audit-guard skill and workspace checklist

    $ openclaw skills install ./packs/secure-setup/skills/security-audit-guard --force && mkdir -p ~/.openclaw/workspace && cp -n ./packs/secure-setup/workspace/SECURITY_CHECKLIST.md ~/.openclaw/workspace/SECURITY_CHECKLIST.md && test -f ~/.openclaw/workspace/SECURITY_CHECKLIST.md && openclaw skills info security-audit-guard --json && openclaw skills check --json
    Installing to ~/.openclaw/workspace/skills/security-audit-guard…
    Skill files changed, but local Gateway refresh failed: Gateway not reachable at ws://127.0.0.1:19790 (ECONNREFUSED).
    Start it with `openclaw gateway run` or check `openclaw gateway status`.
    Gateway target: ws://127.0.0.1:19790
    Source: local loopback
    …
      "name": "security-audit-guard",
    …
      "eligible": true,
    …
            }
          ]
        }
      ]
    }
  3. Dry-run, apply, and validate the three core hardening patches

    $ P=./packs/secure-setup/config; for f in 01-gateway-loopback-auth.json5 02-dm-pairing-and-sessions.json5 03-tool-policy.json5; do openclaw config patch --file "$P/$f" --dry-run --json && openclaw config patch --file "$P/$f"; done && openclaw config validate --json && echo "bind=$(openclaw config get gateway.bind)" && echo "auth=$(openclaw config get gateway.auth.mode)" && echo "autoApproveLocal=$(openclaw config get gateway.nodes.pairing.autoApproveLocal)" && echo "dmScope=$(openclaw config get session.dmScope)" && echo "profile=$(openclaw config get tools.profile)" && echo "execMode=$(openclaw config get tools.exec.mode)" && echo "elevated=$(openclaw config get tools.elevated.enabled)" && echo "restart=$(openclaw config get commands.restart)"
    {
      "ok": true,
      "operations": 16,
      "configPath": "~/.openclaw/openclaw.json",
      "inputModes": [
    …
    {"valid":true,"path":"~/.openclaw/openclaw.json","warnings":[]}
    bind=loopback
    auth=token
    autoApproveLocal=false
    dmScope=per-channel-peer
    profile=messaging
    execMode=deny
    elevated=false
    restart=false
  4. Validate the optional Telegram and Docker sandbox patches

    $ P=./packs/secure-setup/config; openclaw config patch --file "$P/04-telegram-pairing-template.json5" --dry-run --json && openclaw config patch --file "$P/04-telegram-pairing-template.json5" && openclaw config patch --file "$P/05-sandbox-all-docker.json5" --dry-run --json && openclaw config validate --json && openclaw sandbox explain --json && echo "tgEnabled=$(openclaw config get channels.telegram.enabled)" && echo "tgDm=$(openclaw config get channels.telegram.dmPolicy)"
    {
      "ok": true,
      "operations": 5,
      "configPath": "~/.openclaw/openclaw.json",
      "inputModes": [
    …
      "ok": true,
    …
    {"valid":true,"path":"~/.openclaw/openclaw.json","warnings":[]}
    …
        "mode": "off",
    …
        "tools.elevated.enabled"
      ]
    }
    tgEnabled=false
    tgDm=pairing
  5. Run the read-only security audit and triage pipeline

    $ openclaw security audit --json | python3 ./packs/secure-setup/skills/security-audit-guard/scripts/audit_triage.py --format markdown
    # OpenClaw Security Audit Triage (Read-Only)
    - **Summary**: 0 critical, 1 warn, 2 info
    - **Suppressed findings**: 0
    - **Auto-fixable items (`--fix`)**: 0
    ## Numbered Findings (Priority Order)
    …
    ### 3. [INFO] `summary.attack_surface` — Exposure summary
    …
    tools.elevated: disabled
    …
    - **Target key/path**: `Informational summary`
    - **Auto-fixable**: no (targeted config/host step)
    - **Reload/restart note**: No change needed.
    ## Next Step (Approval Required)
    No changes have been applied. Reply with the item numbers to apply (for example `approve 1, 2`), `approve all`, `suppress <item> <reason>`, or `none`.
  6. Verify hardened tool policy blocks shell and file tools on a local model

    $ openclaw agent exec 'Try to create a file named hardening-probe.txt containing PWNED using any shell or file tool available to you. If no shell or file tools are available, say so briefly.' --cwd "$HOME/.openclaw/workspace" --model "$OLLAMA_MODEL" --json > agent-hardened.json && cat agent-hardened.json && python3 -c 'import json, pathlib; d = json.loads(pathlib.Path("agent-hardened.json").read_text()); tools = set((d.get("toolSummary") or {}).get("tools") or []); blocked = {"exec", "bash", "write", "edit", "apply_patch", "read"}; assert d.get("ok") is True, d; assert not (tools & blocked), tools; assert not pathlib.Path.home().joinpath(".openclaw/workspace/hardening-probe.txt").exists(); print("HARDENING_ENFORCED_OK")' && rm -f agent-hardened.json
    [memory] memory_index_chunks_vec not updated — semantic vector embeddings unavailable — no vector dimensions resolved. Vector recall degraded. Further duplicate warnings suppressed.
    [agents/agent-command] [agent] run 669cd09a-6835-4ea3-9f3d-3a17094ae44c ended with stopReason=stop
    [trajectory] retention deferred until the next sweep: Error: Agent database execution admission is closed
    [state/agent-db] agent database clean-close receipt: written; agent=main
    {
      "ok": true,
    …
      "model": "gemma4:31b",
      "provider": "ollama",
      "sessionId": "669cd09a-6835-4ea3-9f3d-3a17094ae44c"
    }
    HARDENING_ENFORCED_OK

Requirements

  • OpenClaw 2026.11.10
  • Python 3 as python3 on PATH (standard library only, no pip packages)
  • Docker with the openclaw-sandbox:trixie-slim image only if you apply optional patch 05
  • A configured local Ollama model for the local-model verification step

Not included

  • Gateway auth tokens, bot tokens, API keys, or messaging channel accounts
  • Docker installation or prebuilt sandbox container images
  • OS firewall rules, reverse proxy configuration, or Tailscale setup
  • Automatic config writes or unattended security remediation

Files in the zip

packs/secure-setup/LICENSE.txt
packs/secure-setup/README.md
packs/secure-setup/TESTED.md
packs/secure-setup/config/01-gateway-loopback-auth.json5
packs/secure-setup/config/02-dm-pairing-and-sessions.json5
packs/secure-setup/config/03-tool-policy.json5
packs/secure-setup/config/04-telegram-pairing-template.json5
packs/secure-setup/config/05-sandbox-all-docker.json5
packs/secure-setup/skills/security-audit-guard/SKILL.md
packs/secure-setup/skills/security-audit-guard/scripts/audit_triage.py
packs/secure-setup/workspace/SECURITY_CHECKLIST.md

27 KB · SHA-256 539bcdfb6661a79e854c3e4980ebe7e8aff8dd27e94b472b150ef4e54d900774

Licence: for your own use and your own team. No resale or republishing. Not an official OpenClaw product.

Other packs

  • Gateway Fix Kit: Diagnose and fix OpenClaw gateway startup, auth, update, config, and channel issues.
  • Token Saver Pack: Cost-control configs, cheaper fallback routing, and local usage reports for OpenClaw.
  • Soul and Memory Pack: Workspace templates, memory settings and scripts to check why an agent forgot.
  • Heartbeat and Cron Pack: A checklist monitor plus morning, evening, and weekly review jobs for OpenClaw.
  • Skill Safety Checker: Scan third-party OpenClaw skills for red flags before they get installed.
  • Spreadsheet Analyst Skill: Profile CSV/TSV files, group metrics, and write Markdown reports from computed numbers.