Autonomous OODA-loop pentesting agent. Hermes brain, Kali + Playwright tools over MCP, ATT&CK as the Orient language.
Python ai-agentsautonomous-agentskali-linuxllm-agentsoffensive-securityooda-looppentestingplaywrightsecurity
release: v1.8.0 — Caido integration
irraz247f6dbb21c5
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex e156640..9fc95be 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0## [Unreleased]+## [1.8.0] - 2026-11-05+### Added- **Caido Automate, Intercept and proxy capture (`caido_automate`, `caido_intercept`, `caido_proxy`)** — three more Caido subsystems as first-class kali-mcp tools, each verified end-to-end against Caido 0.59.0 + OWASP Juice Shop/DVWA. `caido_automate`: Intruder/ffuf-style fuzzing (mark an injection point with `§`, give a payload list, get per-payload status/length/timing), behind the same scope-guard as `caido_request`. `caido_intercept`: a single `action`-dispatched tool to hold/list/read/edit-forward/drop traffic on Caido's proxy. `caido_proxy` + `CAIDO_PROXY_CAPTURE=1`: route `kali_run`'s HTTP-tool traffic (curl/nuclei/ffuf/sqlmap/wget) through Caido so it is captured in the history and interceptable — CA fetched at startup with background retry until Caido is reachable, proxy env injected into subprocesses only (never the kali-mcp process), `NO_PROXY` excludes Caido to avoid a loop. Stdlib-pure `caido_automate.py`/`caido_intercept.py`/`caido_proxy.py` (no new deps). See `docs/caido.md`.diff --git a/README.md b/README.mdindex 3722942..418f297 100644--- a/README.md+++ b/README.md@@ -81,17 +81,22 @@ tools run on a Kali governed by an MCP server. Hermes decides whatto run and launches it **directly** against the target through the Kali MCP.It is a deliberately minimal design: **no core, no REST API, no UI, no gates**.-Four containers (the agent, two tool MCP servers and the MCP front door) and the agent driving-end to end.+Five containers (the agent, two tool MCP servers, the Caido web-security toolkit and the MCP+front door) and the agent driving end to end.-## Architecture (4 containers)+## Architecture (5 containers)-+- **kali** — deterministic runtime for pentest and collection tools (nmap, whatweb, nuclei, ffuf,sqlmap, Prowler, ...) over a `kali-mcp` server (`:8900`).- **playwright-mcp** — real browser (headless Chromium) over MCP (`:8931`), the web surface used bythe `web-pentest` skill.+- **caido** — the [Caido](https://caido.io) web-security toolkit (proxy + Replay + HTTPQL history ++ Automate fuzzing + interception), reached by `kali-mcp` over its GraphQL API on the internal+ network (`http://caido:8080`, **not** published to the host). It powers the `caido_*` tools and+ optional proxy capture of `kali_run` traffic; fully zero-touch (headless guest login, persistent+ volume, pinned image). See **[`docs/caido.md`](docs/caido.md)**.- **ooda-agent** — Hermes (`nousresearch/hermes-agent`) as the OODA loop driver and client of bothMCPs. Keeps its OpenAI-compatible API server alive on `:8642`.- **vulnerator-mcp** — thin MCP **front door** over Hermes' `:8642` runs API so MCP clientsdiff --git a/VERSION b/VERSIONindex bd8bf88..27f9cd3 100644--- a/VERSION+++ b/VERSION@@ -1 +1 @@-1.7.0+1.8.0diff --git a/docs/architecture.svg b/docs/architecture.svgindex 5bcbe9a..e3b4069 100644--- a/docs/architecture.svg+++ b/docs/architecture.svg@@ -159,6 +159,18 @@<text x="874" y="619" fill="#6a6a6a" font-size="9">--isolated ephemeral profile · --no-sandbox · allowed-host: playwright-mcp:8931</text><text x="874" y="633" fill="#6a6a6a" font-size="9">not published to host — reachable only over the docker internal network</text>+ <!-- ==== CAIDO (web-security toolkit, driven by kali-mcp) ==== -->+ <rect x="836" y="664" width="582" height="84" rx="6" fill="#0b0b0b" stroke="#9a9a9a" stroke-width="1.6"/>+ <text x="862" y="690" fill="#f2f2f2" font-size="15" font-weight="700" letter-spacing="1"+ font-family="'Impact','Arial Black',sans-serif">CAIDO</text>+ <text x="862" y="708" fill="#8a8a8a" font-size="11">web-security toolkit · proxy + Replay + HTTPQL + Automate + intercept · image: caido/caido:0.59.0</text>+ <rect x="858" y="716" width="536" height="26" rx="4" fill="#101010" stroke="#9a9a9a" stroke-width="1.3"/>+ <text x="874" y="733" fill="#e8e8e8" font-size="10.5" font-weight="700">[∞] GraphQL API · caido:8080 (internal only) · driven by kali-mcp · zero-touch guest login</text>++ <!-- kali-mcp -> caido (routed down the right margin to clear playwright) -->+ <path d="M1418,450 C1436,450 1436,470 1436,490 L1436,685 C1436,702 1434,706 1418,706" fill="none" stroke="#e8e8e8" stroke-width="2" marker-end="url(#aReq)"/>+ <text x="1452" y="585" fill="#cfcfcf" font-size="9.5" text-anchor="middle" transform="rotate(-90 1452 585)">drives · caido:8080</text>+<!-- ===================== OPENROUTER (external cloud) ===================== --><rect x="344" y="700" width="330" height="92" rx="6" fill="#0a0a0a" stroke="#8a4a4a" stroke-width="1.5"/><text x="368" y="726" fill="#e8a0a0" font-size="14" font-weight="700" letter-spacing="1">☁ OPENROUTER (remote LLM)</text>@@ -226,7 +238,7 @@<text x="1360" y="312" fill="#8a6a6a" font-size="8.5" text-anchor="start">no scope-gate — operator owns it</text><!-- ===================== LEGEND ===================== -->- <rect x="36" y="460" width="250" height="294" rx="6" fill="#0a0a0a" stroke="#4a4a4a" stroke-width="1.2"/>+ <rect x="36" y="460" width="250" height="316" rx="6" fill="#0a0a0a" stroke="#4a4a4a" stroke-width="1.2"/><text x="54" y="486" fill="#f2f2f2" font-size="12.5" font-weight="700" letter-spacing="1">† LEGEND</text><line x1="54" y1="510" x2="90" y2="510" stroke="#e8e8e8" stroke-width="2.4" marker-end="url(#aReq)"/>@@ -244,9 +256,10 @@<text x="54" y="644" fill="#cfcfcf" font-size="9.5">:8900 kali-mcp</text><text x="54" y="660" fill="#cfcfcf" font-size="9.5">:8901 artifacts data-plane</text><text x="54" y="676" fill="#7f8c8d" font-size="9.5">:8931 playwright (internal only)</text>+ <text x="54" y="692" fill="#7f8c8d" font-size="9.5">:8080 caido (internal only)</text>- <line x1="54" y1="690" x2="286" y2="690" stroke="#2f2f2f"/>- <text x="54" y="710" fill="#8a8a8a" font-size="9">assistant triggers · Hermes reasons the OODA</text>- <text x="54" y="724" fill="#8a8a8a" font-size="9">kali executes · findings are evidence-first</text>- <text x="54" y="740" fill="#5a5a5a" font-size="8.5">† summoned from the depths of the OODA abyss †</text>+ <line x1="54" y1="706" x2="286" y2="706" stroke="#2f2f2f"/>+ <text x="54" y="726" fill="#8a8a8a" font-size="9">assistant triggers · Hermes reasons the OODA</text>+ <text x="54" y="740" fill="#8a8a8a" font-size="9">kali executes · findings are evidence-first</text>+ <text x="54" y="756" fill="#5a5a5a" font-size="8.5">† summoned from the depths of the OODA abyss †</text></svg>diff --git a/docs/design.md b/docs/design.mdindex 59ddba2..f34a855 100644--- a/docs/design.md+++ b/docs/design.md@@ -108,3 +108,34 @@ navigation/DOM/XSS without re-enabling the native `browser` toolset. Its guardrathe project's philosophy: there is no gate that blocks, but there is audit discipline andreproducible evidence so the exploitation can be re-established (and the leakage warning from theauxiliary client is kept: redact credentials, `title_generation` off in sensitive engagements).++## The intercepting-proxy flank (Caido, driven by kali-mcp)++Beyond the CLI tools and the browser, the loop can drive **[Caido](https://caido.io)** — a modern+web-security toolkit (intercepting proxy + Replay + HTTPQL history + Automate fuzzing + interception++ scope + workflows). Caido runs as its **own container** (`caido`, official `caido/caido:0.59.0`+image pinned, persistent named volume, a one-shot `caido-init` that fixes the volume ownership for+Caido's non-root user). It is **not** a separate MCP server: it lives on the internal compose network+and `kali-mcp` talks to its GraphQL API at `http://caido:8080` (never published to the host). This+keeps the project principle intact — the agent's tool surface is still just the MCP servers — while+reusing the deterministic `kali-mcp` runtime as the single control point.++Why a dedicated container rather than installing Caido inside `kali`: Caido is a stateful,+long-lived service (proxy daemon + GraphQL API + project/session store), not a short-lived CLI, so it+follows the same pattern as `playwright-mcp` and the lab targets — a separate service reached by+internal DNS. This decouples its upgrade cycle (bump `CAIDO_IMAGE`), keeps the `kali` image slim, and+avoids supervising a persistent daemon inside the tool-exec container. Proxy capture does not need+co-location: it works over `HTTP(S)_PROXY` to `caido:8080` regardless.++The surface is exposed to Hermes as thin `@mcp.tool` wrappers over stdlib-pure modules (no new+dependencies): `caido_graphql` (version-agnostic passthrough to the whole GraphQL schema),+`caido_request` (send through Replay), `caido_history` (HTTPQL search), `caido_automate`+(Intruder/ffuf-style fuzzing), `caido_intercept` (hold/list/read/edit-forward/drop), and+`caido_proxy` (opt-in routing of `kali_run`'s HTTP-tool traffic through Caido for capture). Every+tool that **sends traffic to a target** (`caido_request`, `caido_automate`, and traffic-sending+`caido_graphql` mutations) goes through the **same scope-guard as `kali_run`**, validating the full+`scheme://host:port` so `scope.json` ports are honored and a blocked request sends nothing+(fail-closed). Authentication is zero-touch by default (headless guest login against a+`--allow-guests` instance); failure modes are explicit (`unauthenticated` / `unreachable` /+`graphql_error` / `timeout` / `failed`), never faked. See **[`docs/caido.md`](caido.md)** for the+auth model, the `--allow-guests` trade-off, and the documented limitations.