Openclaw Security Toolkit

👤 hkall 📦 v1.0.0 ⭐ 4.3 ⬇️ 3.5K 下載
🔒 IT運維與安全 免費

📖 技能介紹


name: "openclaw-security-guard" description: "Security guard for OpenClaw users. Audit configs, scan secrets, manage access, and generate security reports."


OpenClaw Security Guard

A comprehensive security tool for OpenClaw users to protect their AI assistant.

Features

  • 🔍 Security Audit - Comprehensive security configuration check
  • 🔐 Secret Scanner - Detect exposed API keys and tokens
  • 👥 Access Control - Manage devices, users, and permissions
  • 🔑 Token Manager - Rotate and validate tokens
  • 📊 Security Report - Generate detailed security reports
  • 🛡️ Hardening - Apply security best practices

Requirements

  • Python 3.6+
  • No external dependencies (uses stdlib)

Commands

# Run security audit
python3 {baseDir}/scripts/main.py audit

# Scan for secrets
python3 {baseDir}/scripts/main.py scan

# Generate report
python3 {baseDir}/scripts/main.py report --format md

# Check token status
python3 {baseDir}/scripts/main.py token status

# Access control
python3 {baseDir}/scripts/main.py access list

# Security hardening
python3 {baseDir}/scripts/main.py harden --fix

# Quick status check
python3 {baseDir}/scripts/main.py status

Options

--format, -f <format>    Output format: json, md, table (default: table)
--lang, -l <lang>        Language: en, zh (default: auto-detect)
--quiet, -q              Quiet mode, only output results
--verbose, -v            Verbose output
--output, -o <file>      Output file path
--deep                   Deep scan mode
--fix                    Auto-fix issues where possible

Security Checks

Category Checks
Config Gateway bind, auth mode, token strength
Secrets API keys, tokens, passwords, private keys
Access Devices, users, channels, sessions
Network Public exposure, open ports

Examples

# Full audit with auto-fix
python3 {baseDir}/scripts/main.py audit --deep --fix

# Generate markdown report
python3 {baseDir}/scripts/main.py report --format md -o security.md

# Scan for specific pattern
python3 {baseDir}/scripts/main.py scan --pattern "sk-"

# List all paired devices
python3 {baseDir}/scripts/main.py access devices

# Generate JSON report
python3 {baseDir}/scripts/main.py report --format json

Output Formats

Table (default)

🔐 OpenClaw Security Guard v1.0.0
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

📊 Security Score: 72/100 ⚠️

🔴 HIGH RISK
  • API Key exposed in config file
    Location: ~/.openclaw/openclaw.json:15

JSON

{
  "score": 72,
  "findings": [...]
}

Markdown

# Security Report
**Score**: 72/100

Languages

  • English (en)
  • 中文 (zh)

Auto-detected based on system locale.

License

小蔥技能站7w4.net每天更新,海量AI技能等你發現。

MIT

Version

v1.0.0

🤖 AI 評測

這款安全工具功能豐富,介面友好,支援中文,能幫助使用者檢查配置漏洞、掃描洩露的金鑰、管理訪問許可權。文件說明清晰,風險提示到位。但存在小問題:不同文件裡的名字不一致,可能造成困惑;另外缺少測試保障,穩定性有待驗證。建議在正式環境使用前先在測試環境充分驗證。

📊 多維度評分

適應性4.3
規範性4.1
有效性4.4
可靠性4
可信度4.8

📁 包含檔案 (21 個)

📄 .clawhub/origin.json 48 B
📄 CHANGELOG.md 1.1 KB
📄 CHANNELLOG.md 1.7 KB
📄 README.md 3.1 KB
📄 SKILL.md 2.8 KB
📄 _meta.json 144 B
📄 config.json 644 B
📄 config/i18n/en.json 2.9 KB
📄 config/i18n/zh.json 2.8 KB
📄 config/rules.json 4.7 KB
📄 metadata.json 559 B
📄 references/security-best-practices.md 4.4 KB
📄 scripts/access.py 4.5 KB
📄 scripts/audit.py 16.7 KB
📄 scripts/harden.py 6.3 KB
📄 scripts/main.py 10.8 KB
📄 scripts/report.py 6.3 KB
📄 scripts/scanner.py 8 KB
📄 scripts/token.py 4.9 KB
📄 scripts/utils.py 7.4 KB
📄 skill-card.md 2.3 KB