← 返回
安全合规 中文

ClawGears

Conduct security audits for OpenClaw-based AI assistants on macOS to detect exposure risks, weak tokens, sensitive commands, and IP leaks.
对macOS上基于OpenClaw的AI助手进行安全审计,检测暴露风险、弱令牌、敏感指令及IP泄露。
jinhanai
安全合规 clawhub v1.0.2 2 版本 100000 Key: 无需
★ 0
Stars
📥 611
下载
💾 4
安装
2
版本
#audit#latest#macos#openclaw#security

概述

ClawGears Security Audit Skill

Overview

ClawGears is a security audit tool for OpenClaw/MoltBot/ClawdBot users on macOS. It helps detect and fix security vulnerabilities that could expose your AI assistant to the public internet.

🌟 New in v1.4.0: Context-Aware Risk Explanations

Instead of one-size-fits-all "best practices", ClawGears now provides scenario-based risk analysis:

  • Each check explains what it protects and real impact by scenario
  • Recommendations are graded: 🔴必须 / 🟠建议 / 🟡可选 / ⚪评估后决定
  • Legitimate reasons to not fix are acknowledged
  • Alternative compensating measures are suggested

Use this skill when:

  • User asks about OpenClaw security
  • User wants to check if their AI assistant is exposed
  • User mentions "裸奔" (Chinese), "むき出し" (Japanese), "expuesto" (Spanish) or security concerns
  • User wants to audit their OpenClaw configuration
  • User asks about IP leak detection

Supported Languages:

ClawGears README is available in 7 languages:

  • 🇬🇧 English | 🇨🇳 中文 | 🇩🇪 Deutsch | 🇫🇷 Français | 🇮🇹 Italiano | 🇯🇵 日本語 | 🇪🇸 Español

⚠️ Requirements & Dependencies

System Binaries Required

BinaryPurpose
-----------------
python3JSON parsing
curlHTTP requests, IP detection
lsofPort and process inspection
pgrep / pkillProcess management
opensslToken generation
socketfilterfwmacOS firewall control (/usr/libexec/ApplicationFirewall/socketfilterfw)

Platform

  • macOS only - Uses macOS-specific tools and paths

📁 Files Accessed

Read Operations

PathPurpose
---------------
~/.openclaw/openclaw.jsonOpenClaw configuration (token, gateway settings)
~/.openclaw/logs/Gateway logs for anomaly detection
/Library/Application Support/com.apple.TCC/TCC.dbmacOS TCC database (Full Disk Access, Accessibility)
~/Library/Application Support/com.apple.TCC/TCC.dbUser-level TCC database

Write Operations

PathPurpose
---------------
./history/Audit result storage (JSON, HTML reports)
./reports/Generated audit reports
~/.openclaw/openclaw.jsonConfiguration fixes (with --fix flag only)

🌐 Network Calls

External Services (IP Detection)

DomainPurposeData Sent
----------------------------
api.ipify.orgPublic IP detectionNone (GET request)
icanhazip.comPublic IP detection (fallback)None
ifconfig.me/ipPublic IP detection (fallback)None

External Services (Leak Detection)

DomainPurposeData Sent
----------------------------
openclaw.allegro.earthOpenClaw exposure database checkYour public IP
search.censys.ioCensys scan database (link only, manual check)None from script
www.shodan.ioShodan scan database (link only, manual check)None from script

🔐 Privacy Notice

Before running this skill, please be aware:

  1. IP Transmission: Your public IP address will be sent to:
    • api.ipify.org (or fallback services) for IP detection
    • openclaw.allegro.earth for exposure database check
  1. Local File Access: This skill reads:
    • Your OpenClaw configuration (including tokens)
    • macOS TCC permission database
    • Gateway logs
  1. System Changes: The interactive-fix.sh script can:
    • Modify OpenClaw configuration
    • Generate new tokens
    • Restart Gateway service
    • Require sudo for firewall changes
  1. Recommendation: Review scripts before running. Run quick-check.sh first (read-only) before applying any fixes.

Security Risks Explained

Use this section to understand each risk, its actual impact, and whether it applies to your situation.

RiskWhat It ProtectsReal ImpactFix Priority
-----------------------------------------------------

| Gateway exposed | Prevent unauthorized access to your AI assistant | 🔴 Critical - Anyone on the internet can control your AI. Fix immediately if exposed. | Weak token | Prevent API key theft | 🟠 High - If leaked, attackers can impersonate you assistant and use your API keys. Fix recommended but token < 64 chars. | Sensitive commands | Prevent privacy invasion (camera, screenshots) | 🟠 High - AI could these commands could spy on you or capture your screen. Fix recommended if not blocked. | FDA granted | Limit AI file access | 🟡 Medium - AI can read all your files. Evaluate based on your trust level - Only enable if you truly need this capability. - Consider if your AI is running in a secure environment. - Alternative: Use project-specific folder permissions. | FileVault disabled | Protect data if disk is stolen | 🟡 Medium - If Mac is stolen, all data is accessible. Evaluate based on your situation:

  • Enable if Mac is portable or in shared spaces
  • ⚠️ OK to disable if you need remote restart control (e.g., for Mac-to-Mac sync)
  • If disabled, consider physical security measures instead

| IP in leak database | Check if already exposed | 🟠 High - Your IP is in a public exposure database. Check before panicking:

  • If you've been using OpenClaw for a while without issues, it IP may have been indexed already.
  • If you just started, use the tool: do a quick check and not a leak.

| iCloud sync enabled | Prevent sensitive data cloud sync | 🟡 Low - iCloud may sync Documents, Desktop, Pictures by default. Evaluate based on your needs:

  • Enable if you store sensitive data in these folders
  • ⚠️ OK to disable if you don't store sensitive data in these locations
  • If disabled, consider using .gitignore for excluding patterns

| SIP disabled | Protect system integrity | 🟡 Low - System-level protections are reduced. **Usually OK to keep enabled, - Only disable if you have a specific, legitimate reason (e.g., development, testing)

  • If disabled, be extra cautious about what you install

Quick Security Check

Run a fast 5-second security audit (read-only, safe to run):

./scripts/quick-check.sh

This checks:

  1. Gateway network exposure
  2. Token strength
  3. Command injection protection
  4. TCC permissions
  5. Firewall status

Full Security Audit

Run comprehensive security check:

./scripts/generate-report.sh --format html --output ./reports

IP Leak Detection

Check if user's IP has been exposed in security databases:

./scripts/ip-leak-check.sh --all

Checks 3 databases:

  • openclaw.allegro.earth - OpenClaw specific exposure database
  • Censys - Internet-wide scanning database (https://search.censys.io)
  • Shodan - IoT and service scanning database (https://www.shodan.io)

Interactive Fix

⚠️ Requires explicit user consent before running

Automatically fix common security issues:

./scripts/interactive-fix.sh

Options:

  • --bind - Rebind Gateway to localhost
  • --token - Generate new strong token
  • --deny - Add sensitive commands to deny list
  • --restart - Restart Gateway service
  • --all - Fix all issues

Workflow

When user asks about security:

  1. First, run quick check to identify issues (read-only):

```bash

./scripts/quick-check.sh

```

  1. If issues found, explain risks and ask for consent before fixing:

```bash

./scripts/interactive-fix.sh --all

```

  1. Check IP exposure:

```bash

./scripts/ip-leak-check.sh --all

```

  1. Generate report for records:

```bash

./scripts/generate-report.sh --format html

```


Output Interpretation

Quick Check Results

SymbolMeaning
-----------------
✅ PASSSecurity check passed
⚠️ WARNWarning, review recommended
❌ FAILCritical issue, fix immediately

IP Leak Results

ResultAction
----------------
IP NOT in databaseContinue monitoring
IP FOUND in databaseURGENT: Close public access, regenerate tokens

Important Reminders

  1. Always recommend running quick check first (read-only, safe)
  2. Explain risks in plain language before fixing
  3. Ask for explicit consent before running interactive-fix.sh
  4. Suggest periodic checks (weekly or after config changes)
  5. Warn about the 220,000+ exposed OpenClaw instances

Statistics

> Over 220,000 OpenClaw instances are publicly exposed. Many API keys have already leaked to hacker databases.


Related Links

  • GitHub: https://github.com/JinHanAI/ClawGears
  • ClawHub: https://clawhub.ai

License

MIT-0 (ClawHub Platform License)

版本历史

共 2 个版本

  • v1.0.2 当前
    2026-03-29 18:00 安全 安全
  • v1.0.1
    2026-03-26 22:24

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

security-compliance

Skill Vetter

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

OpenClaw Backup

alex3alex
备份与恢复 OpenClaw 数据。适用于创建备份、设置自动备份计划、从备份恢复或管理备份轮转。处理 ~/.openclaw 目录归档并包含适当的排除规则。
★ 89 📥 30,584
security-compliance

1password

steipete
设置和使用 1Password CLI (op)。适用于:安装 CLI、启用桌面应用集成、登录(单/多账户)、通过 op 读取/注入/运行密钥。
★ 53 📥 31,135