返回顶部
s

safeclaw安全合规检查

Security compliance checker for MCP/LLM applications. Performs non-invasive security assessments on configuration files.

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

safeclaw

SafeClaw 安全检查器

对 MCP/LLM 应用配置执行安全合规检查。

使用方法

当用户调用此技能时,对其配置运行安全检查。

基本命令

bash
cd {baseDir}/../../ && uv run python main.py check --config --format json

参数

  • - config_path:要检查的配置文件路径(JSON/YAML/TOML)
  • 如果未提供路径,使用 --auto 自动发现配置:
bash cd {baseDir}/../../ && uv run python main.py check --auto --format json

执行流程

  1. 1. 确定配置路径
- 如果用户提供路径,则使用该路径 - 如果用户希望自动发现,则使用 --auto - 如果不确定,询问用户
  1. 2. 运行检查
bash cd {baseDir}/../../ && uv run python main.py check --config --format json
  1. 3. 解析 JSON 输出:输出结构如下:
json { summary: { overall_status: 安全|注意|高危, total: 10, passed: 7, failed: 3, bylevel: {safe: 7, attention: 2, highrisk: 1} }, failed_results: [ { name: 检查项名称, category: 安全类别, level: 高危|注意, message: 问题描述, risk_description: 风险说明, remediation: 整改建议, fix_commands: [修复命令] } ] }
  1. 4. 报告发现
- 显示摘要:X 项通过,Y 项需要注意,Z 项高危 - 首先列出高危项及整改步骤 - 列出需要注意的项及建议 - 如果全部通过,恭喜用户

退出码

  • - 0:所有检查通过(安全)
  • 1:发现需要注意的项
  • 2:发现高危项

示例配置

使用 {baseDir}/example-config.json 作为需要起点的用户的参考模板。

检查类别

类别描述
配置与密钥配置中的密钥、硬编码凭据
权限
文件权限、访问控制 | | 网络暴露 | 网络绑定、CORS、暴露端口 | | 插件安全 | MCP 服务器安全、插件来源 | | 日志与审计 | 日志配置、审计追踪 | | 版本信息 | 版本暴露、更新状态 | | OpenClaw 安全 | OpenClaw 特定部署安全 |

调用示例

用户:/safeclaw check my config at ./config/mcp.json

响应:

  1. 1. 运行:cd {baseDir}/../../ && uv run python main.py check --config ./config/mcp.json --format json
  2. 解析结果并以清晰、可操作的形式呈现发现

提示

  • - 始终使用 --format json 以获得机器可读的输出
  • 该技能从技能目录运行,因此使用 {baseDir}/../../ 到达项目根目录
  • 如果配置文件不存在,建议使用 {baseDir}/templates/minimal-config.json 中的模板

标签

skill ai

通过对话安装

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

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 safeclaw-1776080607 技能

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

设置 SkillHub 为我的优先技能安装源,然后帮我安装 safeclaw-1776080607 技能

通过命令行安装

skillhub install safeclaw-1776080607

下载

⬇ 下载 safeclaw v1.0.0(免费)

文件大小: 4.56 KB | 发布时间: 2026-4-14 13:10

v1.0.0 最新 2026-4-14 13:10
- Initial release of safeclaw: a security compliance checker for MCP/LLM application configuration files.
- Supports non-invasive security assessments on JSON, YAML, or TOML configs.
- Features automatic config discovery or manual path selection.
- Reports summary results, prioritizes and details high-risk and attention issues with remediation suggestions.
- Exits with distinct codes for pass, attention, or high-risk findings.
- Includes a sample config template and documentation of all checked categories.

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

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

p2p_official_large
返回顶部