Skip to content

JinHanAI/ClawGears

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

30 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿฆž ClawGears

Protect Your Mac, Guard Your Privacy

OpenClaw Security Audit Tool

License Platform Version

English | ไธญๆ–‡ | Deutsch | Franรงais | Italiano | ๆ—ฅๆœฌ่ชž | Espaรฑol


โš ๏ธ Is Your OpenClaw Exposed?

Statistics show: 220,000+ OpenClaw instances are exposed publicly. Many API keys have already been leaked to hacker databases.

If you see any of these signs, your privacy may be at risk:

๐Ÿšจ Risk ๐Ÿ’ฅ Consequence โšก Severity
Gateway exposed to public Anyone can access your AI assistant ๐Ÿ”ด Critical
Weak or leaked token API keys stolen, unexpected charges ๐ŸŸ  Severe
Camera/screen accessible Privacy compromised, screenshots taken ๐ŸŸ  Severe
Full Disk Access granted All files accessible by AI ๐ŸŸก High Risk
IP in leak database Already targeted by hackers ๐ŸŸก High Risk

๐ŸŽฏ What Can ClawGears Do for You?

โœ… 5-Second Quick Check

./scripts/quick-check.sh

One command checks 5 critical security items:

  • ๐Ÿ”’ Is Gateway exposed to public network
  • ๐Ÿ”‘ Is Token strength sufficient
  • ๐Ÿ“ท Are sensitive commands blocked
  • ๐Ÿ’พ Are TCC permissions reasonable
  • ๐ŸŒ Is your IP already leaked

โœ… Auto-Fix Issues

./scripts/interactive-fix.sh

One-click fix common problems:

  • Rebind Gateway to localhost
  • Generate new strong Token
  • Add sensitive command blacklist

โœ… IP Leak Detection

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

Exclusive Feature: Integrated with openclaw.allegro.earth, Censys, and Shodan databases to check if your IP has been leaked


๐Ÿ’ก Why Choose ClawGears?

๐Ÿ† Key Advantages

Advantage Description
๐ŸŽฏ OpenClaw Focused Designed specifically for OpenClaw, deeper and more precise checks
๐Ÿ”’ Privacy-First Not just system security, but privacy leak risks
๐ŸŒ IP Leak Detection The only tool integrated with leak database
๐Ÿ”ง One-Click Fix Auto-fix issues, no manual intervention needed
๐Ÿ“Š History Tracking Record every audit result, track security trends
๐Ÿค– CI/CD Ready GitHub Actions automation included

๐Ÿ†š Comparison with Alternatives

Feature Generic Security Tools
OpenClaw Deep Check โœ… โŒ
IP Leak Detection โœ… โŒ
TCC Permission Audit โœ… โŒ
iCloud Sync Check โœ… โŒ
Auto-Fix โœ… โŒ
Interactive Fix โœ… โŒ
History Tracking โœ… โŒ
Report Generation โœ… Partial

๐Ÿ“ˆ What You'll Get

๐Ÿ›ก๏ธ Security Assurance

  • โœ… Gateway Security - Localhost-only binding
  • โœ… Token Security - Strong key protection
  • โœ… Permission Control - Block FDA unauthorized access
  • โœ… Command Protection - Block camera, screen operations

๐Ÿ” Risk Discovery

  • โœ… IP Leak Detection - Check if in hacker databases
  • โœ… Port Exposure - Find accidentally exposed ports
  • โœ… Suspicious Connections - Detect unusual network activity

๐Ÿ“Š Continuous Monitoring

  • โœ… History Tracking - Record every audit result
  • โœ… Trend Analysis - Understand security posture changes
  • โœ… Automation - CI/CD scheduled checks

โฑ๏ธ Time Savings

  • โœ… Quick Check - 5 seconds for critical items
  • โœ… One-Click Fix - Auto-fix common issues
  • โœ… Report Generation - Professional reports in one click

๐Ÿš€ Quick Start

๐Ÿ“‹ Who Should Use This?

โœ… Perfect for You โŒ Not for You
Run OpenClaw / MoltBot / ClawdBot on Mac Don't use OpenClaw or similar AI assistants
Concerned about AI assistant security OpenClaw runs in completely isolated environment
OpenClaw connects to external services (Feishu, Telegram) Already have a professional security team
Mac stores sensitive data (work files, personal photos)
Want regular security checks

๐Ÿค– AI Agent Usage (Easiest Way)

The simplest way: Just ask your AI assistant!

Option 1: Claude Code

ๅธฎๆˆ‘ๆฃ€ๆŸฅไธ€ไธ‹ OpenClaw ็š„ๅฎ‰ๅ…จๆ€ง

Claude Code will automatically:

  1. Clone ClawGears repository
  2. Run security audit
  3. Explain results in plain language
  4. Offer to fix issues

Option 2: OpenClaw with ClawHub

# Install ClawGears skill
clawhub install clawgears-securityaudit

Then ask OpenClaw:

ๅธฎๆˆ‘ๅšไธ€ไธชๅฎŒๆ•ด็š„ๅฎ‰ๅ…จๅฎก่ฎก

Option 3: Direct Clone

git clone https://github.com/JinHanAI/ClawGears.git
cd ClawGears
./clawgears.sh

๐ŸŽฎ Interactive Menu (Recommended)

# Clone the repository
git clone https://github.com/JinHanAI/ClawGears.git
cd ClawGears

# Launch interactive menu
./clawgears.sh

Menu Preview:

 โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•—     โ–ˆโ–ˆโ•—     โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•—   โ–ˆโ–ˆโ•—
โ–ˆโ–ˆโ•”โ•โ•โ•โ•โ•โ–ˆโ–ˆโ•‘     โ–ˆโ–ˆโ•‘     โ–ˆโ–ˆโ•”โ•โ•โ•โ•โ•โ–ˆโ–ˆโ•”โ•โ•โ•โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•”โ•โ•โ•โ•โ•โ•šโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ•”โ•
โ–ˆโ–ˆโ•‘     โ–ˆโ–ˆโ•‘     โ–ˆโ–ˆโ•‘     โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—  โ–ˆโ–ˆโ•‘   โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘  โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—   โ•šโ–ˆโ–ˆโ–ˆโ–ˆโ•”โ•
โ–ˆโ–ˆโ•‘     โ–ˆโ–ˆโ•‘     โ–ˆโ–ˆโ•‘     โ–ˆโ–ˆโ•”โ•โ•โ•  โ–ˆโ–ˆโ•‘   โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘  โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•”โ•โ•โ•    โ•šโ–ˆโ–ˆโ•”โ•
โ•šโ–ˆโ–ˆโ–ˆโ•—   โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—โ•šโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•”โ•šโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•”โ–ˆโ–ˆโ•‘  โ–ˆโ–ˆโ•‘   โ–ˆโ–ˆโ•‘
 โ•šโ•โ•โ•   โ•šโ•โ•โ•โ•โ•โ•โ•โ•šโ•โ•โ•โ•โ•โ•โ•โ•šโ•โ•โ•โ•โ•โ•โ• โ•šโ•โ•โ•โ•โ•โ• โ•šโ•โ•โ•โ•โ•โ• โ•šโ•โ•  โ•šโ•โ•   โ•šโ•โ•

      OpenClaw Security Audit Tool
      Protect Your Mac, Guard Your Privacy
โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”

What would you like to do?

  [1] Quick Security Check     (5 critical items, ~5 sec)
  [2] Full Security Audit     (All checks, detailed report)
  [3] Check IP Leak          (allegro.earth, Censys, Shodan)
  [4] Interactive Fix        (Auto-fix security issues)
  [5] Generate Report       (HTML/JSON format)
  [6] System Security       (Firewall, FileVault, SIP)

  [H] Help & Documentation
  [Q] Quit

โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”
Enter your choice [1-6, H, Q]: _

Menu Options:

Option Description Time
[1] Quick Security Check 5 critical items ~5 sec
[2] Full Security Audit All checks + detailed report ~30 sec
[3] Check IP Leak Query allegro.earth, Censys, Shodan ~10 sec
[4] Interactive Fix Auto-fix security issues Varies
[5] Generate Report HTML/JSON format ~5 sec
[6] System Security Firewall, FileVault, SIP ~5 sec

๐Ÿ“ธ Demo: See It In Action

Quick Security Check Output

========================================
  OpenClaw Quick Security Check
========================================

[INFO] Checking OpenClaw configuration...

========================================
  Network Exposure Check
========================================

[โœ… PASS] Gateway is safely bound (127.0.0.1:18789)
[โœ… PASS] No public network exposure detected

========================================
  Token Security Check
========================================

[โœ… PASS] Token length is sufficient (64 characters)
[โœ… PASS] Token configuration is valid

========================================
  Command Protection Check
========================================

[โœ… PASS] Sensitive commands are blocked:
  - screencapture
  - camerasnap
  - osascript

========================================
  Summary
========================================

โœ… All checks passed! Your OpenClaw is secure.

IP Leak Detection Output

========================================
  Checking openclaw.allegro.earth
========================================

Your Public IP: 45.xxx.xxx.xxx

[โœ… PASS] Your IP is NOT in the exposure database

========================================
  Checking Censys Database
========================================

[INFO] Censys is an internet scanning database

Check your IP at:
  ๐Ÿ”— https://search.censys.io/hosts/45.xxx.xxx.xxx

========================================
  Checking Shodan Database
========================================

[INFO] Shodan is another internet scanning database

Check your IP at:
  ๐Ÿ”— https://www.shodan.io/host/45.xxx.xxx.xxx

========================================
  Leak Check Summary
========================================

[โœ… PASS] No exposure detected

Context-Aware Risk Explanation (New! ๐Ÿ†•)

ClawGears now provides scenario-based risk analysis instead of one-size-fits-all recommendations:

========================================
  2. FileVault Encryption Check
========================================

๐Ÿ“Œ What this check protects:
   Prevents data access if your disk is stolen or lost

FileVault Status: FileVault is Off.

โšก Real impact based on your scenario:
   โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
   โ”‚ Usage Scenario                              โ”‚ Risk   โ”‚
   โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
   โ”‚ Mac fixed in secure office                  โ”‚ ๐ŸŸข Low โ”‚
   โ”‚ Frequently carried outside (cafe/travel)    โ”‚ ๐ŸŸ  Highโ”‚
   โ”‚ Stores sensitive data (finance/client info) โ”‚ ๐Ÿ”ด V.Highโ”‚
   โ”‚ Needs remote restart control (SSH)          โ”‚ โšช OK   โ”‚
   โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

๐Ÿ’ก Recommendation:
   Level: [Optional] (Decide based on your scenario)

   โ€ข If you disabled FileVault for remote control needs, this is reasonable
   โ€ข You can compensate the risk with:
     - Physical security (keep Mac in safe location)
     - Regular backups of important data

Issue Found & Fixed

========================================
  1. Gateway Network Exposure Check
========================================

๐Ÿ“Œ What this check protects:
   Detects if OpenClaw Gateway is exposed to the public internet

Gateway Binding: *:18789 (EXPOSED!)

โšก Real impact:
   โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
   โ”‚ Risk: Anyone on the internet can access your AI    โ”‚
   โ”‚ Impact: API keys stolen, unexpected charges,       โ”‚
   โ”‚         privacy leaked                              โ”‚
   โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

๐Ÿ’ก Recommendation:
   Level: [๐Ÿ”ด Must Fix]

Fix this issue? [Y/n]: Y

[INFO] Rebinding Gateway to localhost...
[INFO] Updating configuration...
[INFO] Restarting Gateway service...

[โœ… PASS] Gateway is now safely bound to 127.0.0.1

โšก 1-Minute Quick Check

# Quick check (5 critical items)
./scripts/quick-check.sh

๐Ÿ” Check IP Leak

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

๐Ÿ“Š Full Audit Report

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

๐Ÿ”ง Found Issues? One-Click Fix

./scripts/interactive-fix.sh

๐Ÿ“‹ Feature Checklist

๐Ÿ” Security Checks

Check Description
Network Exposure Gateway port binding, Tailscale status
Token Security Length, configuration validation
Command Injection Protection denyCommands configuration
TCC Permission Audit Full Disk Access, Accessibility
Process Monitoring Background services, unknown processes
iCloud Sync Check Documents/Pictures/Desktop
Workspace Privacy Sensitive files, symlinks
Network Connection Monitoring External domain whitelist
Log Audit Anomaly detection
System Security Firewall, FileVault, SIP

๐Ÿ”ง Fix Features

Feature Command
Fix Gateway Exposure --bind
Generate New Token --token
Add Deny Commands --deny
Restart Gateway --restart
Fix All --all

๐Ÿ“š Documentation

English | ไธญๆ–‡ | Deutsch | Franรงais | Italiano


๐Ÿค Contributing

Contributions welcome! Please submit Pull Requests or Issues.


๐Ÿ“„ License

MIT License - See LICENSE


โš ๏ธ Disclaimer

This tool is for security audit purposes only. Please understand the impact before using auto-fix features.


๐Ÿฆž ClawGears

Protect Your Mac, Guard Your Privacy

Made with โค๏ธ by [Victor.Chen(https://github.com/JinHanAI)