Skip to content
Coff0xcPublic

About

CatchClaw v6.0.0 (Go), MIT license. Authorized AI/LLM platform assessment: 25 stacks, 412 modules, DAG orchestration, Nuclei, OSINT, MCP. Written authorization required for every target.

Topics

Resources

Contributing

Security policy

Stars

33 stars

Watchers

0 watching

Forks

Repository files navigation

🦞 CatchClaw

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

CI Stars Issues License

Version Go Modules Profiles Chains


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.

LEGAL.md · LICENSE · SECURITY.md

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).


What CatchClaw does

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:

  1. Find the service (port scan + keyword fingerprint across 25 profiles).
  2. Probe known-bad paths, default credentials, unauthenticated APIs, and CVE-shaped HTTP checks.
  3. Chain multi-stage attacks that pass stolen tokens and IDs between steps.
  4. Report JSON / HTML / Markdown plus an optional Mermaid attack graph.
  5. 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.


Architecture

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. CatchClaw system architecture

Figure 1. Layered architecture of the v6.0 Go binary.

Figure 2. Assessment methodology

Figure 2. Authorized assessment pipeline. Stage 0 is written authorization.

Figure 3. DAG execution model

Figure 3. ATT&CK-shaped DAG. 82 explicit edges; remaining modules run unconstrained.


Features

Assessment engine

  • 412 registered modules — 101 handwritten exploits, 269 HTTP checks, 42 chains (catchclaw list)
  • ATT&CK-style phases — Recon → Initial Access → Credential Access → Execution → Persistence → PrivEsc → Lateral → Exfil
  • DAG orchestration — Kahn topological levels, goroutine workers, concurrency semaphore
  • 82 wired dependencies — remaining modules run as independent nodes
  • Dry-run — print the plan without firing the full probe set
  • Profiles — quick / stealth / full from YAML/TOML/JSON config

Coverage

  • 25 platform profiles — endpoints, capabilities, fingerprint markers
  • Chat / agents — Open-WebUI, Dify, FastGPT, LobeChat, LibreChat, NextChat, AnythingLLM, Flowise, RagFlow, Langflow
  • Inference — Ollama, vLLM, LocalAI, Xinference, LiteLLM
  • MLOps / UI — Ray, MLflow, Gradio, ComfyUI, DB-GPT, Jupyter
  • Vector DBs — ChromaDB, Qdrant, Weaviate, Milvus
  • CVE-shaped checks — 2023–2026 IDs in probes, HTTP checks, and chains

Protocol and payloads

  • HTTP client with redirects disabled (cuts OAuth 302 false positives)
  • WebSocket JSON-RPC helpers
  • Challenge-page / SPA / LLM-refusal filters
  • External YAML libraries: SSRF, injection, prompt, auth bypass, XSS, CVE-specific
  • Optional payload mutation
  • --tls for HTTPS/WSS (current client skips certificate verify — assessment-oriented)

Operator surface

  • scan — full DAG against one host, CIDR, range, or file
  • exploit / chain — single node or all 42 state-passing chains
  • discover — TCP connect scan + platform fingerprint
  • nuclei — bundled templates (45 IDs) without a Nuclei binary
  • osint — Shodan / FOFA / Hunter dorks (keys from env only)
  • mcp — stdio MCP server, private-range default allowlist, audit log
  • Reports: JSON, dark HTML, Markdown, Mermaid

Commands

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

scan flags

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 file

--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.


Platforms

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.


Modules and DAG

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 / Condition exist on Node and 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, MCP, OSINT

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.


Install

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.


Layout

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

Development and CI

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 ci

Legal

CatchClaw 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:

  1. Hold written authorization covering hosts, time, and methods.
  2. Keep CIDR / files / OSINT / MCP --allow inside that writing.
  3. Treat reports as confidential engagement data.
  4. Independently verify findings.
  5. 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.

Author

Coff0xc — https://github.com/Coff0xc

About

CatchClaw v6.0.0 (Go), MIT license. Authorized AI/LLM platform assessment: 25 stacks, 412 modules, DAG orchestration, Nuclei, OSINT, MCP. Written authorization required for every target.

Topics

Resources

Contributing

Security policy

Stars

33 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages