返回顶部
o

openclaw-security-auditOpenClaw安全审计

Audit OpenClaw configuration for security risks and generate a remediation report using the user's configured LLM.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
2,298
下载量
免费
免费
1
收藏
概述
安装方式
版本历史

openclaw-security-audit

OpenClaw 安全审计技能

仅限本地的技能,用于审计 ~/.openclaw/openclaw.json,执行 15 项以上安全检查,并使用用户现有的 LLM 配置生成详细报告。无需外部 API 或密钥。

何时使用此技能

  • - 用户要求对其 OpenClaw 实例进行安全审计。
  • 用户想要一份配置风险的修复清单。
  • 用户正在准备 OpenClaw 部署,并希望进行加固审查。

工作原理

  1. 1. 使用标准工具(cat、jq)读取配置。
  2. 提取安全相关设置(绝不提取实际密钥)。
  3. 构建一个仅包含元数据的结构化发现对象。
  4. 通过 OpenClaw 的正常代理流程将发现结果传递给用户的 LLM。
  5. 生成包含严重性评级和修复方案的 Markdown 报告。

输入

  • - targetconfigpath(可选):OpenClaw 配置文件的路径。
- 默认值:~/.openclaw/openclaw.json

输出

  • - Markdown 报告,包括:
- 总体风险评分(0-100) - 按严重性分类的发现(严重/高/中/低) - 每个发现包含描述、重要性、修复方法、配置示例 - 优先级排序的修复路线图

安全检查(15 项以上)

  1. 1. API 密钥硬编码在配置中(而非环境变量)
  2. 网关认证令牌弱或缺失
  3. 不安全的 gateway.bind 设置(0.0.0.0 且无适当认证)
  4. 缺少通道访问控制(allowFrom 未设置)
  5. 不安全的工具策略(无限制的提权工具)
  6. 沙箱在应启用时被禁用
  7. 通道缺少速率限制
  8. 密钥可能暴露在日志中
  9. OpenClaw 版本过旧
  10. 不安全的 WhatsApp 配置
  11. 不安全的 Telegram 配置
  12. 不安全的 Discord 配置
  13. 特权操作缺少审计日志
  14. 文件系统访问范围过于宽松
  15. 不受限制的 Webhook 端点
  16. 不安全的默认管理员凭据

数据处理规则

  • - 分析前剥离所有密钥。
  • 仅报告元数据,如存在/缺失/已配置。
  • 不记录或输出实际密钥值。
  • 仅限本地执行;无网络调用。

发现对象示例(已编辑)

json
{
config_path: ~/.openclaw/openclaw.json,
openclaw_version: 存在,
gateway: {
bind: 0.0.0.0,
auth_token: 缺失
},
channels: {
allowFrom: 缺失,
rate_limits: 缺失
},
secrets: {
hardcoded: 检测到
},
tool_policies: {
elevated: 无限制
}
}

报告格式

报告必须包括:

  • - 总体风险评分(0-100)
  • 严重性分类:严重、高、中、低
  • 每个发现:描述、重要性、修复方法、配置示例
  • 优先级排序的修复路线图

技能流程(伪代码)

text
readconfigpath = input.targetconfigpath || ~/.openclaw/openclaw.json
rawconfig = cat(readconfig_path)
json = jq parse raw_config
metadata = extractsecuritymetadata(json)
findings = build_findings(metadata)
report = openclaw.agent.analyze(findings, format=markdown)
return report

备注

  • - 使用用户现有的 OpenClaw LLM 配置(Opus、GPT、Gemini 和本地模型)。
  • 无需外部 API 或特殊模型访问权限。

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 openclaw-security-auditor-1776214743 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 openclaw-security-auditor-1776214743 技能

通过命令行安装

skillhub install openclaw-security-auditor-1776214743

下载

⬇ 下载 openclaw-security-audit v1.0.0(免费)

文件大小: 14 KB | 发布时间: 2026-4-17 15:38

v1.0.0 最新 2026-4-17 15:38
Initial release: Local OpenClaw security audit skill with automated risk reporting.

- Audits ~/.openclaw/openclaw.json or a user-specified config for 15+ security risks.
- Runs checks including auth tokens, gateway settings, tool policies, secrets, logging, and more.
- Generates a detailed markdown report with risk score, categorized findings (Critical/High/Medium/Low), and step-by-step remediation guidance.
- No external APIs or network calls; uses only local tools (cat, jq) and user's existing LLM setup.
- Strictly avoids handling or revealing secrets; only analyzes configuration metadata.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部