Skills openclaw-security-policy-check

OpenClaw 网关安全自动化审计与配置检查工具。自动检查 OpenClaw 配置文件中的常见安全风险,执行安全审计。适用于:

install
source · Clone the upstream repo
git clone https://github.com/openclaw/skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/openclaw/skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/asantssec/openclaw-security-policy-check" ~/.claude/skills/clawdbot-skills-openclaw-security-policy-check && rm -rf "$T"
OpenClaw · Install into ~/.openclaw/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/openclaw/skills "$T" && mkdir -p ~/.openclaw/skills && cp -r "$T/skills/asantssec/openclaw-security-policy-check" ~/.openclaw/skills/clawdbot-skills-openclaw-security-policy-check && rm -rf "$T"
manifest: skills/asantssec/openclaw-security-policy-check/SKILL.md
source content

OpenClaw Security Policy Check

自动化安全审计配置工具,检测 OpenClaw 网关常见安全配置问题。

使用方法

node {baseDir}/scripts/audit.cjs

工作流程

  1. 读取配置文件:自动定位
    ~/.openclaw/openclaw.json
  2. 检查配置:5 项关键安全配置
  3. 执行审计:运行
    openclaw security audit --deep
  4. 输出报告:汇总修复结果和审计发现

检查项说明

配置项不安全值安全值
gateway.bind0.0.0.0127.0.0.1
gateway.auth.token短或默认32位强随机
controlUi.allowInsecureAuthtruefalse
tools.exec.securityfullallowlist
tools.exec.askoffon-miss

注意事项

  • 首次使用建议备份配置文件
  • 修改 token 后需要重启网关使配置生效
  • 需要有 openclaw 命令行工具