Skip to content

๐Ÿฆž Security hardening patch for Clawdbot/Moltbot. Detects and fixes exposed gateways automatically.

License

Notifications You must be signed in to change notification settings

fadidevv/clawdguard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

1 Commit
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿฆž ClawdGuard

Crates.io Downloads GitHub stars GitHub forks GitHub issues License: MIT

Security hardening for Clawdbot/Moltbot installations. Detects and fixes exposed gateways.

ClawdGuard fixing security issues

Detect and fix exposed Clawdbot/Moltbot gateways

Problem โ€ข Features โ€ข Quick Start โ€ข Docker โ€ข CLI โ€ข What Gets Fixed โ€ข Development


The Problem

900+ Clawdbot/Moltbot instances are currently exposed on the internet (visible on Shodan, port 18789) without any authentication. This allows anyone to:

Risk Impact
๐Ÿ”‘ Access API keys Steal OpenAI, Anthropic, and other credentials
๐Ÿ’ป Execute commands Run arbitrary shell commands on your machine
๐ŸŒ Control browser Take over your browsing session
๐Ÿ“ง Read emails Access Gmail, calendar, contacts
๐Ÿ’ฌ Read chats See all your conversation history
๐Ÿค– Hijack the bot Send messages on your behalf

The issue isn't a bugโ€”it's misconfiguration. Users who change gateway.bind to 0.0.0.0 or use Docker with -p 18789:18789 without proper auth are fully exposed.

ClawdGuard addresses these issues.


Features

  • ๐Ÿ” Auto-Detect: Finds config, service, and running gateway automatically
  • ๐Ÿ“Š Risk Analysis: Scores your configuration 0-10 with detailed breakdown
  • ๐Ÿ”ง One-Click Fix: Patches config, generates secure token, restarts service
  • โœ… Verification: Confirms the fix worked (port closed, auth required)
  • ๐Ÿ’พ Safe: Creates timestamped backup before any changes
  • ๐Ÿ–ฅ๏ธ Cross-Platform: macOS (launchd) and Linux (systemd)
  • โน๏ธ Graceful Stop: Press Ctrl+C anytime to cancel safely
  • ๐Ÿ“ Verbose Mode: See detailed logs of every check being performed
  • ๐Ÿณ Docker Ready: No Rust installation required - just use Docker

Quick Start

1. Choose Your Installation

Option A: Install from crates.io (Recommended)

cargo install clawdguard

# Run
clawdguard

Option B: Build from Source

# Clone repository
git clone https://github.com/fadidevv/clawdguard.git
cd clawdguard

# Build (first time takes ~2 min)
cargo build --release

# Run
./target/release/clawdguard

Option C: With Docker (No Rust Required)

# Clone repository
git clone https://github.com/fadidevv/clawdguard.git
cd clawdguard

# Build image (~3-5 min first time)
docker build --no-cache -t clawdguard .

# Run (mount your config directory)
docker run -v ~/.moltbot:/root/.moltbot clawdguard
# Or for legacy Clawdbot:
docker run -v ~/.clawdbot:/root/.clawdbot clawdguard

2. Run

clawdguard

That's it! ClawdGuard will:

  1. Detect your Clawdbot/Moltbot installation
  2. Analyze security risks in your configuration
  3. Ask for confirmation before making changes
  4. Patch the config with secure settings
  5. Verify the fixes were successful

3. Save Your Token

ClawdGuard generates a secure token. Save it!

โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚  โš ๏ธ  IMPORTANT: Save your new gateway token!                       โ”‚
โ”‚                                                                    โ”‚
โ”‚    clwd_a8f2k9x3m1p7v4q2b6n8...                                    โ”‚
โ”‚                                                                    โ”‚
โ”‚  You'll need this to connect from the Control UI or CLI.          โ”‚
โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ

Docker Setup

Full Docker documentation for those without Rust installed.

Build & Run

# 1. Clone repository
git clone https://github.com/fadidevv/clawdguard.git
cd clawdguard

# 2. Build image (~3-5 min first time)
docker build --no-cache -t clawdguard .

# 3. Run scan (mount your config directory)
# For Moltbot (newer):
docker run -v ~/.moltbot:/root/.moltbot clawdguard

# For Clawdbot (legacy):
docker run -v ~/.clawdbot:/root/.clawdbot clawdguard

# With verbose mode
docker run -v ~/.moltbot:/root/.moltbot clawdguard --verbose

# Scan only (no fixes)
docker run -v ~/.moltbot:/root/.moltbot clawdguard --scan-only

# Auto mode (no prompts)
docker run -v ~/.moltbot:/root/.moltbot clawdguard --auto

# Show help
docker run clawdguard --help

Docker Compose

Simpler syntax using docker-compose:

# Run with docker-compose
docker-compose run clawdguard

# With verbose
docker-compose run clawdguard --verbose

# Scan only
docker-compose run clawdguard --scan-only

# Auto mode
docker-compose run clawdguard --auto

Docker Commands Reference

Command Description
docker build --no-cache -t clawdguard . Build image
docker run clawdguard --help Show help
docker run -v ... clawdguard Run scan
docker run -v ... clawdguard --scan-only Scan only
docker run -v ... clawdguard --auto Auto fix
docker run -v ... clawdguard --verbose Verbose mode
docker-compose run clawdguard Run with compose

Volume Mounts

Mount Purpose
~/.moltbot:/root/.moltbot Your Moltbot config directory (newer)
~/.clawdbot:/root/.clawdbot Your Clawdbot config directory (legacy)
./results:/app/results Save results locally

Docker Tips

# Create alias for easier usage (use your config directory)
alias clawdguard='docker run -v ~/.moltbot:/root/.moltbot clawdguard'
# Or for legacy Clawdbot:
alias clawdguard='docker run -v ~/.clawdbot:/root/.clawdbot clawdguard'

# Then just run:
clawdguard
clawdguard --scan-only
clawdguard --verbose

CLI Reference

clawdguard [OPTIONS]

OPTIONS:
    --scan-only         Only scan for issues, don't apply fixes
    --auto              Apply all fixes without confirmation prompts
    --backup-dir <DIR>  Custom directory for backup files
    --skip-firewall     Skip adding firewall rules
    --skip-restart      Skip restarting the gateway service
    --token <TOKEN>     Use a specific token instead of generating one
    -v, --verbose       Show detailed output
    --json              Output results as JSON (for scripting)
    -h, --help          Print help
    -V, --version       Print version

Examples

# Basic usage - scan, fix, verify
clawdguard

# Scan only (don't fix anything)
clawdguard --scan-only

# Fix everything automatically (no prompts)
clawdguard --auto

# Use your own token
clawdguard --token "my-secure-token-here"

# Verbose output for troubleshooting
clawdguard --verbose

# JSON output for scripting
clawdguard --json

# Combine options
clawdguard --auto --skip-firewall --verbose

# Custom backup directory
clawdguard --backup-dir /tmp/backups

What Gets Fixed

Setting Before (Insecure) After (Secure)
gateway.bind "0.0.0.0" / "lan" / "all" "loopback"
gateway.auth.mode "none" / missing "token"
gateway.auth.token missing Generated secure token
discovery.mdns.mode "full" "minimal"
File permissions 644 / 755 600

Risk Score

ClawdGuard calculates a risk score from 0-10:

Score Level Meaning
0-3 ๐ŸŸข LOW Minor issues or already secure
4-6 ๐ŸŸก MEDIUM Some security concerns
7-10 ๐Ÿ”ด CRITICAL Exposed to internet, fix immediately

Risk Score Calculation:

  • Exposed bind address: +3 points
  • Missing authentication: +4 points
  • External port reachable: +2 points
  • mDNS information leak: +1 point
  • Open file permissions: +1 point

Output Examples

Normal Mode

     ___  __    ____  _    _  ____  ___  _  _   __   ____  ____
    / __)(  )  (  _ \/ )  ( \(  _ \/ __)/ )( \ / _\ (  _ \(    \
   ( (__ / (_/\ ) _ (\ \__/ / ) __/\__ \) \/ (/    \ )   / ) D (
    \___)\____/(____/ \____/ (__)  (___/\____/\_/\_/(__\_)(____/

           ๐Ÿฆž Security hardening for Clawdbot/Moltbot
                              v1.0.0

โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”

โ„น Press Ctrl+C to cancel at any time

[1/4] ๐Ÿ” Detecting installation...
      โœ“ Config: ~/.clawdbot/clawdbot.json
      โœ“ Service: bot.molt.gateway (running, PID 1234)
      โœ“ Port 18789 is active

[2/4] โš ๏ธ  Analyzing security risks...

โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚ Issue            โ”‚ Current Value           โ”‚ Severity โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ Gateway Bind     โ”‚ 0.0.0.0                 โ”‚ CRITICAL โ”‚
โ”‚ Authentication   โ”‚ none                    โ”‚ CRITICAL โ”‚
โ”‚ mDNS Broadcast   โ”‚ full                    โ”‚ MEDIUM   โ”‚
โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ

      Risk Score: 9/10 ๐Ÿ”ด CRITICAL

      โš  This will modify your configuration to fix security issues.
      โ„น A backup will be created before any changes.

      Proceed with fixes? [y/N]: y

[3/4] ๐Ÿ”ง Applying fixes...
      โœ“ Backup: ~/.clawdbot/clawdbot.json.backup.20260128_143022
      โœ“ Set gateway.bind = "loopback" (was: "0.0.0.0")
      โœ“ Set gateway.auth.mode = "token" (was: "none")
      โœ“ Set gateway.auth.token = <generated>
      โœ“ Fixed file permissions (600)

      Generated Token: clwd_a8f2k9x3m1p7v4q2b6n8...

[4/4] โœ… Verifying fixes...
      โœ“ Gateway service restarted
      โœ“ Port 18789 no longer reachable externally
      โœ“ Gateway responding on localhost
      โœ“ Authentication is now required

โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”

โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚                                                                    โ”‚
โ”‚  ๐ŸŽ‰ SUCCESS! Your Clawdbot/Moltbot is now secure.                  โ”‚
โ”‚                                                                    โ”‚
โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ

JSON Output

clawdguard --json
{"status": "fixed", "token": "clwd_a8f2k9x3m1p7v4q2b6n8...", "backup": "~/.clawdbot/clawdbot.json.backup.20260128_143022"}

Graceful Stop (Ctrl+C)

Press Ctrl+C anytime during scanning to stop safely.

[2/4] โš ๏ธ  Analyzing security risks...
^C
โš  Interrupted! Exiting...

No changes are made until you confirm, so interrupting is always safe.


After Running

Update Your Environment

# Add to your shell profile (~/.bashrc, ~/.zshrc, etc.)
export CLAWDBOT_GATEWAY_TOKEN="clwd_your_token_here"

Remote Access (Secure Methods)

If you need remote access, use one of these secure methods:

Method Command
Tailscale (Recommended) tailscale serve --bg 18789
SSH Tunnel ssh -L 18789:localhost:18789 your-server
Cloudflare Tunnel cloudflared tunnel --url http://localhost:18789

โš ๏ธ Never change gateway.bind back to 0.0.0.0 or expose the port directly.


Troubleshooting

"No Clawdbot/Moltbot installation found"

Make sure:

  • Clawdbot or Moltbot is installed
  • You've run it at least once (creates ~/.moltbot/ or ~/.clawdbot/)
  • Config file exists at ~/.moltbot/moltbot.json or ~/.clawdbot/clawdbot.json

"Could not restart service"

Try manually:

clawdbot gateway restart
# or
moltbot gateway restart

Token Not Working

  1. Save the complete token (including clwd_ prefix)
  2. Add to environment or Control UI settings
  3. Restart the gateway

Docker: Permission Denied

Make sure your config directory is readable:

# For Moltbot (newer)
chmod 755 ~/.moltbot
chmod 644 ~/.moltbot/moltbot.json

# For Clawdbot (legacy)
chmod 755 ~/.clawdbot
chmod 644 ~/.clawdbot/clawdbot.json

Platform Support

Platform Status Service Manager
macOS โœ… Full launchd
Linux โœ… Full systemd (user)
Windows โš ๏ธ WSL2 Run inside WSL2

How It Works

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                        ClawdGuard v1.0                          โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚                                                                 โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”   โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”   โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”   โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”     โ”‚
โ”‚  โ”‚ DETECT   โ”‚ โ†’ โ”‚ ANALYZE  โ”‚ โ†’ โ”‚  PATCH   โ”‚ โ†’ โ”‚ VERIFY   โ”‚     โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜   โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜   โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜   โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜     โ”‚
โ”‚       โ”‚              โ”‚              โ”‚              โ”‚            โ”‚
โ”‚       โ–ผ              โ–ผ              โ–ผ              โ–ผ            โ”‚
โ”‚  Find config    Check risks    Fix config    Confirm safe      โ”‚
โ”‚  Find service   Score danger   Gen token     Test port         โ”‚
โ”‚  Find process   List issues    Fix perms     Restart svc       โ”‚
โ”‚                                                                 โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Project Structure

clawdguard/
โ”œโ”€โ”€ Cargo.toml           # Dependencies
โ”œโ”€โ”€ Dockerfile           # Docker build
โ”œโ”€โ”€ docker-compose.yml   # Docker compose
โ”œโ”€โ”€ .dockerignore
โ”œโ”€โ”€ README.md
โ”œโ”€โ”€ LICENSE
โ”œโ”€โ”€ .gitignore
โ”œโ”€โ”€ assets/
โ”‚   โ””โ”€โ”€ screenshot.png   # Screenshot for README
โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ main.rs          # CLI entry point
โ”‚   โ”œโ”€โ”€ lib.rs           # Library root
โ”‚   โ”œโ”€โ”€ detect/          # Installation detection
โ”‚   โ”‚   โ”œโ”€โ”€ mod.rs
โ”‚   โ”‚   โ”œโ”€โ”€ config.rs    # Config file detection
โ”‚   โ”‚   โ”œโ”€โ”€ process.rs   # Process detection
โ”‚   โ”‚   โ””โ”€โ”€ service.rs   # Service detection (launchd/systemd)
โ”‚   โ”œโ”€โ”€ analyze/         # Security analysis
โ”‚   โ”‚   โ”œโ”€โ”€ mod.rs
โ”‚   โ”‚   โ”œโ”€โ”€ config_risk.rs
โ”‚   โ”‚   โ”œโ”€โ”€ network.rs   # Port exposure check
โ”‚   โ”‚   โ””โ”€โ”€ permissions.rs
โ”‚   โ”œโ”€โ”€ patch/           # Configuration patching
โ”‚   โ”‚   โ”œโ”€โ”€ mod.rs
โ”‚   โ”‚   โ”œโ”€โ”€ config.rs
โ”‚   โ”‚   โ”œโ”€โ”€ firewall.rs
โ”‚   โ”‚   โ””โ”€โ”€ token.rs     # Secure token generation
โ”‚   โ”œโ”€โ”€ verify/          # Fix verification
โ”‚   โ”‚   โ”œโ”€โ”€ mod.rs
โ”‚   โ”‚   โ”œโ”€โ”€ port_check.rs
โ”‚   โ”‚   โ””โ”€โ”€ service.rs
โ”‚   โ””โ”€โ”€ output/
โ”‚       โ”œโ”€โ”€ mod.rs
โ”‚       โ””โ”€โ”€ printer.rs   # Colorful CLI output
โ””โ”€โ”€ tests/
    โ””โ”€โ”€ integration.rs

Development

Prerequisites

Option A: Native (Rust)

  • Rust 1.70+ (curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh)

Option B: Docker

  • Docker 20.10+

Building

Native:

# Clone repository
git clone https://github.com/fadidevv/clawdguard.git
cd clawdguard

# Build debug (faster compile)
cargo build

# Build release (optimized)
cargo build --release

Docker:

# Clone repository
git clone https://github.com/fadidevv/clawdguard.git
cd clawdguard

# Build image
docker build --no-cache -t clawdguard .

Running Tests

# Run all tests
cargo test

# Run with output
cargo test -- --nocapture

Code Quality

# Format code
cargo fmt

# Run linter
cargo clippy

# Check without building
cargo check

Contributing

Contributions welcome! Please:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/improvement)
  3. Make your changes
  4. Run tests (cargo test)
  5. Run linter (cargo clippy)
  6. Format code (cargo fmt)
  7. Commit changes (git commit -m 'Add improvement')
  8. Push to branch (git push origin feature/improvement)
  9. Open a Pull Request

Ideas for contributions:

  • Add support for more service managers
  • Improve detection heuristics
  • Add rollback functionality
  • Documentation improvements
  • Bug fixes

โš ๏ธ Disclaimer

This tool is for security purposes only.

  • Only run on systems you own or have permission to modify
  • Always verify the token was saved before closing the terminal
  • Test the fix by attempting to connect from another device

The authors are not responsible for misuse of this tool.


License

MIT License - see LICENSE for details.


Stay secure! ๐Ÿฆž๐Ÿ”

About

๐Ÿฆž Security hardening patch for Clawdbot/Moltbot. Detects and fixes exposed gateways automatically.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published