Authorized security assessment for self-hosted AI / LLM platforms
Go v6.0.1 · 412 modules · 25 platform profiles · ATT&CK-mapped DAG · Nuclei · OSINT · MCP
English · Go details · 日本語 · Русский · Deutsch · Français
Legal risk (worldwide). CatchClaw is dual-use. The code is MIT-licensed (commercial use and derivatives allowed). That copyright grant does not authorize scanning or accessing systems without the owner’s prior written authorization. Unauthorized access is a crime or civil wrong under every applicable jurisdiction — where you act, where the target and its data sit, your nationality, and any country of transit or export. You bear all legal risk.
Source lives in go/ (v6.0.1). Localized READMEs may lag; this file is authoritative. The v5 Rust tree is not on master (git history / tag v5.2.0).
CatchClaw is a single-binary assessment toolkit for self-hosted AI infrastructure: chat UIs, agent platforms, inference servers, vector databases, and MLOps consoles.
On an authorized target it can:
- Find the service (port scan + keyword fingerprint across 25 profiles).
- Probe known-bad paths, default credentials, unauthenticated APIs, and CVE-shaped HTTP checks.
- Chain multi-stage attacks that pass stolen tokens and IDs between steps.
- Report JSON / HTML / Markdown plus an optional Mermaid attack graph.
- Hand off the same engine to Nuclei templates, Shodan/FOFA/Hunter, or an MCP-connected assistant.
Hits are unverified signals (status codes and body keywords). Reproduce before you treat them as confirmed vulnerabilities.
A module registry is compiled into a DAG, executed by topological level under a semaphore, and reduced to scored findings. Operator surface, control plane, knowledge, transport, and evidence are separate layers: adding a check does not change the runtime.
Figure 1. Layered architecture of the v6.0 Go binary.
Figure 2. Authorized assessment pipeline. Stage 0 is written authorization.
Figure 3. ATT&CK-shaped DAG. 82 explicit edges; remaining modules run unconstrained.
|
|
|
|
| Command | What it does |
|---|---|
scan |
Build the DAG, run modules level-by-level, score findings |
exploit |
Run the DAG or a single --chain-id node |
chain |
Only the 42 multi-stage chains; a chain is “complete” when every stage hits |
discover |
Port scan (default AI-common ports) then fingerprint |
nuclei |
Execute YAML templates from nuclei-templates/ |
osint |
Query cyberspace engines; never pass API keys on the CLI |
mcp |
Expose scan/chain/discover/nuclei/osint to an AI assistant |
list |
Print the 412-module catalog |
config |
Show merged configuration |
version |
Print 6.0.1 |
Only against systems you own or are written-authorized to test. CIDR expansion, target files, OSINT hosts, and MCP --allow must stay inside that writing.
# Catalog
catchclaw list
# Preview which nodes would run
catchclaw scan -t 192.168.1.10:8080 --dry-run
# Auto-fingerprint and scan
catchclaw scan -t 192.168.1.10:8080
# Force a profile
catchclaw scan -t 192.168.1.10:8080 --platform dify --profile stealth
# Reports
catchclaw scan -t 192.168.1.10:8080 -o report.json
catchclaw scan -t 192.168.1.10:8080 -o report.html --format html
catchclaw scan -t 192.168.1.10:8080 -o report.md --format markdown --severity-filter critical,high
# Batch (authorization required for every expanded address)
catchclaw scan --targets "192.168.1.0/24:8080" -o results.json
catchclaw scan -f targets.txt -o results.json
# Chains
catchclaw chain -t 192.168.1.10:8080
catchclaw exploit -t 192.168.1.10:8080 --chain-id 30
# Discovery / Nuclei / OSINT / MCP
catchclaw discover -t 192.168.1.10 --ports 3000,8080,11434
catchclaw nuclei --list
catchclaw nuclei -t http://192.168.1.10:8080
catchclaw osint --list-dorks
catchclaw osint --engine shodan --platform ollama
catchclaw mcp --allow 10.0.0.0/8| Flag | Purpose |
|---|---|
-t, --target |
host:port |
--targets |
Comma list, CIDR, or IP range |
-f, --targets-file |
One host:port per line |
--token / CATCHCLAW_TOKEN |
Gateway bearer token |
--timeout |
Seconds (default 10) |
-o, --output |
Report path |
--format |
json (default) · html · markdown |
--concurrency |
Max parallel modules (default 10) |
--tls |
HTTPS / WSS |
--tls-verify |
Verify TLS certificates (default: skip, for lab certs) |
--callback |
Out-of-band SSRF callback URL |
--profile |
quick · stealth · full |
--severity-filter |
critical,high,medium,low,info |
--dry-run |
Plan only |
--config |
YAML / TOML / JSON |
--platform |
auto or a profile name |
OSINT keys (environment only): SHODAN_API_KEY, FOFA_EMAIL + FOFA_KEY, HUNTER_API_KEY.
--config loads YAML, TOML, or JSON. Flags override the file. --profile overlays profile.<name> onto scanner / proxy / graph / payload.
Example: go/catchclaw.example.yaml. Copy it, then:
catchclaw scan -t 192.168.1.10:8080 --config catchclaw.yaml --profile stealth| Key | Meaning |
|---|---|
target.host / port / tls / token |
Default target (CLI -t still required today) |
scanner.timeout |
Seconds (default 10) |
scanner.concurrency |
Max parallel modules (default 10) |
scanner.log_level |
info debug trace warn error quiet |
scanner.aggressive |
Noisier / obfuscated payloads |
scanner.tls_skip_verify |
Default true. Set false or pass --tls-verify |
scanner.callback_url |
Out-of-band SSRF callback |
proxy.http / https |
HTTP(S) forward proxy. socks5 is accepted as a URL but the client is net/http (HTTP proxy only) |
payload.file |
Extra YAML payload library |
payload.enable_mutation |
Mutate payloads |
graph.export_json / export_mermaid / output_dir |
Attack-graph export |
profile.quick / stealth / full |
Named overlays |
Not in the file (CLI only): --targets, --targets-file, --format, --severity-filter, --dry-run, --platform, MCP --allow, OSINT engines.
Each profile carries default ports, fingerprint markers, and an endpoint map. CrewAI and LangChain exist as identifiers / CVE modules without a dedicated profile.
| Group | Platforms | Typical probes |
|---|---|---|
| Chat / agents | Open-WebUI / OpenClaw, Dify, FastGPT, LobeChat, LibreChat, NextChat, AnythingLLM, Flowise, RagFlow, Langflow | Auth, SSRF, tenant isolation, default creds, workflow RCE |
| Gateways | LiteLLM | Default master key, spend logs, callback SSRF |
| Inference | Ollama, vLLM, LocalAI, Xinference | Unauth generate/tags, path disclosure, gallery RCE |
| MLOps / notebooks | Ray Dashboard, MLflow, Gradio, ComfyUI, DB-GPT, Jupyter | Job RCE, artifact traversal, kernel exec |
| Vector DB | ChromaDB, Qdrant, Weaviate, Milvus | Unauth collections, snapshot theft, default creds |
Fingerprint is keyword-based. Treat discover output as a hint and pass --platform when you already know the stack.
catchclaw list loads 412 entries (counted from source in v6.0.1):
| Kind | Count | Role |
|---|---|---|
| Handwritten exploits | 101 | Custom logic (SSRF, RCE, WS, OAuth, skill poison, CVE probes, …) |
| HTTP checks | 269 | Data-driven path + status + keyword (checks.go) |
| State-passing chains | 42 | Stage N output ({token}, {role}, …) feeds stage N+1 |
| Registered total | 412 |
| Related | Count |
|---|---|
| Platform profiles | 25 |
| Platform identifiers | 27 |
DAG nodes with DependsOn |
82 |
| Nuclei template IDs | 45 |
Handwritten catalog and chain table: go/README.md.
How scan builds the graph:
- 82 handwritten modules get explicit ATT&CK-stage edges in
go/internal/scan/scan.go. - HTTP checks and chains are appended as independent nodes (parallel with other unconstrained work).
- Execution is level-parallel under a semaphore.
FallbackFor/Conditionexist onNodeand are not filled by the current builder.- The attack graph records executed / skipped and can export Mermaid.
A chain is different: it is one module with several HTTP stages and in-memory state. It reports full compromise only when every stage succeeds.
Reports — JSON for pipelines; HTML (dark, chain cards) for humans; Markdown with optional Mermaid; severity filter applied before write.
MCP — catchclaw mcp speaks JSON-RPC on stdio. Tools: catchclaw_scan, catchclaw_chain, catchclaw_discover, catchclaw_nuclei, catchclaw_list_modules, catchclaw_list_chains, catchclaw_osint. Default allowlist is private address space; public targets need --allow / --allow-file. Every resolved IP must stay in the allowlist. Scan mutex + 2s cooldown. Keys never accepted as tool arguments.
OSINT — 20 built-in platform dorks. Output is host/port intelligence, not a scan. You still need authorization before you point scan at anything it returns.
Nuclei — 45 template IDs under nuclei-templates/ (OpenClaw + v3/ + v4/). The built-in runner understands HTTP word/status matchers. The Nuclei CLI can use the same directory.
Go 1.22+. One static binary.
git clone https://github.com/Coff0xc/catchclaw.git
cd catchclaw/go
go build -o catchclaw .# Linux
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -trimpath -ldflags="-s -w" -o catchclaw-linux .
# Windows
GOOS=windows GOARCH=amd64 CGO_ENABLED=0 go build -o catchclaw.exe .Root make build / make ci delegate to go/. Release tags vX.Y.Z publish archives that include LICENSE, LEGAL.md, an SPDX SBOM, SHA-256 sums, and build provenance.
catchclaw/
├── go/ # v6.0.1 (supported)
│ ├── main.go
│ ├── catchclaw.example.yaml
│ └── internal/
│ ├── cli/ # scan exploit chain discover nuclei osint mcp list
│ ├── core/ # Target, Finding, DAG
│ ├── exploit/ # registry + modules + chains
│ ├── platform/ # 25 profiles
│ ├── scan/ # DAG build, CIDR, discovery
│ ├── payload/ # YAML + mutation
│ ├── nuclei/ # template runner
│ ├── osint/ # Shodan / FOFA / Hunter
│ ├── mcpserver/ # allowlist + audit
│ ├── report/ # JSON / HTML / Markdown / Mermaid
│ └── utils/ # HTTP (no redirect), WebSocket
├── payloads/ # SSRF, injection, prompt, auth, XSS, CVE
├── nuclei-templates/
├── .github/workflows/ # CI, CodeQL, release
├── LEGAL.md
├── LICENSE
└── SECURITY.md
See CONTRIBUTING.md. PRs must keep CI green.
| Workflow | When | Checks |
|---|---|---|
| CI | push / PR | gofmt, go mod verify/tidy, vet, golangci-lint, -race tests, coverage, host build + list smoke (412), cross-compile, govulncheck, Gitleaks, YAML parse, actionlint |
| CodeQL | Go changes + weekly | CodeQL on go/ |
| Release | tag vX.Y.Z |
Cross-build, LICENSE+LEGAL.md, SPDX SBOM, SHA-256, provenance attestation |
cd go && make ciCatchClaw sends exploit payloads, guesses credentials, and can expand one flag into many hosts. That exposure is worldwide. The copyright license’s choice of forum does not pick your criminal law.
Before every run, in every jurisdiction that may apply:
- Hold written authorization covering hosts, time, and methods.
- Keep CIDR / files / OSINT / MCP
--allowinside that writing. - Treat reports as confidential engagement data.
- Independently verify findings.
- Confirm the act is lawful where you are, where the target is, and anywhere in between.
Commercial use and derivative works are allowed under MIT. MIT does not legalize unauthorized access.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND. Authors and copyright holders are not liable for claims, damages, fines, or criminal consequences arising from use in any country.
This README is not legal advice. Full text: LEGAL.md. License: MIT.
Coff0xc — https://github.com/Coff0xc