← 返回
未分类 中文

safeclaw

Security compliance checker for MCP/LLM applications. Performs non-invasive security assessments on configuration files.
用于 MCP/LLM 应用的安全合规检查器。对配置文件执行非侵入式安全评估。
kaillera999
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 378
下载
💾 0
安装
1
版本
#latest

概述

SafeClaw Security Checker

Perform security compliance checks on MCP/LLM application configurations.

Usage

When the user invokes this skill, run security checks on their configuration.

Basic Command

cd {baseDir}/../../ && uv run python main.py check --config "<config_path>" --format json

Arguments

  • config_path: Path to the configuration file to check (JSON/YAML/TOML)
  • If no path provided, use --auto to auto-discover config:

```bash

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

```

Execution Flow

  1. Determine config path:
    • If user provides a path, use it
    • If user wants auto-discovery, use --auto
    • If unsure, ask the user
  1. Run the check:

```bash

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

```

  1. Parse JSON output: The output has this structure:

```json

{

"summary": {

"overall_status": "安全|注意|高危",

"total": 10,

"passed": 7,

"failed": 3,

"by_level": {"safe": 7, "attention": 2, "high_risk": 1}

},

"failed_results": [

{

"name": "检查项名称",

"category": "安全类别",

"level": "高危|注意",

"message": "问题描述",

"risk_description": "风险说明",

"remediation": "整改建议",

"fix_commands": ["command to fix"]

}

]

}

```

  1. Report findings:
    • Show summary: X passed, Y attention items, Z high-risk
    • List high-risk items FIRST with remediation steps
    • List attention items with suggestions
    • If all passed, congratulate the user

Exit Codes

  • 0: All checks passed (safe)
  • 1: Attention items found
  • 2: High-risk items found

Example Config

Use {baseDir}/example-config.json as a reference template for users who need a starting point.

Categories Checked

CategoryDescription
-----------------------
配置与密钥Secrets in config, hardcoded credentials
权限File permissions, access controls
网络暴露Network bindings, CORS, exposed ports
插件安全MCP server security, plugin sources
日志与审计Logging configuration, audit trails
版本信息Version exposure, update status
OpenClaw安全OpenClaw-specific deployment security

Example Invocation

User: "/safeclaw check my config at ./config/mcp.json"

Response:

  1. Run: cd {baseDir}/../../ && uv run python main.py check --config "./config/mcp.json" --format json
  2. Parse results and present findings in a clear, actionable format

Tips

  • Always use --format json for machine-readable output
  • The skill runs from the skill directory, so use {baseDir}/../../ to reach project root
  • If the config file doesn't exist, suggest using the template at {baseDir}/templates/minimal-config.json

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-07 08:00 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

security-compliance

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,215 📥 266,474
ai-intelligence

ontology

oswalpalash
类型化知识图谱,用于结构化智能体记忆与可组合技能。支持创建/查询实体(人员、项目、任务、事件、文档)及关联...
★ 712 📥 243,772
developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 668 📥 324,094