Let us guess, your developers are not running OpenClaw, are they? π
Claw Hunter is a discovery and risk-assessment tool for OpenClaw (formerly known as Clawdbot and Moltbot) instances. It identifies "Shadow AI", audits agent privileges. It let's you (the user) ensure that your user endpoints, data and network are not compromised by unauthorized access.
In the 2026 landscape, autonomous agents like OpenClaw operate as high-privilege service accounts. While they boost productivity, they often bypass standard IAM policies, creating "Shadow AI" instances that can execute shell commands and move data across your network.
Claw Hunter is purpose-built for ITSec teams to detect:
- Security Risks: Shell access, filesystem write permissions, exposed gateways
- Credential Exposure: Scans for potential secrets and API keys
- Integration Inventory: Active agents, channels, and registry entries
- Configuration Issues: Missing auth tokens, misconfigured services
- Installation Status: CLI, config files, running processes
- β System Agnostic Visibility: macOS, Linux (bash 3.2+), Windows (PowerShell 5.1+)
- β MDM-Ready: Silent execution, proper exit codes, centralized logging
- β Non-Intrusive: Read-only operations, no system modifications
- β Comprehensive Detection: Installation, configuration, processes, secrets
- β Structured Output: JSON format for automation and SIEM integration
- β
Zero Dependencies: Pure bash/PowerShell, optional
jqfor enhanced JSON
- π Silent execution mode for automated deployment
- π Machine identification (hostname, serial number, timestamp)
- π― Security risk scoring (clean, warning, critical)
- π€ Upload results to central API endpoint
- π Bearer token authentication support
- π Persistent logging to standard locations
- β Proper exit codes for automation
0: No issues detected (clean)1: Security issues or warnings found2: OpenClaw not installed3: Script execution error
macOS/Linux:
# Download and run
curl -O https://raw.githubusercontent.com/backslash-security/Claw-Hunter/main/claw-hunter.sh
chmod +x claw-hunter.sh
./claw-hunter.shWindows:
# Download and run
Invoke-WebRequest -Uri https://raw.githubusercontent.com/backslash-security/Claw-Hunter/main/claw-hunter.ps1 -OutFile claw-hunter.ps1
.\claw-hunter.ps1Jamf Pro (macOS):
sudo /path/to/claw-hunter.sh --mdm --upload-url https://your-api.com/audits --api-key-file /etc/openclaw-keyMicrosoft Intune (Windows):
.\claw-hunter.ps1 --mdm --upload-url https://your-api.com/auditsSee MDM Deployment Guides for platform-specific instructions.
./claw-hunter.sh [OPTIONS]
Options:
--json Print JSON output to terminal (stdout)
--json-path <file> Save JSON results to this file path
--mdm MDM mode: silent execution with JSON output
--upload-url <url> Upload JSON results to this URL
--api-key-file <file> File containing API key for authentication
--log-file <file> Write logs to this file
-h, --help Show help message
MDM Mode:
Silent execution designed for automated deployment via MDM platforms.
- Suppresses terminal output (errors go to stderr)
- Writes JSON to /var/log/claw-hunter.json (Unix) or C:\ProgramData\claw-hunter.json (Windows)
- Logs to corresponding .log file
- Returns proper exit codes for automation# Interactive mode with terminal output
./claw-hunter.sh
# Save results to JSON file
./claw-hunter.sh --json-path /tmp/audit-results.json
# Print JSON to stdout
./claw-hunter.sh --json
# MDM deployment with upload
sudo ./claw-hunter.sh --mdm --upload-url https://api.example.com/audits --api-key-file /etc/audit-key
# MDM with custom paths
sudo ./claw-hunter.sh --mdm --json-path /custom/audit.json --log-file /var/log/custom.log==========================================
π‘οΈ OPENCLAW SECURITY AUDIT: UNIX/MAC (v3)
==========================================
--- [ Detection ] ---
β
State Dir: /Users/john/.openclaw
β
Config: /Users/john/.openclaw/openclaw.json (found)
β
CLI: /usr/local/bin/openclaw (v1.2.3)
--- [ Network & Gateway ] ---
β‘ Gateway: ACTIVE (Port 18789 | PID: 12345)
β οΈ Gateway auth token: NOT SET
--- [ Privileges & Tools ] ---
β RISK: Shell Access ENABLED
β
Filesystem Write: not flagged
{
"mdm_mode": true,
"mdm_metadata": {
"hostname": "LAPTOP-ABC123",
"serial_number": "C02XYZ123456",
"timestamp": "2026-02-02T20:30:00Z",
"script_version": "3.0"
},
"security_summary": {
"risk_level": "warning",
"critical_issues": 1,
"warnings": 2,
"info_items": 5
},
"platform": "unix",
"os": "macos",
"cli_installed": true,
"cli_version": "1.2.3",
"gateway_running": true,
"gateway_token_set": false,
"risk_shell_access_enabled": true,
"secrets_found": false
}See examples/ for complete output samples.
- Bash 3.2 or higher (pre-installed on macOS/most Linux)
- Standard Unix utilities:
grep,awk,sed,find - Optional:
jqfor enhanced JSON formatting - Root/sudo access for MDM mode (for serial number access)
- PowerShell 5.1 or higher (Windows 10/11)
- No additional dependencies
- Administrator privileges recommended for MDM mode
Run the test suite to verify functionality:
# Bash tests
cd tests/bash
./run-tests.sh
# PowerShell tests
cd tests/powershell
.\run-tests.ps1See tests/README.md for detailed testing documentation.
Distributed under the MIT License. see the LICENSE file for details.
Claw Hunter is an independent security research tool. We are not affiliated, associated, authorized, endorsed by, or in any way officially connected with OpenClaw (formerly Moltbot) or any of its subsidiaries or its affiliates. The name OpenClaw as well as related names, marks, emblems, and images are registered trademarks of their respective owners.
This tool performs read-only security audits and does not modify system configurations. Always test in a non-production environment first. The tool detects potential security issues but does not make judgments about your specific security requirements.
Security Considerations - What the audit detects and why
For security disclosures, enterprise support, or general inquiries, please reach out to the team.
-
π Website: backslash.security
-
π Email: support@backslash.security