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:
Use this skill when:
Supported Languages:
ClawGears README is available in 7 languages:
| Binary | Purpose |
|---|---|
| -------- | --------- |
python3 | JSON parsing |
curl | HTTP requests, IP detection |
lsof | Port and process inspection |
pgrep / pkill | Process management |
openssl | Token generation |
socketfilterfw | macOS firewall control (/usr/libexec/ApplicationFirewall/socketfilterfw) |
| Path | Purpose |
|---|---|
| ------ | --------- |
~/.openclaw/openclaw.json | OpenClaw configuration (token, gateway settings) |
~/.openclaw/logs/ | Gateway logs for anomaly detection |
/Library/Application Support/com.apple.TCC/TCC.db | macOS TCC database (Full Disk Access, Accessibility) |
~/Library/Application Support/com.apple.TCC/TCC.db | User-level TCC database |
| Path | Purpose |
|---|---|
| ------ | --------- |
./history/ | Audit result storage (JSON, HTML reports) |
./reports/ | Generated audit reports |
~/.openclaw/openclaw.json | Configuration fixes (with --fix flag only) |
| Domain | Purpose | Data Sent |
|---|---|---|
| -------- | --------- | ----------- |
api.ipify.org | Public IP detection | None (GET request) |
icanhazip.com | Public IP detection (fallback) | None |
ifconfig.me/ip | Public IP detection (fallback) | None |
| Domain | Purpose | Data Sent |
|---|---|---|
| -------- | --------- | ----------- |
openclaw.allegro.earth | OpenClaw exposure database check | Your public IP |
search.censys.io | Censys scan database (link only, manual check) | None from script |
www.shodan.io | Shodan scan database (link only, manual check) | None from script |
Before running this skill, please be aware:
api.ipify.org (or fallback services) for IP detectionopenclaw.allegro.earth for exposure database checkinteractive-fix.sh script can:sudo for firewall changesquick-check.sh first (read-only) before applying any fixes.Use this section to understand each risk, its actual impact, and whether it applies to your situation.
| Risk | What It Protects | Real Impact | Fix 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:
| IP in leak database | Check if already exposed | 🟠 High - Your IP is in a public exposure database. Check before panicking:
| iCloud sync enabled | Prevent sensitive data cloud sync | 🟡 Low - iCloud may sync Documents, Desktop, Pictures by default. Evaluate based on your needs:
| 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)
Run a fast 5-second security audit (read-only, safe to run):
./scripts/quick-check.sh
This checks:
Run comprehensive security check:
./scripts/generate-report.sh --format html --output ./reports
Check if user's IP has been exposed in security databases:
./scripts/ip-leak-check.sh --all
Checks 3 databases:
⚠️ 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 issuesWhen user asks about security:
```bash
./scripts/quick-check.sh
```
```bash
./scripts/interactive-fix.sh --all
```
```bash
./scripts/ip-leak-check.sh --all
```
```bash
./scripts/generate-report.sh --format html
```
| Symbol | Meaning |
|---|---|
| -------- | --------- |
| ✅ PASS | Security check passed |
| ⚠️ WARN | Warning, review recommended |
| ❌ FAIL | Critical issue, fix immediately |
| Result | Action |
|---|---|
| -------- | -------- |
| IP NOT in database | Continue monitoring |
| IP FOUND in database | URGENT: Close public access, regenerate tokens |
> Over 220,000 OpenClaw instances are publicly exposed. Many API keys have already leaked to hacker databases.
MIT-0 (ClawHub Platform License)
共 2 个版本