Skip to content

Autonomous OODA-loop pentesting agent. Hermes brain, Kali + Playwright tools over MCP, ATT&CK as the Orient language.

docs: translate user-facing documentation to English

irraz8ef775ab05ad
diff --git a/.env.example b/.env.example
index 354163f..da45513 100644
--- a/.env.example
+++ b/.env.example
@@ -1,53 +1,53 @@
# =============================================================================
-# vulnerator-ai — plantilla de variables de entorno.
-# Copia este fichero a .env y rellena los valores. NO pongas secretos reales aquí.
+# vulnerator-ai — environment variables template.
+# Copy this file to .env and fill in the values. Do NOT put real secrets here.
# cp .env.example .env
# =============================================================================
# --- LLM (OpenRouter) ---------------------------------------------------------
-# OBLIGATORIO. Es la MISMA key de OpenRouter que usa Hermes como proveedor del LLM.
-# Hermes la lee de esta variable directamente (no de HERMES_LLM_API_KEY).
+# REQUIRED. This is the SAME OpenRouter key Hermes uses as the LLM provider.
+# Hermes reads it directly from this variable (not from HERMES_LLM_API_KEY).
OPENROUTER_API_KEY=
-# OPCIONAL. Modelo por defecto de OpenRouter (si se omite, usa el del perfil).
+# OPTIONAL. Default OpenRouter model (if omitted, uses the one from the profile).
OPENROUTER_MODEL=
-# --- API server de Hermes -----------------------------------------------------
-# OBLIGATORIO. Clave del API server interno de Hermes (mín. 8 chars). Genera una con:
+# --- Hermes API server --------------------------------------------------------
+# REQUIRED. Key for Hermes' internal API server (min. 8 chars). Generate one with:
# openssl rand -hex 32
-# También es el Bearer token para pilotar Hermes por HTTP desde un asistente externo:
+# It is also the Bearer token to drive Hermes over HTTP from an external assistant:
# Authorization: Bearer <HERMES_API_SERVER_KEY>
HERMES_API_SERVER_KEY=
-# OPCIONAL. Puerto del HOST donde se publica el API server OpenAI-compatible de Hermes
-# (el puerto interno del contenedor sigue siendo 8642). Vacío = 8642. Hace falta publicarlo
-# para pilotar Hermes desde un asistente externo (Kiro/Claude) por HTTP sin entrar al TUI.
-# El acceso lo protege el Bearer HERMES_API_SERVER_KEY; publica el puerto solo en entorno
-# controlado. Si no quieres abrir el puerto, usa 'docker compose exec' (ver README).
+# OPTIONAL. HOST port where Hermes' OpenAI-compatible API server is published
+# (the container's internal port stays 8642). Empty = 8642. You need to publish it
+# to drive Hermes from an external assistant (Kiro/Claude) over HTTP without entering the TUI.
+# Access is protected by the HERMES_API_SERVER_KEY Bearer; publish the port only in a
+# controlled environment. If you don't want to open the port, use 'docker compose exec' (see README).
HERMES_API_HOST_PORT=
-# --- AWS read-only (OPCIONAL) -------------------------------------------------
-# Solo si vas a usar las tools de recolección cloud (Prowler/ScoutSuite/Cloudsplaining).
-# Si no las usas, deja estas variables vacías. Usa credenciales read-only de la cuenta
-# que estés AUTORIZADO a auditar.
+# --- AWS read-only (OPTIONAL) -------------------------------------------------
+# Only if you are going to use the cloud collection tools (Prowler/ScoutSuite/Cloudsplaining).
+# If you don't use them, leave these variables empty. Use read-only credentials for the account
+# you are AUTHORIZED to audit.
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
-# Solo para credenciales temporales (STS).
+# Only for temporary credentials (STS).
AWS_SESSION_TOKEN=
AWS_REGION=
-# --- Puerto del MCP de Kali en el host (OPCIONAL) -----------------------------
-# Puerto del HOST donde se publica el servidor kali-mcp (el puerto interno del
-# contenedor sigue siendo 8900). Vacío = 8900. ooda-agent alcanza a kali por la red
-# interna (kali:8900) sin depender de esto; solo importa para inspección desde el host.
+# --- Kali MCP port on the host (OPTIONAL) -------------------------------------
+# HOST port where the kali-mcp server is published (the container's internal port
+# stays 8900). Empty = 8900. ooda-agent reaches kali over the internal network
+# (kali:8900) without relying on this; it only matters for inspection from the host.
KALI_MCP_HOST_PORT=
-# --- Canal de artefactos (OPCIONAL) -------------------------------------------
-# Token compartido del canal de datos del contenedor kali.
+# --- Artifacts channel (OPTIONAL) ---------------------------------------------
+# Shared token for the kali container's data channel.
KALI_ARTIFACTS_TOKEN=
-# --- Prowler (OPCIONAL) -------------------------------------------------------
-# Acotan el escaneo cloud si usas Prowler. Vacío = valores por defecto del compose.
+# --- Prowler (OPTIONAL) -------------------------------------------------------
+# These scope the cloud scan if you use Prowler. Empty = compose defaults.
PROWLER_STATUS=
PROWLER_REGIONS=
PROWLER_SERVICES=
diff --git a/README.md b/README.md
index 4bd8113..89a53e1 100644
--- a/README.md
+++ b/README.md
@@ -1,178 +1,178 @@
<p align="center">
- <img src="docs/vulnerator-ai-logo.png" alt="VULNERATOR AI — logo oficial: lettering death metal espinoso sobre fondo negro, con un cerebro de circuito ciberpunk y trazos de PCB saliendo de las letras." width="640">
+ <img src="docs/vulnerator-ai-logo.png" alt="VULNERATOR AI — official logo: spiky death-metal lettering on a black background, with a cyberpunk circuit brain and PCB traces spilling out of the letters." width="640">
</p>
<p align="center">
<sub>† † † &nbsp; summoned from the depths of the OODA abyss &nbsp; † † †</sub>
</p>
-OODA pentest conducido por **Hermes** hablando **directo** a un contenedor **Kali** vía MCP.
+OODA pentest driven by **Hermes** talking **directly** to a **Kali** container via MCP.
-## Qué es
+## What it is
-`vulnerator-ai` ejecuta un bucle OODA (Observe-Orient-Decide-Act) de pentest donde
-el cerebro conductor es [Hermes](https://github.com/NousResearch/hermes) y las
-herramientas corren en un Kali gobernado por un servidor MCP. Hermes decide qué
-ejecutar y lo lanza **directamente** contra el objetivo a través del MCP de Kali.
+`vulnerator-ai` runs an OODA (Observe-Orient-Decide-Act) pentest loop where
+the driving brain is [Hermes](https://github.com/NousResearch/hermes) and the
+tools run on a Kali governed by an MCP server. Hermes decides what
+to run and launches it **directly** against the target through the Kali MCP.
-Es un diseño deliberadamente mínimo: **no hay core, ni API REST, ni UI, ni gates**.
-Tres contenedores (el agente y dos servidores MCP) y el agente conduciendo de punta a punta.
+It is a deliberately minimal design: **no core, no REST API, no UI, no gates**.
+Three containers (the agent and two MCP servers) and the agent driving end to end.
-## Arquitectura (3 contenedores)
+## Architecture (3 containers)
-![Diagrama de arquitectura de vulnerator-ai: el pentester pilota Hermes desde Claude Code por HTTP; Hermes conduce el bucle OODA (con ATT&CK como idioma del Orient) y ejecuta directamente en Kali y Playwright vía MCP, razonando con Mistral en OpenRouter.](docs/arquitectura.svg)
+![vulnerator-ai architecture diagram: the pentester pilots Hermes from Claude Code over HTTP; Hermes drives the OODA loop (with ATT&CK as the Orient language) and runs directly on Kali and Playwright via MCP, reasoning with Mistral on OpenRouter.](docs/arquitectura.svg)
-- **kali** — runtime determinista de tools de pentest y recolección (nmap, Prowler,
- ScoutSuite, Cloudsplaining, ...). Expone un servidor `kali-mcp` en `:8900` (y el canal de
- artefactos en `:8901`).
-- **playwright-mcp** — navegador real (Chromium headless, imagen oficial de Microsoft) expuesto
- por MCP en `:8931`. Da a Hermes la superficie web (navegación/DOM/interacción) sin reactivar
- ningún toolset nativo. Lo usa la skill `web-pentest`.
-- **ooda-agent** — Hermes (`nousresearch/hermes-agent`) como conductor del bucle OODA. Es cliente
- de ambos MCP (`kali:8900`, `playwright-mcp:8931`) y ejecuta las tools de pentest directamente.
- Mantiene vivo su gateway con `hermes gateway run` (API server OpenAI-compatible en `:8642`,
- **publicado al host** por defecto para pilotarlo desde un asistente externo — ver
- "Pilotar Hermes desde un asistente externo").
+- **kali** — deterministic runtime for pentest and collection tools (nmap, Prowler,
+ ScoutSuite, Cloudsplaining, ...). Exposes a `kali-mcp` server on `:8900` (and the artifacts
+ channel on `:8901`).
+- **playwright-mcp** — real browser (headless Chromium, official Microsoft image) exposed
+ over MCP on `:8931`. Gives Hermes the web surface (navigation/DOM/interaction) without re-enabling
+ any native toolset. The `web-pentest` skill uses it.
+- **ooda-agent** — Hermes (`nousresearch/hermes-agent`) as the OODA loop driver. It is a client
+ of both MCPs (`kali:8900`, `playwright-mcp:8931`) and runs the pentest tools directly.
+ It keeps its gateway alive with `hermes gateway run` (OpenAI-compatible API server on `:8642`,
+ **published to the host** by default so you can pilot it from an external assistant — see
+ "Pilot Hermes from an external assistant").
-No hay servicios `api` ni `ui`: el agente habla directo con los MCP (Kali y navegador).
+There are no `api` or `ui` services: the agent talks directly to the MCPs (Kali and browser).
-## Cómo levantarlo
+## How to bring it up
-**Todas las keys y credenciales van en un fichero `.env`** en la raíz del repo. No se
-versiona (está en `.gitignore`) y es el único sitio donde pones secretos. Empieza por copiar
-la plantilla, que lleva cada variable documentada:
+**All keys and credentials go in a `.env` file** at the repo root. It is not
+versioned (it is in `.gitignore`) and is the only place where you put secrets. Start by copying
+the template, which documents every variable:
```sh
cp .env.example .env
```
-Abre el `.env` y rellena los valores. Como mínimo necesitas las dos obligatorias:
+Open the `.env` and fill in the values. At a minimum you need the two required ones:
-| Variable | Obligatoria | Dónde la pones / cómo la obtienes |
+| Variable | Required | Where to put it / how to get it |
| --- | --- | --- |
-| `OPENROUTER_API_KEY` | **Sí** | Tu API key de OpenRouter (el proveedor del LLM que razona el OODA). Créala en <https://openrouter.ai/keys> y pégala en el `.env`. |
-| `HERMES_API_SERVER_KEY` | **Sí** | Clave del API server de Hermes (mín. 8 chars). Genera una con `openssl rand -hex 32` y pégala en el `.env`. También es el Bearer para pilotar Hermes por HTTP. |
+| `OPENROUTER_API_KEY` | **Yes** | Your OpenRouter API key (the provider of the LLM that reasons the OODA). Create it at <https://openrouter.ai/keys> and paste it into the `.env`. |
+| `HERMES_API_SERVER_KEY` | **Yes** | Key for Hermes' API server (min. 8 chars). Generate one with `openssl rand -hex 32` and paste it into the `.env`. It is also the Bearer to pilot Hermes over HTTP. |
-Las credenciales de **AWS son OPCIONALES**: solo hacen falta si vas a usar las tools de
-recolección cloud (Prowler / ScoutSuite / Cloudsplaining). Si no auditas AWS, deja estas
-variables vacías en el `.env`:
+The **AWS credentials are OPTIONAL**: they are only needed if you are going to use the cloud
+collection tools (Prowler / ScoutSuite / Cloudsplaining). If you are not auditing AWS, leave these
+variables empty in the `.env`:
-| Variable | Obligatoria | Dónde la pones / cómo la obtienes |
+| Variable | Required | Where to put it / how to get it |
| --- | --- | --- |
-| `AWS_ACCESS_KEY_ID` | No | Credencial **read-only** de la cuenta que estés AUTORIZADO a auditar. En el `.env`. |
-| `AWS_SECRET_ACCESS_KEY` | No | Secret de esa misma credencial. En el `.env`. |
-| `AWS_SESSION_TOKEN` | No | Solo para credenciales temporales (STS). En el `.env`. |
-| `AWS_REGION` | No | Región por defecto (p. ej. `us-east-1`). En el `.env`. |
+| `AWS_ACCESS_KEY_ID` | No | **Read-only** credential for the account you are AUTHORIZED to audit. In the `.env`. |
+| `AWS_SECRET_ACCESS_KEY` | No | Secret for that same credential. In the `.env`. |
+| `AWS_SESSION_TOKEN` | No | Only for temporary credentials (STS). In the `.env`. |
+| `AWS_REGION` | No | Default region (e.g. `us-east-1`). In the `.env`. |
-El resto de variables del `.env.example` (puertos del host, token de artefactos, acotado de
-Prowler) son opcionales y traen valores por defecto; déjalas vacías salvo que necesites
-cambiarlas. Cuando tengas el `.env` listo:
+The rest of the `.env.example` variables (host ports, artifacts token, Prowler
+scoping) are optional and come with defaults; leave them empty unless you need to
+change them. Once your `.env` is ready:
```sh
docker compose up -d --build
```
-## Cómo conducir el pentest (TUI interactivo)
+## How to drive the pentest (interactive TUI)
```sh
docker compose up -d --build
docker compose exec -it ooda-agent hermes chat
```
-`hermes chat` abre el TUI/REPL interactivo del agente. Desde ahí le pides un pentest
-en lenguaje natural; Hermes conduce el OODA y ejecuta las herramientas en Kali
-**directamente** con la tool `kali_run` (hablando con `kali:8900`).
+`hermes chat` opens the agent's interactive TUI/REPL. From there you ask it for a pentest
+in natural language; Hermes drives the OODA and runs the tools on Kali
+**directly** with the `kali_run` tool (talking to `kali:8900`).
-`hermes gateway run` (el comando del contenedor) mantiene el contenedor vivo y arranca
-el API server de Hermes en `:8642`. Ese API server es una vía **programática alternativa**
-(OpenAI-compatible) y está **publicado al host** por defecto, para pilotar Hermes desde un
-asistente externo sin entrar al TUI (ver la sección siguiente).
+`hermes gateway run` (the container's command) keeps the container alive and starts
+Hermes' API server on `:8642`. That API server is an **alternative programmatic** path
+(OpenAI-compatible) and is **published to the host** by default, to pilot Hermes from an
+external assistant without entering the TUI (see the next section).
-## Pilotar Hermes desde un asistente externo (Kiro / Claude)
+## Pilot Hermes from an external assistant (Kiro / Claude)
-A veces no quieres entrar al TUI `hermes chat`: quieres que un asistente (Kiro, Claude, un
-script de CI) **dispare y observe** un pentest por HTTP. Hermes ya expone un API server
-**OpenAI-compatible** (habilitado en el perfil, `agent-ooda/profile/config.yaml` →
-`platforms.api_server`); lo único que hace falta es alcanzarlo.
+Sometimes you don't want to enter the `hermes chat` TUI: you want an assistant (Kiro, Claude, a
+CI script) to **trigger and observe** a pentest over HTTP. Hermes already exposes an
+**OpenAI-compatible** API server (enabled in the profile, `agent-ooda/profile/config.yaml` →
+`platforms.api_server`); all you need is to reach it.
-**Rol del asistente externo: disparador y observador, no cerebro.** Quien razona y ejecuta el
-pentest es Hermes (conducido por el modelo `mistralai/mistral-large-4-0`, elegido a propósito
-porque Claude rechaza el encuadre ofensivo del pentest autorizado). El asistente solo manda el
-prompt del engagement y lee los eventos; **no** debe intentar "pensar" el pentest ni reinterpretar
-las tools de Kali.
+**Role of the external assistant: trigger and observer, not brain.** The one that reasons and runs the
+pentest is Hermes (driven by the `mistralai/mistral-large-4-0` model, chosen on purpose
+because Claude rejects the offensive framing of authorized pentesting). The assistant only sends the
+engagement prompt and reads the events; it must **not** try to "think" the pentest or reinterpret
+the Kali tools.
-Autenticación: todas las llamadas van con `Authorization: Bearer <HERMES_API_SERVER_KEY>`
-(la misma key del `.env`).
+Authentication: all calls go with `Authorization: Bearer <HERMES_API_SERVER_KEY>`
+(the same key from the `.env`).
-### Dos modos de acceso
+### Two access modes
-**Modo A — puerto publicado (recomendado).** El compose publica `:8642` al host (configurable
-con `HERMES_API_HOST_PORT`, default `8642`). El asistente llama a `http://localhost:8642`
-directamente:
+**Mode A — published port (recommended).** The compose publishes `:8642` to the host (configurable
+with `HERMES_API_HOST_PORT`, default `8642`). The assistant calls `http://localhost:8642`
+directly:
```sh
export KEY=$(grep '^HERMES_API_SERVER_KEY=' .env | cut -d= -f2)
-# ¿vivo?
+# alive?
curl -s http://localhost:8642/health # -> {"status":"ok"}
```
-**Modo B — sin abrir puerto (`exec`).** Si prefieres no publicar el `:8642` al host, borra el
-bloque `ports:` del servicio `ooda-agent` y habla con la API desde dentro del contenedor:
+**Mode B — without opening a port (`exec`).** If you prefer not to publish `:8642` to the host, delete the
+`ports:` block of the `ooda-agent` service and talk to the API from inside the container:
```sh
docker compose exec ooda-agent \
curl -s http://localhost:8642/health
-# Si lanzaste el stack con '-p <proyecto>', pásalo también aquí:
+# If you launched the stack with '-p <project>', pass it here too:
# docker compose -p pentest-ana exec ooda-agent curl -s http://localhost:8642/health
```
-Todos los `curl` de abajo son iguales en ambos modos; solo cambia el prefijo (host directo vs.
+All the `curl` calls below are the same in both modes; only the prefix changes (direct host vs.
`docker compose exec ooda-agent`).
-### Flujo principal (API de runs)
+### Main flow (runs API)
-El patrón `runs` está pensado justo para esto: lanzar un trabajo largo y suscribirse a su
-progreso en vez de gestionar el streaming a mano.
+The `runs` pattern is designed precisely for this: launch a long job and subscribe to its
+progress instead of handling the streaming by hand.
```sh
-# 1) Lanzar el pentest. El cuerpo lleva el engagement en lenguaje natural en el campo "input".
-# Responde {"run_id":"run_abc123","status":"started"}.
+# 1) Launch the pentest. The body carries the engagement in natural language in the "input" field.
+# It responds {"run_id":"run_abc123","status":"started"}.
curl -s http://localhost:8642/v1/runs \
-H "Authorization: Bearer $KEY" \
-H "Content-Type: application/json" \
-d '{
- "input": "Pentest autorizado contra 10.0.0.0/24 (scope: solo esa /24). Enumera, identifica servicios expuestos y prueba vías de acceso. Reporta hallazgos confirmados con evidencia."
+ "input": "Authorized pentest against 10.0.0.0/24 (scope: that /24 only). Enumerate, identify exposed services and test access paths. Report confirmed findings with evidence."
}'
-# 2) Observar el progreso: stream SSE de eventos de ciclo de vida (OODA, tool.start/complete, ...).
+# 2) Observe progress: SSE stream of lifecycle events (OODA, tool.start/complete, ...).
curl -N http://localhost:8642/v1/runs/run_abc123/events \
-H "Authorization: Bearer $KEY"
-# 2b) O consultar el estado puntual (status: started | running | completed | failed | cancelled).
+# 2b) Or query the point-in-time status (status: started | running | completed | failed | cancelled).
curl -s http://localhost:8642/v1/runs/run_abc123 \
-H "Authorization: Bearer $KEY"
-# 3) (Opcional) Inyectar guía a mitad de run. Solo mientras status=running; se entrega en el
-# siguiente tool boundary. Si el run ya no acepta steer, responde 409.
+# 3) (Optional) Inject guidance mid-run. Only while status=running; it is delivered at the
+# next tool boundary. If the run no longer accepts steer, it responds 409.
curl -s http://localhost:8642/v1/runs/run_abc123/steer \
-H "Authorization: Bearer $KEY" \
-H "Content-Type: application/json" \
- -d '{"input": "Céntrate primero en el puerto 445."}'
+ -d '{"input": "Focus on port 445 first."}'
-# 4) (Opcional) Interrumpir el run.
+# 4) (Optional) Interrupt the run.
curl -s http://localhost:8642/v1/runs/run_abc123/stop \
-H "Authorization: Bearer $KEY"
```
-Campos del cuerpo de `POST /v1/runs` (verificado contra la doc oficial de Hermes): `input`
-(string, obligatorio) y, opcionales, `session_id`, `instructions`, `conversation_history`,
-`previous_response_id`. Para reintentos seguros puedes mandar la cabecera `Idempotency-Key`.
+Fields of the `POST /v1/runs` body (verified against Hermes' official docs): `input`
+(string, required) and, optional, `session_id`, `instructions`, `conversation_history`,
+`previous_response_id`. For safe retries you can send the `Idempotency-Key` header.
-### Alternativa: `POST /v1/chat/completions` (OpenAI-compatible)
+### Alternative: `POST /v1/chat/completions` (OpenAI-compatible)
-Si tu cliente ya habla el formato OpenAI, puedes usar el endpoint clásico (streaming por SSE)
-en vez de la API de runs:
+If your client already speaks the OpenAI format, you can use the classic endpoint (SSE streaming)
+instead of the runs API:
```sh
curl -s http://localhost:8642/v1/chat/completions \
@@ -180,193 +180,193 @@ curl -s http://localhost:8642/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "hermes-agent",
- "messages": [{"role": "user", "content": "Pentest autorizado contra 10.0.0.0/24 (scope: solo esa /24). Reporta hallazgos confirmados con evidencia."}]
+ "messages": [{"role": "user", "content": "Authorized pentest against 10.0.0.0/24 (scope: that /24 only). Report confirmed findings with evidence."}]
}'
```
-### Instrucciones para el asistente
+### Instructions for the assistant
-Patrón que un Kiro/Claude debe seguir para pilotar un engagement:
+Pattern a Kiro/Claude should follow to pilot an engagement:
-1. `GET /health` para confirmar que el stack está vivo (`{"status":"ok"}`).
-2. `POST /v1/runs` con el engagement en `input` (target y **scope** explícitos, en lenguaje
- natural). Guarda el `run_id` de la respuesta.
-3. Seguir el run hasta estado terminal: leer el SSE de `GET /v1/runs/{run_id}/events`, o hacer
- polling de `GET /v1/runs/{run_id}` hasta `completed` / `failed` / `cancelled`.
-4. Resumir el resultado al usuario (hallazgos, estado final). Para el entregable formal, el propio
- Hermes genera el informe Markdown vía la skill `pentest-report` y lo deja como artefacto en el
- canal de datos (`:8901`).
+1. `GET /health` to confirm the stack is alive (`{"status":"ok"}`).
+2. `POST /v1/runs` with the engagement in `input` (explicit target and **scope**, in natural
+ language). Save the `run_id` from the response.
+3. Follow the run to a terminal state: read the SSE from `GET /v1/runs/{run_id}/events`, or
+ poll `GET /v1/runs/{run_id}` until `completed` / `failed` / `cancelled`.
+4. Summarize the result to the user (findings, final status). For the formal deliverable, Hermes
+ itself generates the Markdown report via the `pentest-report` skill and leaves it as an artifact in the
+ data channel (`:8901`).
-El asistente **no decide** las tools ni reinterpreta las salidas de Kali: eso es trabajo de Hermes.
-Su papel es disparar, observar y resumir.
+The assistant **does not decide** the tools nor reinterpret the Kali output: that is Hermes' job.
+Its role is to trigger, observe and summarize.
-### Nota de seguridad
+### Security note
-Publicar el `:8642` al host **baja la barrera de red** que el stack tenía a propósito (antes el API
-server solo era alcanzable por la red interna de docker). A partir de ahí, la única protección del
-endpoint es el Bearer `HERMES_API_SERVER_KEY`: úsalo **solo en máquina/entorno controlado**, y si no
-necesitas el acceso externo usa el Modo B (`exec`, sin abrir puerto). Esto es coherente con la
-⚠️ Advertencia de más abajo: no hay scope-guard ni gate de autorización, la responsabilidad del
-alcance recae enteramente en el operador.
+Publishing `:8642` to the host **lowers the network barrier** the stack had on purpose (before, the API
+server was only reachable over the internal docker network). From there on, the endpoint's only protection
+is the `HERMES_API_SERVER_KEY` Bearer: use it **only on a controlled machine/environment**, and if you don't
+need external access use Mode B (`exec`, without opening a port). This is consistent with the
+⚠️ Warning further down: there is no scope-guard or authorization gate, responsibility for the
+scope rests entirely with the operator.
-## Arrancar limpio entre ejercicios
+## Start clean between exercises
-Para que cada pentest empiece sin recordar nada del anterior (historial de conversación
-y memoria de Hermes), arranca el stack desde cero. La forma más limpia y determinista:
+So that each pentest starts without remembering anything from the previous one (conversation history
+and Hermes' memory), bring the stack up from scratch. The cleanest and most deterministic way:
```sh
-docker compose down -v # para los contenedores y BORRA el volumen de estado de Hermes
-docker compose up -d # arranca con estado nuevo (el perfil se regenera desde agent-ooda/)
+docker compose down -v # stops the containers and DELETES Hermes' state volume
+docker compose up -d # starts with fresh state (the profile regenerates from agent-ooda/)
```
-En una sola línea:
+In a single line:
```sh
docker compose down -v && docker compose up -d
```
-### Qué se borra y qué se conserva
+### What is deleted and what is kept
-El flag `-v` borra el volumen con nombre `hermes-data` (`/opt/data`), donde vive el estado
-de Hermes: el perfil y su SQLite (`state.db`). Ahí está el historial/memoria que quieres
-olvidar entre ejercicios. No pierdes configuración: el perfil (`config.yaml`, `SOUL.md`,
-`skills`) **se regenera** en cada arranque copiando la plantilla declarativa de `agent-ooda/`.
+The `-v` flag deletes the named volume `hermes-data` (`/opt/data`), where Hermes' state
+lives: the profile and its SQLite (`state.db`). That is where the history/memory you want to
+forget between exercises resides. You don't lose configuration: the profile (`config.yaml`, `SOUL.md`,
+`skills`) **regenerates** on each startup by copying the declarative template from `agent-ooda/`.
-| Qué | ¿Sobrevive a `down -v` + `up`? |
+| What | Does it survive `down -v` + `up`? |
|---|---|
-| Herramientas horneadas en la imagen por el `Dockerfile` de Kali | **Sí** |
-| Paquetes que Hermes instaló en caliente durante un pentest | **No** (capa efímera del contenedor `kali`) |
-| Estado / memoria / historial de Hermes (`hermes-data`) | **No** (es justo lo que borra `-v`) |
+| Tools baked into the image by the Kali `Dockerfile` | **Yes** |
+| Packages Hermes installed on the fly during a pentest | **No** (ephemeral layer of the `kali` container) |
+| Hermes' state / memory / history (`hermes-data`) | **No** (exactly what `-v` deletes) |
-Notas:
+Notes:
-- El contenedor `kali` **no tiene volumen**: todo lo que se instale en caliente (p. ej. un
- `apt install` que haga Hermes a mitad de un engagement) vive en la capa efímera del
- contenedor y desaparece en el siguiente `down`/`up`. Si quieres que una herramienta esté
- siempre disponible sin reinstalarla cada sesión, **añádela al `Dockerfile`** de Kali para
- que quede horneada en la imagen.
-- Para perder solo los paquetes de la Kali no hace falta `-v`: un `docker compose down`
- normal ya recrea el contenedor `kali` desde la imagen. El `-v` añade el borrado del
- estado de Hermes.
-- `docker compose restart` **no** recrea los contenedores, así que conserva tanto el estado
- de Hermes como lo instalado en caliente en la Kali: no sirve para empezar limpio.
+- The `kali` container **has no volume**: anything installed on the fly (e.g. an
+ `apt install` Hermes does mid-engagement) lives in the container's ephemeral layer and
+ disappears on the next `down`/`up`. If you want a tool to always be
+ available without reinstalling it every session, **add it to the Kali `Dockerfile`** so
+ it is baked into the image.
+- To lose only the Kali packages you don't need `-v`: a plain `docker compose down`
+ already recreates the `kali` container from the image. The `-v` adds the deletion of Hermes'
+ state.
+- `docker compose restart` does **not** recreate the containers, so it keeps both Hermes'
+ state and whatever was installed on the fly in the Kali: it is not useful for starting clean.
-### Alternativa: sesión nueva sin borrar el volumen
+### Alternative: new session without deleting the volume
-Si prefieres conservar el histórico pero trabajar en una conversación limpia, abre una
-sesión con nombre nuevo en lugar de reutilizar la de por defecto:
+If you prefer to keep the history but work in a clean conversation, open a
+session with a new name instead of reusing the default one:
```sh
-docker compose exec -it ooda-agent hermes chat --continue <nombre-sesion-nueva>
+docker compose exec -it ooda-agent hermes chat --continue <new-session-name>
```
-Esto no borra la memoria previa; solo evita arrastrarla a la conversación nueva.
+This does not delete the previous memory; it just avoids dragging it into the new conversation.
-## El bucle OODA: diseño y comparativa
+## The OODA loop: design and comparison
-El "bucle OODA" de este proyecto **no es un motor que corra solo**: no hay código que itere ni un
-scheduler. El OODA es **comportamiento inducido por prompt**, repartido en tres piezas del perfil
+This project's "OODA loop" **is not an engine that runs on its own**: there is no code that iterates nor a
+scheduler. The OODA is **prompt-induced behavior**, split across three pieces of the profile
(`agent-ooda/`):
-- `profile/SOUL.md` — identidad del conductor OODA (primer bloque del system prompt).
-- `skills/pentest-ooda/SKILL.md` — el procedimiento del bucle (Observe → Orient → Decide → Act),
- reglas de parada y delegación.
-- `skills/ooda-report-handoff/SKILL.md` — formato del resumen al cerrar un ciclo.
-
-Skills de dominio (activación condicional, solo cargan cuando el contexto encaja):
-
-- `skills/l3-recon-pivot/` — reconocimiento de red en capa 3 tras NAT (red/infra).
-- `skills/aws-pacu-privesc/` — pentest ofensivo AWS con Pacu (cloud/IAM), mapeado a ATT&CK Cloud.
-- `skills/web-pentest/` — pentest web por fases (recon → análisis → explotación basada en prueba),
- combinando `kali_run` (nmap/whatweb/nuclei/ffuf/sqlmap) con un navegador real por el MCP
- `playwright`. Flanco web.
-- `skills/attack-navigation/` — MITRE ATT&CK como **idioma del Orient**: orientar por tácticas y
- etiquetar hallazgos con su `technique_id`. Transversal.
-- `skills/pentest-report/` — genera el informe formal (Markdown) al cerrar el engagement, leyendo el
- store de hallazgos. Cierre del bucle.
-
-El disparador es el mensaje del operador: Hermes entra en el rol OODA cuando le entregas un
-engagement, avanza autónomo mientras haya **progreso real hacia el objetivo**, y para (handoff) al
-agotar la ruta, acumular 3 pasos sin progreso, o confirmar que el objetivo es inalcanzable.
-
-**ATT&CK como idioma del bucle:** el bucle de control sigue siendo OODA; ATT&CK no lo sustituye. Se
-usa como lente en el Orient (situar la táctica actual y la siguiente plausible — alimenta el "Decide
-con alternativas") y como taxonomía para etiquetar cada hallazgo (`technique_id`), lo que habilita
-informes mapeados a ATT&CK. El detalle general vive en `attack-navigation` y el de Cloud en
+- `profile/SOUL.md` — identity of the OODA driver (first block of the system prompt).
+- `skills/pentest-ooda/SKILL.md` — the loop procedure (Observe → Orient → Decide → Act),
+ stop rules and delegation.
+- `skills/ooda-report-handoff/SKILL.md` — format of the summary when closing a cycle.
+
+Domain skills (conditional activation, they only load when the context fits):
+
+- `skills/l3-recon-pivot/` — layer-3 network reconnaissance behind NAT (network/infra).
+- `skills/aws-pacu-privesc/` — offensive AWS pentest with Pacu (cloud/IAM), mapped to ATT&CK Cloud.
+- `skills/web-pentest/` — phased web pentest (recon → analysis → proof-based exploitation),
+ combining `kali_run` (nmap/whatweb/nuclei/ffuf/sqlmap) with a real browser via the `playwright`
+ MCP. Web flank.
+- `skills/attack-navigation/` — MITRE ATT&CK as the **Orient language**: orient by tactics and
+ tag findings with their `technique_id`. Cross-cutting.
+- `skills/pentest-report/` — generates the formal report (Markdown) when closing the engagement, reading the
+ findings store. Loop closure.
+
+The trigger is the operator's message: Hermes enters the OODA role when you hand it an
+engagement, advances autonomously as long as there is **real progress toward the goal**, and stops (handoff) when
+the path is exhausted, after 3 steps without progress, or when it confirms the goal is unreachable.
+
+**ATT&CK as the loop's language:** the control loop is still OODA; ATT&CK does not replace it. It is
+used as a lens in Orient (place the current tactic and the next plausible one — it feeds the "Decide
+with alternatives") and as a taxonomy to tag each finding (`technique_id`), which enables
+reports mapped to ATT&CK. The general detail lives in `attack-navigation` and the Cloud one in
`aws-pacu-privesc`.
-### Comparativa con OODA públicos (qué aprendimos)
+### Comparison with public OODAs (what we learned)
-Se compararon dos skills/patrones OODA públicos con el nuestro:
+Two public OODA skills/patterns were compared with ours:
-- **`neurofoo/agent-skills` (OODA como framework de análisis).** OODA de *pensamiento*: su "Act"
- produce un plan, no ejecuta. Útil para deliberar; es un informe estructurado, no un bucle de
- control. Idea tomada: **Decide con alternativas explícitas** (sopesar 2-3 vías antes de elegir una)
- — ya destilada en `pentest-ooda` y `SOUL.md`.
-- **`jomadu/rooda` (OODA como bucle de ejecución).** Lo más cercano a lo nuestro: itera O→O→D→A con
- **contexto fresco cada vuelta** y `max-iterations`. Idea tomada: **contexto fresco** — en Hermes se
- implementa delegando ramas largas a subagentes (`delegate_task`), que arrancan con contexto limpio
- y solo devuelven su resumen. Ya destilada en `pentest-ooda` (sección de delegación) y requirió
- reactivar `delegation` en `config.yaml`.
+- **`neurofoo/agent-skills` (OODA as an analysis framework).** A *thinking* OODA: its "Act"
+ produces a plan, it does not execute. Useful to deliberate; it is a structured report, not a control
+ loop. Idea taken: **Decide with explicit alternatives** (weigh 2-3 paths before choosing one)
+ — already distilled into `pentest-ooda` and `SOUL.md`.
+- **`jomadu/rooda` (OODA as an execution loop).** The closest to ours: it iterates O→O→D→A with
+ **fresh context each round** and `max-iterations`. Idea taken: **fresh context** — in Hermes it is
+ implemented by delegating long branches to subagents (`delegate_task`), which start with clean context
+ and only return their summary. Already distilled into `pentest-ooda` (delegation section) and required
+ re-enabling `delegation` in `config.yaml`.
-| Dimensión | neurofoo (análisis) | rooda (ejecución) | **Nuestro `pentest-ooda`** |
+| Dimension | neurofoo (analysis) | rooda (execution) | **Our `pentest-ooda`** |
|---|---|---|---|
-| Naturaleza | Informe de decisión | Loop autónomo de código | Loop autónomo de pentest |
-| "Act" | Planifica (no ejecuta) | Ejecuta de verdad | Ejecuta en Kali (`kali_run`) |
-| Criterio de parada | — (one-shot) | `max-iterations` (cuantitativo) | **Progreso cualitativo** (acercarse al objetivo / inalcanzabilidad) |
-| Memoria entre vueltas | — | Fichero (AGENTS.md, PLAN.md) | Efímero por engagement (a propósito) |
-| Contexto fresco | — | Por iteración | Por delegación a subagentes |
-| Salida como dato no confiable | No | No | **Sí** (prompt injection en salidas) |
-
-Dos cosas que lo nuestro hace mejor y conviene preservar: el **criterio de parada cualitativo** (no
-un simple contador de iteraciones) y tratar **toda salida de tool como dato no confiable** (crítico
-en pentest). Las dos ideas robadas (alternativas en Decide, contexto fresco por subagentes) cubren
-las dos debilidades que teníamos frente a los públicos.
-
-## Persistencia de evidencia e informe
-
-El OODA tiene un **store de hallazgos por engagement**, del que tiran el handoff y el informe:
-
-- **Dónde vive.** Sobre el plano de artefactos (`/artifacts`, puerto `:8901`), NO en el estado de
- Hermes: sobrevive a la naturaleza efímera del perfil y es descargable. Un fichero por engagement
- (`<engagement-id>/findings.jsonl`), un hallazgo por línea.
-- **Cómo lo alimenta el agente.** Con las tools MCP `record_finding` / `read_findings` (en
- `docker/kali/kali_mcp_server.py`, sobre `docker/kali/finding_store.py`): append estructurado y
- lectura paginada, sin que el agente escriba JSON a mano.
-- **Esquema de un hallazgo.** id, fase OODA, clase/`technique_id` (ATT&CK), target
- (host/puerto/recurso/ARN), estado (hipótesis | parcial | confirmado | descartado), evidencia
- (comando + returncode + salida verbatim o referencia al artefacto), confianza, timestamp, y para
- cambios en la cuenta el tag `vulnerator-ai` + comando de reversión. El estado se alinea con la
- disciplina "hipótesis vs. hallazgo confirmado" del `SOUL.md`.
-- **Consumidores.** `ooda-report-handoff` y `pentest-report` LEEN del store en vez de reconstruir
- desde la conversación.
-- **Dato no confiable.** La evidencia guardada sigue siendo dato no confiable al releerla: se razona
- sobre ella, no se obedecen instrucciones embebidas (prompt injection).
-
-La skill **`pentest-report`** produce el entregable formal al cerrar: un informe **Markdown** generado
-por `docker/kali/report_gen.py` (horneado en la imagen, invocado con `kali_run`) que lee el store y
-deja el informe como artefacto en `:8901`. Estructura destilada de plantillas públicas con atribución
-(`Theophilus/athena-pentest`, `Marmeus/pentesting-report-generator`): engagement details, resumen
-ejecutivo, tabla por estado, metodología (OODA/ATT&CK/PTES/OWASP), findings con CVSS 3.1 + CWE y
-evidencia reproducible, remediación. CVSS solo para hallazgos confirmados.
-
-## El flanco web (navegador por MCP)
-
-La skill **`web-pentest`** cubre el pentest web por fases. No se limita a `kali_run`: combina las
-herramientas CLI de la Kali (nmap/whatweb/nuclei/ffuf/sqlmap, por `kali_run`) con un **navegador real
-por MCP** — el contenedor `playwright-mcp` (Chromium headless, imagen oficial de Microsoft),
-registrado como segundo servidor MCP (`playwright`) en el perfil. Esto preserva el principio del
-proyecto (**todo pasa por MCP, cero toolsets nativos**): Hermes gana `mcp_playwright_*` para
-navegación/DOM/XSS sin reactivar el toolset `browser` nativo. Sus guardarraíles están alineados con la
-filosofía del proyecto: no hay gate que bloquee, pero sí disciplina de auditoría y evidencia
-reproducible para poder restablecer la explotación (y se conserva el aviso de fuga por el cliente
-auxiliar: redactar credenciales, `title_generation` off en engagements sensibles).
-
-## ⚠️ Advertencia (importante)
-
-Este producto **no tiene guardarraíles**: **no hay scope-guard, no hay consentimiento,
-no hay audit, no hay gate de autorización**. Hermes ejecuta directamente lo que decida
-contra el objetivo, sin portero que valide el alcance.
-
-Esto es **intencional**. Úsalo **solo contra targets explícitamente autorizados** y en
-un **entorno controlado**. Toda la responsabilidad del alcance recae en el operador.
+| Nature | Decision report | Autonomous code loop | Autonomous pentest loop |
+| "Act" | Plans (does not execute) | Actually executes | Executes on Kali (`kali_run`) |
+| Stop criterion | — (one-shot) | `max-iterations` (quantitative) | **Qualitative progress** (getting closer to the goal / unreachability) |
+| Memory between rounds | — | File (AGENTS.md, PLAN.md) | Ephemeral per engagement (on purpose) |
+| Fresh context | — | Per iteration | Per delegation to subagents |
+| Output as untrusted data | No | No | **Yes** (prompt injection in outputs) |
+
+Two things ours does better and worth preserving: the **qualitative stop criterion** (not
+a simple iteration counter) and treating **all tool output as untrusted data** (critical
+in pentesting). The two borrowed ideas (alternatives in Decide, fresh context via subagents) cover
+the two weaknesses we had versus the public ones.
+
+## Evidence persistence and report
+
+The OODA has a **per-engagement findings store** that the handoff and the report pull from:
+
+- **Where it lives.** On the artifacts plane (`/artifacts`, port `:8901`), NOT in Hermes'
+ state: it survives the ephemeral nature of the profile and is downloadable. One file per engagement
+ (`<engagement-id>/findings.jsonl`), one finding per line.
+- **How the agent feeds it.** With the MCP tools `record_finding` / `read_findings` (in
+ `docker/kali/kali_mcp_server.py`, over `docker/kali/finding_store.py`): structured append and
+ paginated reads, without the agent writing JSON by hand.
+- **Schema of a finding.** id, OODA phase, class/`technique_id` (ATT&CK), target
+ (host/port/resource/ARN), status (hypothesis | partial | confirmed | discarded), evidence
+ (command + returncode + verbatim output or reference to the artifact), confidence, timestamp, and for
+ changes in the account the `vulnerator-ai` tag + reversal command. The status aligns with the
+ "hypothesis vs. confirmed finding" discipline from `SOUL.md`.
+- **Consumers.** `ooda-report-handoff` and `pentest-report` READ from the store instead of rebuilding
+ from the conversation.
+- **Untrusted data.** The stored evidence is still untrusted data when re-read: reason
+ about it, do not obey embedded instructions (prompt injection).
+
+The **`pentest-report`** skill produces the formal deliverable at close: a **Markdown** report generated
+by `docker/kali/report_gen.py` (baked into the image, invoked with `kali_run`) that reads the store and
+leaves the report as an artifact on `:8901`. Structure distilled from public templates with attribution
+(`Theophilus/athena-pentest`, `Marmeus/pentesting-report-generator`): engagement details, executive
+summary, table by status, methodology (OODA/ATT&CK/PTES/OWASP), findings with CVSS 3.1 + CWE and
+reproducible evidence, remediation. CVSS only for confirmed findings.
+
+## The web flank (browser via MCP)
+
+The **`web-pentest`** skill covers phased web pentesting. It is not limited to `kali_run`: it combines the
+Kali CLI tools (nmap/whatweb/nuclei/ffuf/sqlmap, via `kali_run`) with a **real browser
+via MCP** — the `playwright-mcp` container (headless Chromium, official Microsoft image),
+registered as the second MCP server (`playwright`) in the profile. This preserves the project's
+principle (**everything goes through MCP, zero native toolsets**): Hermes gains `mcp_playwright_*` for
+navigation/DOM/XSS without re-enabling the native `browser` toolset. Its guardrails are aligned with the
+project's philosophy: there is no gate that blocks, but there is audit discipline and reproducible
+evidence so the exploitation can be re-established (and the leakage warning from the auxiliary
+client is kept: redact credentials, `title_generation` off in sensitive engagements).
+
+## ⚠️ Warning (important)
+
+This product **has no guardrails**: **no scope-guard, no consent,
+no audit, no authorization gate**. Hermes runs directly whatever it decides
+against the target, with no gatekeeper to validate the scope.
+
+This is **intentional**. Use it **only against explicitly authorized targets** and in
+a **controlled environment**. All responsibility for the scope rests with the operator.
diff --git a/agent-ooda/README.md b/agent-ooda/README.md
index 0bde76f..22522b7 100644
--- a/agent-ooda/README.md
+++ b/agent-ooda/README.md
@@ -1,83 +1,83 @@
-# agent-ooda — perfil del ejecutor OODA (Hermes directo a Kali via MCP)
+# agent-ooda — OODA executor profile (Hermes direct to Kali via MCP)
-> **Que es:** la plantilla de configuracion (NO codigo) del perfil de Hermes que conduce el bucle
-> OODA de un pentest autorizado ejecutando las herramientas **DIRECTAMENTE** sobre una Kali a traves
-> de su servidor MCP (contenedor `kali`). Hoy el motor es **Hermes** (Nous Research, MIT); el motor
-> es un **driver reemplazable** detras del MCP de la Kali.
+> **What it is:** the configuration template (NOT code) of the Hermes profile that drives the
+> OODA loop of an authorized pentest by running the tools **DIRECTLY** on a Kali through
+> its MCP server (container `kali`). Today the engine is **Hermes** (Nous Research, MIT); the engine
+> is a **replaceable driver** behind the Kali's MCP.
-## El principio que ordena todo esto (leelo antes de tocar nada)
+## The principle that governs all of this (read it before touching anything)
-Hermes es el **cerebro** del bucle OODA y ejecuta las tools de pentest **directo** por MCP: la Kali
-(`http://kali:8900`, tools CLI) y el navegador (`http://playwright-mcp:8931`, parte web). No hay core,
-API ni UI de por medio: no hay scope-guard, ni consentimiento, ni audit, ni gate de autorizacion.
-La responsabilidad del alcance recae ENTERAMENTE en el operador que levanta el entorno contra targets
-explicitamente autorizados (ver la ADVERTENCIA del `docker-compose.yml` de la raiz).
+Hermes is the **brain** of the OODA loop and runs the pentest tools **directly** over MCP: the Kali
+(`http://kali:8900`, CLI tools) and the browser (`http://playwright-mcp:8931`, web part). There is no core,
+API or UI in between: no scope-guard, no consent, no audit, no authorization gate.
+Responsibility for the scope rests ENTIRELY with the operator who brings up the environment against
+explicitly authorized targets (see the WARNING in the root `docker-compose.yml`).
-Las tools efectivas que ve el modelo son `mcp_kali_<tool>` (el server se llama `kali`):
+The effective tools the model sees are `mcp_kali_<tool>` (the server is named `kali`):
-| Tool efectiva | Fase OODA | Que hace |
+| Effective tool | OODA phase | What it does |
|---|---|---|
-| `mcp_kali_server_info` | Observe | Inventario del servidor kali-mcp (que tools hay). |
-| `mcp_kali_prowler_scan` | Observe | Recoleccion cloud (Prowler, AWS). |
-| `mcp_kali_iam_enum` | Observe | Enumeracion IAM read-only (AWS). |
-| `mcp_kali_iam_simulate` | Orient | Simula privesc IAM efectivo (AWS, read-only). |
-| `mcp_kali_kali_run` | Act | Shell CRUDA **bloqueante**: un comando, una llamada, resultado terminal. |
-| `mcp_kali_kali_exec` | Act | Shell ASINCRONA: arranca el comando y devuelve un id. |
-| `mcp_kali_get_scan_status` | Orient | Estado de un comando asincrono. |
-| `mcp_kali_read_tool_logs` | Orient | Salida parcial de un comando asincrono. |
-| `mcp_kali_record_finding` | Orient/Act | Registra un hallazgo estructurado en el store durable del engagement. |
-| `mcp_kali_read_findings` | Observe/Orient | Relee los hallazgos registrados (paginado); de aqui tiran el handoff y el informe. |
+| `mcp_kali_server_info` | Observe | Inventory of the kali-mcp server (which tools exist). |
+| `mcp_kali_prowler_scan` | Observe | Cloud collection (Prowler, AWS). |
+| `mcp_kali_iam_enum` | Observe | Read-only IAM enumeration (AWS). |
+| `mcp_kali_iam_simulate` | Orient | Simulates effective IAM privesc (AWS, read-only). |
+| `mcp_kali_kali_run` | Act | RAW **blocking** shell: one command, one call, terminal result. |
+| `mcp_kali_kali_exec` | Act | ASYNC shell: starts the command and returns an id. |
+| `mcp_kali_get_scan_status` | Orient | Status of an async command. |
+| `mcp_kali_read_tool_logs` | Orient | Partial output of an async command. |
+| `mcp_kali_record_finding` | Orient/Act | Records a structured finding in the engagement's durable store. |
+| `mcp_kali_read_findings` | Observe/Orient | Re-reads the recorded findings (paginated); the handoff and the report pull from here. |
-**La via de accion principal es `kali_run`** (bloqueante, una llamada). Para comandos largos se usa
+**The main action path is `kali_run`** (blocking, one call). For long commands use
`kali_exec` + `get_scan_status`/`read_tool_logs`.
-Ademas del MCP de la Kali, el perfil registra un **segundo MCP para navegador**
-(`playwright`, contenedor `playwright-mcp`), que expone tools `mcp_playwright_*` para la parte
-web (navegacion real, DOM, interaccion). Sigue el mismo principio: todo pasa por MCP, cero
-toolsets nativos. Lo usa la skill `web-pentest`.
+Besides the Kali's MCP, the profile registers a **second MCP for the browser**
+(`playwright`, container `playwright-mcp`), which exposes `mcp_playwright_*` tools for the
+web part (real navigation, DOM, interaction). It follows the same principle: everything goes through MCP, zero
+native toolsets. The `web-pentest` skill uses it.
-## Por que `agent-ooda/` y no `hermes/`
+## Why `agent-ooda/` and not `hermes/`
-Porque el motor es intercambiable. Esta carpeta modela una **distribucion de perfil** del
-orquestador; cambiar el motor es cambiar el contenido de `profile/`, no la Kali ni su MCP.
+Because the engine is interchangeable. This folder models a **profile distribution** of the
+orchestrator; changing the engine means changing the contents of `profile/`, not the Kali or its MCP.
-## Estructura
+## Structure
```
agent-ooda/
-├── README.md # este fichero
-├── profile/ # plantilla del perfil Hermes (distribucion versionable)
-│ ├── SOUL.md # persona "ejecutor OODA directo a Kali" (encuadre honesto, NO jailbreak)
-│ ├── config.yaml # modelo + toolsets minimos + los dos mcp_servers (kali, playwright)
-│ ├── config.yaml.example # variante con placeholders comentados
-│ └── env.example # placeholders de secretos (clave del LLM por OPENROUTER_API_KEY)
+├── README.md # this file
+├── profile/ # Hermes profile template (versionable distribution)
+│ ├── SOUL.md # "OODA executor direct to Kali" persona (honest framing, NOT jailbreak)
+│ ├── config.yaml # model + minimal toolsets + the two mcp_servers (kali, playwright)
+│ ├── config.yaml.example # variant with commented placeholders
+│ └── env.example # secret placeholders (LLM key via OPENROUTER_API_KEY)
├── skills/
-│ ├── pentest-ooda/SKILL.md # el bucle OODA ejecutando directo con las tools mcp_kali_*
-│ ├── ooda-report-handoff/SKILL.md # devolver al operador la decision estructurada (opcional)
-│ ├── pentest-report/SKILL.md # informe formal Markdown al cerrar (lee el store de hallazgos)
-│ ├── l3-recon-pivot/SKILL.md # recon de red L3 tras NAT (activacion condicional)
-│ ├── aws-pacu-privesc/SKILL.md # pentest ofensivo AWS con Pacu (activacion condicional)
-│ ├── attack-navigation/SKILL.md # MITRE ATT&CK como idioma del Orient (transversal)
-│ └── web-pentest/SKILL.md # pentest web por fases (kali_run + navegador por MCP playwright)
+│ ├── pentest-ooda/SKILL.md # the OODA loop running directly with the mcp_kali_* tools
+│ ├── ooda-report-handoff/SKILL.md # return the structured decision to the operator (optional)
+│ ├── pentest-report/SKILL.md # formal Markdown report at close (reads the findings store)
+│ ├── l3-recon-pivot/SKILL.md # L3 network recon behind NAT (conditional activation)
+│ ├── aws-pacu-privesc/SKILL.md # offensive AWS pentest with Pacu (conditional activation)
+│ ├── attack-navigation/SKILL.md # MITRE ATT&CK as the Orient language (cross-cutting)
+│ └── web-pentest/SKILL.md # phased web pentest (kali_run + browser via playwright MCP)
├── context/
-│ └── AGENTS.md # reglas del engagement (contexto de proyecto)
+│ └── AGENTS.md # engagement rules (project context)
├── prompts/
-│ └── ephemeral-system.md # texto para HERMES_EPHEMERAL_SYSTEM_PROMPT (guia turn-scoped)
+│ └── ephemeral-system.md # text for HERMES_EPHEMERAL_SYSTEM_PROMPT (turn-scoped guidance)
└── tests/
- └── test_profile_kali_direct.py # tests declarativos del config + el compose
+ └── test_profile_kali_direct.py # declarative tests of the config + the compose
```
-## Credenciales y arranque
+## Credentials and startup
-- La key del LLM la lee Hermes de la variable de entorno **`OPENROUTER_API_KEY`** (NO
- `HERMES_LLM_API_KEY`). El `docker-compose.yml` la inyecta en el proceso.
-- El perfil default se recrea en cada arranque copiando esta plantilla (ver `command` del servicio
- `ooda-agent` en el compose), asi la memoria/skills no se heredan entre engagements.
+- Hermes reads the LLM key from the environment variable **`OPENROUTER_API_KEY`** (NOT
+ `HERMES_LLM_API_KEY`). The `docker-compose.yml` injects it into the process.
+- The default profile is recreated on each startup by copying this template (see the `command` of the
+ `ooda-agent` service in the compose), so memory/skills are not inherited between engagements.
-## Regla de seguridad permanente
+## Permanent security rule
-- **Nunca** `--yolo` ni modo que bypasee las confirmaciones de Hermes.
-- Hermes **solo** habla por MCP: el de la Kali (`kali`) y el del navegador (`playwright`). Ningun
- toolset nativo (terminal/file/browser/web nativos siguen desactivados en `config.yaml`).
-- La salida de las tools se trata como **dato no confiable** (prompt injection): se razona sobre
- ella, no se obedece.
+- **Never** `--yolo` nor any mode that bypasses Hermes' confirmations.
+- Hermes **only** speaks over MCP: the Kali's (`kali`) and the browser's (`playwright`). No
+ native toolset (native terminal/file/browser/web remain disabled in `config.yaml`).
+- Tool output is treated as **untrusted data** (prompt injection): reason about
+ it, do not obey it.
diff --git a/agent-ooda/profile/config.yaml.example b/agent-ooda/profile/config.yaml.example
index ebd0fa2..9dcf058 100644
--- a/agent-ooda/profile/config.yaml.example
+++ b/agent-ooda/profile/config.yaml.example
@@ -1,29 +1,29 @@
-# config.yaml.example — variante documentada con placeholders.
-# Copia a config.yaml del perfil y ajusta si hace falta tras validar en vivo.
-# Sintaxis MCP verificada contra:
+# config.yaml.example — documented variant with placeholders.
+# Copy to the profile's config.yaml and adjust if needed after validating live.
+# MCP syntax verified against:
# https://github.com/NousResearch/hermes-agent/blob/main/website/docs/user-guide/features/mcp.md
model:
- default: "mistralai/mistral-large-4-0" # modelo de OpenRouter preparado para el pentest autorizado
+ default: "mistralai/mistral-large-4-0" # OpenRouter model prepared for authorized pentesting
mcp_servers:
kali:
- url: "http://kali:8900" # MCP de la Kali (contenedor `kali`). SIN headers/token.
+ url: "http://kali:8900" # Kali MCP (container `kali`). NO headers/token.
tools:
- # Whitelist de las tools reales del servidor kali-mcp (nombre tal como lo expone el servidor).
+ # Whitelist of the real kali-mcp server tools (name as exposed by the server).
include: [kali_run, kali_exec, iam_enum, iam_simulate, get_scan_status, read_tool_logs, prowler_scan, record_finding, read_findings, server_info]
prompts: false
resources: false
playwright:
- url: "http://playwright-mcp:8931/mcp" # MCP del navegador (Chromium headless) para la parte web.
+ url: "http://playwright-mcp:8931/mcp" # Browser MCP (headless Chromium) for the web part.
tools:
- prompts: false # SIN include: se exponen las tools del navegador de la imagen.
+ prompts: false # NO include: the image's browser tools are exposed.
resources: false
-# Dos toolsets: ambos MCP (Kali + navegador). CERO tools nativas (browser/web nativos desactivados).
+# Two toolsets: both MCPs (Kali + browser). ZERO native tools (native browser/web disabled).
toolsets:
- kali
- playwright
terminal:
- backend: "local" # Hermes no usa terminal nativa; ejecuta en la Kali via kali_run.
+ backend: "local" # Hermes does not use a native terminal; it runs on the Kali via kali_run.
diff --git a/agent-ooda/profile/env.example b/agent-ooda/profile/env.example
index 292febf..ed84417 100644
--- a/agent-ooda/profile/env.example
+++ b/agent-ooda/profile/env.example
@@ -1,17 +1,17 @@
-# env.example — plantilla de secretos del perfil Hermes (OODA directo a Kali).
-# Copia a `.env` en el home del perfil de Hermes.
-# Hermes NUNCA muestra el valor de .env al modelo (verificado en docs: .env = secretos).
+# env.example — secrets template for the Hermes profile (OODA direct to Kali).
+# Copy to `.env` in the Hermes profile home.
+# Hermes NEVER shows the value of .env to the model (verified in docs: .env = secrets).
#
-# NUNCA pongas secretos reales en este fichero de ejemplo ni lo commitees con valores.
+# NEVER put real secrets in this example file nor commit it with values.
-# API key del PROVEEDOR LLM de Hermes (OpenRouter). Hermes lee la key del LLM de ESTA variable:
-# OPENROUTER_API_KEY (NO HERMES_LLM_API_KEY). El perfil (config.yaml) fija model.default al modelo
-# de OpenRouter y el compose inyecta OPENROUTER_API_KEY en el proceso. SIN `hermes setup`
-# interactivo. Placeholder (nunca el valor real en el repo):
+# API key for Hermes' LLM PROVIDER (OpenRouter). Hermes reads the LLM key from THIS variable:
+# OPENROUTER_API_KEY (NOT HERMES_LLM_API_KEY). The profile (config.yaml) sets model.default to the
+# OpenRouter model and the compose injects OPENROUTER_API_KEY into the process. NO interactive
+# `hermes setup`. Placeholder (never the real value in the repo):
OPENROUTER_API_KEY=changeme-openrouter-api-key
-# NO declarar tokens de mensajeria (Telegram/Discord/...): la mensajeria no se usa y es un vector
-# de entrada no confiable.
+# Do NOT declare messaging tokens (Telegram/Discord/...): messaging is not used and is an
+# untrusted input vector.
#
-# No hay token de endpoint: el servidor kali-mcp no valida token; la seguridad del endpoint es el
-# aislamiento de la red interna de docker.
+# There is no endpoint token: the kali-mcp server does not validate a token; endpoint security is
+# the isolation of the internal docker network.
diff --git a/docker-compose.target.yml b/docker-compose.target.yml
index 0d19dce..9883238 100644
--- a/docker-compose.target.yml
+++ b/docker-compose.target.yml
@@ -1,28 +1,28 @@
# =============================================================================
-# docker-compose.target.yml — target web VULNERABLE A PROPOSITO para pruebas.
+# docker-compose.target.yml — DELIBERATELY VULNERABLE web target for testing.
# =============================================================================
-# Override OPCIONAL para escenarios de prueba de la skill `web-pentest`. NO forma parte
-# del stack base (docker-compose.yml): se levanta explicitamente junto a el para tener un
-# objetivo contra el que practicar sin salir a internet ni tocar sistemas reales.
+# OPTIONAL override for test scenarios of the `web-pentest` skill. It is NOT part
+# of the base stack (docker-compose.yml): bring it up explicitly alongside it to have a
+# target to practice against without going out to the internet or touching real systems.
#
# docker compose -f docker-compose.yml -f docker-compose.target.yml up -d
#
-# El target vive en la MISMA red interna del compose, asi que Hermes/Kali lo alcanzan por
-# su nombre DNS `juice-shop:3000`. NO se publica ningun puerto al host: el objetivo solo
-# existe dentro de la red de docker, acotando el ejercicio al entorno controlado.
+# The target lives on the SAME internal compose network, so Hermes/Kali reach it by
+# its DNS name `juice-shop:3000`. NO port is published to the host: the target only
+# exists inside the docker network, scoping the exercise to the controlled environment.
#
-# OWASP Juice Shop: aplicacion web deliberadamente insegura (proyecto OWASP, MIT), el
-# estandar de facto para practicar pentest web (XSS, SQLi, auth, etc.).
+# OWASP Juice Shop: a deliberately insecure web application (OWASP project, MIT), the
+# de facto standard for practicing web pentesting (XSS, SQLi, auth, etc.).
services:
juice-shop:
image: bkimminich/juice-shop
- # SIN sección ports: el target NO se publica al host; solo es alcanzable por la red
- # interna de docker (Hermes lo ve como http://juice-shop:3000). Mantiene el ejercicio
- # confinado al entorno controlado.
+ # NO ports section: the target is NOT published to the host; it is only reachable over the
+ # internal docker network (Hermes sees it as http://juice-shop:3000). Keeps the exercise
+ # confined to the controlled environment.
restart: unless-stopped
- # Healthcheck: la raiz responde 200 cuando la app esta lista. La imagen trae node pero
- # no curl/wget garantizados, asi que se usa node (siempre presente) para el sondeo.
+ # Healthcheck: the root responds 200 when the app is ready. The image ships node but
+ # not guaranteed curl/wget, so node (always present) is used for the probe.
healthcheck:
test: ["CMD", "node", "-e", "require('http').get('http://127.0.0.1:3000/',r=>process.exit(r.statusCode===200?0:1)).on('error',()=>process.exit(1))"]
interval: 10s
diff --git a/docker-compose.yml b/docker-compose.yml
index 3d491a4..f857149 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -1,25 +1,25 @@
# =============================================================================
-# vulnerator-ai — OODA pentest con Hermes hablando DIRECTO a Kali-MCP.
+# vulnerator-ai — OODA pentest with Hermes talking DIRECTLY to Kali-MCP.
# =============================================================================
-# Qué es: un bucle OODA de pentest conducido por Hermes (nousresearch/hermes-agent)
-# que ejecuta herramientas DIRECTAMENTE vía servidores MCP (sin core/API/UI intermedios):
-# - kali : runtime determinista de tools de pentest (kali-mcp en :8900).
-# - playwright-mcp : navegador real (Chromium headless) por MCP (:8931) para la parte web.
-# - ooda-agent : Hermes como CEREBRO conductor del bucle OODA, cliente de ambos MCP
-# (kali:8900, playwright-mcp:8931). Driver del OODA, sin intermediarios.
+# What it is: an OODA pentest loop driven by Hermes (nousresearch/hermes-agent)
+# that runs tools DIRECTLY via MCP servers (no intermediate core/API/UI):
+# - kali : deterministic pentest tool runtime (kali-mcp on :8900).
+# - playwright-mcp : real browser (headless Chromium) over MCP (:8931) for the web part.
+# - ooda-agent : Hermes as the BRAIN driving the OODA loop, client of both MCPs
+# (kali:8900, playwright-mcp:8931). OODA driver, no intermediaries.
#
-# Arranque:
-# cp .env.example .env # y rellena OPENROUTER_API_KEY y HERMES_API_SERVER_KEY
+# Startup:
+# cp .env.example .env # and fill in OPENROUTER_API_KEY and HERMES_API_SERVER_KEY
# docker compose up -d --build
-# docker compose exec -it ooda-agent hermes chat # TUI interactivo
+# docker compose exec -it ooda-agent hermes chat # interactive TUI
#
-# ADVERTENCIA (intencional): este producto NO tiene scope-guard, consentimiento ni
-# audit. Hermes ejecuta lo que decida directamente contra el objetivo, sin portero
-# que valide el alcance. Úsalo SOLO contra targets explícitamente autorizados y en un
-# entorno controlado. La responsabilidad del alcance recae enteramente en el operador.
+# WARNING (intentional): this product has NO scope-guard, consent, or
+# audit. Hermes runs whatever it decides directly against the target, with no gatekeeper
+# validating the scope. Use it ONLY against explicitly authorized targets and in a
+# controlled environment. Responsibility for the scope rests entirely with the operator.
#
-# Multi-arch: cada build declara platforms [linux/arm64, linux/amd64]. En Mac M2
-# se ejecuta arm64 nativo.
+# Multi-arch: each build declares platforms [linux/arm64, linux/amd64]. On a Mac M2
+# it runs arm64 natively.
services:
kali:
@@ -31,34 +31,34 @@ services:
- linux/amd64
image: vulnerator-ai-kali:dev
environment:
- # --- AWS read-only (OPCIONAL en este producto) ---
- # Prowler/ScoutSuite/Cloudsplaining corren DENTRO de este contenedor. Si se van
- # a usar las tools de recolección cloud, define estas credenciales en .env; si no,
- # quedan vacías y las tools cloud simplemente no tendrán con qué autenticar.
+ # --- AWS read-only (OPTIONAL in this product) ---
+ # Prowler/ScoutSuite/Cloudsplaining run INSIDE this container. If you are going
+ # to use the cloud collection tools, set these credentials in .env; otherwise
+ # they stay empty and the cloud tools simply won't have anything to authenticate with.
AWS_ACCESS_KEY_ID: "${AWS_ACCESS_KEY_ID:-}"
AWS_SECRET_ACCESS_KEY: "${AWS_SECRET_ACCESS_KEY:-}"
- # Opcional: solo para credenciales temporales (STS).
+ # Optional: only for temporary credentials (STS).
AWS_SESSION_TOKEN: "${AWS_SESSION_TOKEN:-}"
AWS_REGION: "${AWS_REGION:-us-east-1}"
- # Puerto del servidor kali-mcp dentro del contenedor. Overridable sin reconstruir.
+ # kali-mcp server port inside the container. Overridable without rebuilding.
KALI_MCP_PORT: "8900"
- # --- Plano de DATOS de artefactos (puerto dedicado, red interna) ---
+ # --- Artifacts DATA plane (dedicated port, internal network) ---
KALI_ARTIFACTS_PORT: "8901"
- # Token compartido del canal de datos (opcional en este producto).
+ # Shared token for the data channel (optional in this product).
KALI_ARTIFACTS_TOKEN: "${KALI_ARTIFACTS_TOKEN:-}"
- # --- Prowler (opcional): acota el escaneo cloud si se usa ---
+ # --- Prowler (optional): scopes the cloud scan if used ---
PROWLER_STATUS: "${PROWLER_STATUS:-FAIL}"
PROWLER_REGIONS: "${PROWLER_REGIONS-${AWS_REGION:-us-east-1}}"
PROWLER_SERVICES: "${PROWLER_SERVICES-iam s3}"
PROWLER_TIMEOUT: "${PROWLER_TIMEOUT:-1800}"
- # Puerto del servidor kali-mcp (expuesto para inspección directa desde el host si
- # hace falta; ooda-agent lo alcanza por la red interna como kali:8900). El puerto del
- # host es configurable con KALI_MCP_HOST_PORT (default 8900) sin editar este fichero;
- # el puerto interno del contenedor sigue siendo 8900.
+ # kali-mcp server port (exposed for direct inspection from the host if
+ # needed; ooda-agent reaches it over the internal network as kali:8900). The host
+ # port is configurable with KALI_MCP_HOST_PORT (default 8900) without editing this file;
+ # the container's internal port stays 8900.
ports:
- "${KALI_MCP_HOST_PORT:-8900}:8900"
- # HEALTHCHECK: comprueba que el servidor MCP acepta conexiones TCP en :8900, para
- # que ooda-agent pueda depender con condition: service_healthy antes de arrancar.
+ # HEALTHCHECK: checks that the MCP server accepts TCP connections on :8900, so that
+ # ooda-agent can depend on it with condition: service_healthy before starting.
healthcheck:
test: ["CMD", "python", "-c", "import socket,sys; s=socket.socket(); s.settimeout(3); sys.exit(0 if s.connect_ex(('localhost',8900))==0 else 1)"]
interval: 10s
@@ -68,80 +68,80 @@ services:
restart: unless-stopped
ooda-agent:
- # Imagen oficial de registry (NO se construye desde este repo).
+ # Official registry image (NOT built from this repo).
image: nousresearch/hermes-agent
- # Arranque (modelo "perfil default"): recrea el perfil DEFAULT (/opt/data) copiando
- # la plantilla declarativa del repo (bind-mount read-only en /opt/profile-src),
- # inyecta la key del API server y arranca el gateway en foreground. 'hermes gateway
- # run' mantiene el contenedor VIVO y arranca platforms.api_server (:8642, publicado al
- # host vía el bloque 'ports:' de abajo para pilotar Hermes desde un asistente externo).
+ # Startup ("default profile" model): recreates the DEFAULT profile (/opt/data) by copying
+ # the repo's declarative template (read-only bind-mount at /opt/profile-src),
+ # injects the API server key and starts the gateway in the foreground. 'hermes gateway
+ # run' keeps the container ALIVE and starts platforms.api_server (:8642, published to the
+ # host via the 'ports:' block below to drive Hermes from an external assistant).
command:
- sh
- -c
- |
set -e
- # El perfil DEFAULT es el home raíz /opt/data (no /opt/data/profiles/<p>).
+ # The DEFAULT profile is the root home /opt/data (not /opt/data/profiles/<p>).
DEF=/opt/data
- # (a) copia la plantilla declarativa (config/SOUL/skills) al home del perfil default.
+ # (a) copy the declarative template (config/SOUL/skills) to the default profile home.
mkdir -p "$$DEF/skills"
cp /opt/profile-src/profile/config.yaml "$$DEF/config.yaml"
cp /opt/profile-src/profile/SOUL.md "$$DEF/SOUL.md"
cp -r /opt/profile-src/skills/. "$$DEF/skills/" 2>/dev/null || true
- # (b) inyecta la KEY del API server (secreto, no se versiona) ANTES de arrancar.
+ # (b) inject the API server KEY (secret, not versioned) BEFORE starting.
hermes config set platforms.api_server.key "$$HERMES_API_SERVER_KEY" >/dev/null
- # (c) arranca el gateway del perfil default: foreground (contenedor vivo) + API server.
+ # (c) start the default profile gateway: foreground (live container) + API server.
exec hermes gateway run
environment:
- # Clave del API server de Hermes — obligatoria (fail-closed): mín 8 chars. Hacen
- # falta DOS vías: el command la escribe en platforms.api_server.key (arrancar el
- # API server) y API_SERVER_KEY la valida en cada petición (autenticar el Bearer).
+ # Hermes API server key — required (fail-closed): min 8 chars. TWO paths are
+ # needed: the command writes it into platforms.api_server.key (to start the
+ # API server) and API_SERVER_KEY validates it on every request (to authenticate the Bearer).
HERMES_API_SERVER_KEY: "${HERMES_API_SERVER_KEY:?Falta HERMES_API_SERVER_KEY - genera uno con 'openssl rand -hex 32' (min 8 chars) y ponlo en .env}"
API_SERVER_KEY: "${HERMES_API_SERVER_KEY}"
- # API key del proveedor LLM de Hermes. Hermes lee la key del LLM de ESTA env var
- # (OPENROUTER_API_KEY), por eso NO se declara HERMES_LLM_API_KEY. Obligatoria
- # fail-closed: sin ella el agente no puede razonar.
+ # API key for Hermes' LLM provider. Hermes reads the LLM key from THIS env var
+ # (OPENROUTER_API_KEY), which is why HERMES_LLM_API_KEY is NOT declared. Required
+ # fail-closed: without it the agent cannot reason.
OPENROUTER_API_KEY: "${OPENROUTER_API_KEY:?Falta OPENROUTER_API_KEY - define la API key de OpenRouter en .env}"
volumes:
- # VOLUMEN CON NOMBRE OBLIGATORIO (nunca bind-mount): el state.db SQLite en modo WAL
- # de Hermes SE CORROMPE en bind-mounts que cruzan la VM de macOS (virtiofs).
+ # NAMED VOLUME REQUIRED (never a bind-mount): Hermes' state.db SQLite in WAL mode
+ # GETS CORRUPTED on bind-mounts that cross the macOS VM (virtiofs).
- hermes-data:/opt/data
- # Plantilla declarativa del perfil, READ-ONLY y FUERA de /opt/data (no toca el WAL).
+ # Declarative profile template, READ-ONLY and OUTSIDE /opt/data (does not touch the WAL).
- ./agent-ooda:/opt/profile-src:ro
- # TUI interactivo: 'docker compose exec -it ooda-agent hermes chat' necesita stdin+tty.
+ # Interactive TUI: 'docker compose exec -it ooda-agent hermes chat' needs stdin+tty.
stdin_open: true
tty: true
- # Publica el API server OpenAI-compatible de Hermes (:8642) al host para poder PILOTAR
- # Hermes desde un asistente externo (Kiro/Claude) por HTTP, sin entrar al TUI. El puerto
- # del host es configurable con HERMES_API_HOST_PORT (default 8642) sin editar este fichero;
- # el puerto interno del contenedor sigue siendo 8642.
+ # Publishes Hermes' OpenAI-compatible API server (:8642) to the host so you can DRIVE
+ # Hermes from an external assistant (Kiro/Claude) over HTTP, without entering the TUI. The host
+ # port is configurable with HERMES_API_HOST_PORT (default 8642) without editing this file;
+ # the container's internal port stays 8642.
#
- # SEGURIDAD: publicar este puerto BAJA la barrera de red que el stack tenía a propósito
- # (antes el :8642 solo era accesible por la red interna de docker). A partir de aquí la
- # protección del endpoint es el Bearer HERMES_API_SERVER_KEY (misma key del .env): úsalo
- # SOLO en máquina/entorno controlado. Si no quieres abrir el puerto, borra este bloque
- # 'ports:' y pilota Hermes con 'docker compose exec ooda-agent curl ...' (ver README).
+ # SECURITY: publishing this port LOWERS the network barrier the stack had on purpose
+ # (before, :8642 was only reachable over the internal docker network). From here on the
+ # endpoint's protection is the HERMES_API_SERVER_KEY Bearer (same key from .env): use it
+ # ONLY on a controlled machine/environment. If you don't want to open the port, delete this
+ # 'ports:' block and drive Hermes with 'docker compose exec ooda-agent curl ...' (see README).
ports:
- "${HERMES_API_HOST_PORT:-8642}:8642"
depends_on:
- # Espera a que kali esté healthy (MCP escuchando) antes de arrancar.
+ # Wait until kali is healthy (MCP listening) before starting.
kali:
condition: service_healthy
- # Espera a que el MCP del navegador esté healthy antes de arrancar.
+ # Wait until the browser MCP is healthy before starting.
playwright-mcp:
condition: service_healthy
restart: unless-stopped
- # Red default del compose: alcanza kali:8900 y playwright-mcp:8931 por DNS interno.
+ # Default compose network: reaches kali:8900 and playwright-mcp:8931 via internal DNS.
playwright-mcp:
- # Segundo servidor MCP del stack: navegador real (Chromium headless) para la parte
- # WEB del pentest. Imagen oficial de Microsoft (NO se construye desde este repo).
- # Hermes lo registra como MCP `playwright` (ver agent-ooda/profile/config.yaml) y gana
- # las tools `mcp_playwright_*` SIN reactivar ningún toolset nativo: sigue el principio
- # "todo pasa por MCP". La parte web NO queda limitada a kali_run: nmap/whatweb/nuclei/
- # ffuf/sqlmap van por la Kali (kali_run) y la navegación/DOM/XSS van por este MCP.
+ # Second MCP server of the stack: real browser (headless Chromium) for the
+ # WEB part of the pentest. Official Microsoft image (NOT built from this repo).
+ # Hermes registers it as the `playwright` MCP (see agent-ooda/profile/config.yaml) and gains
+ # the `mcp_playwright_*` tools WITHOUT re-enabling any native toolset: it follows the
+ # "everything goes through MCP" principle. The web part is NOT limited to kali_run: nmap/whatweb/nuclei/
+ # ffuf/sqlmap go through the Kali (kali_run) and navigation/DOM/XSS go through this MCP.
image: mcr.microsoft.com/playwright/mcp
- # HTTP (streamable-http) en :8931, endpoint MCP en /mcp. --no-sandbox: Chromium corre
- # como root en el contenedor sin userns. --headless: sin display. Red interna solo.
+ # HTTP (streamable-http) on :8931, MCP endpoint at /mcp. --no-sandbox: Chromium runs
+ # as root in the container without userns. --headless: no display. Internal network only.
entrypoint: ["node"]
command:
- /app/cli.js
@@ -153,32 +153,32 @@ services:
- "8931"
- --host
- "0.0.0.0"
- # Proteccion anti-DNS-rebinding del servidor Playwright: por defecto SOLO acepta el
- # host al que esta bound (localhost), asi que rechaza con 403 la conexion de Hermes,
- # que llega con el Host header `playwright-mcp:8931` (nombre DNS interno del servicio).
- # Se permite EXPLICITAMENTE ese host (no `*`): mantiene la proteccion acotada a la red
- # interna de docker, por la que llega ooda-agent.
+ # Playwright server anti-DNS-rebinding protection: by default it ONLY accepts the
+ # host it is bound to (localhost), so it rejects Hermes' connection with 403,
+ # which arrives with the Host header `playwright-mcp:8931` (the service's internal DNS name).
+ # That host is EXPLICITLY allowed (not `*`): it keeps the protection scoped to the
+ # internal docker network, from which ooda-agent connects.
- --allowed-hosts
- "playwright-mcp:8931"
- # Perfil de navegador EN MEMORIA (no persistente en disco). Un perfil persistente SOLO
- # puede usarlo UNA instancia a la vez y se BLOQUEA ("Browser is already in use ...") si
- # queda un proceso Chrome huerfano o si hay llamadas concurrentes; eso dejaba inservibles
- # las tools mcp_playwright_* a mitad de engagement. Con --isolated cada sesion arranca un
- # perfil efimero propio: sin lock de perfil compartido.
+ # IN-MEMORY browser profile (not persisted to disk). A persistent profile can ONLY
+ # be used by ONE instance at a time and LOCKS ("Browser is already in use ...") if
+ # an orphan Chrome process remains or there are concurrent calls; that left the
+ # mcp_playwright_* tools unusable mid-engagement. With --isolated each session starts its
+ # own ephemeral profile: no shared profile lock.
- --isolated
init: true
- # HEALTHCHECK: el endpoint MCP responde en :8931 (un proceso vivo responde al
- # handshake HTTP), para que ooda-agent dependa con condition: service_healthy.
+ # HEALTHCHECK: the MCP endpoint responds on :8931 (a live process responds to the
+ # HTTP handshake), so that ooda-agent can depend on it with condition: service_healthy.
healthcheck:
test: ["CMD", "node", "-e", "require('http').get('http://127.0.0.1:8931/mcp',r=>process.exit(r.statusCode?0:1)).on('error',()=>process.exit(1))"]
interval: 10s
timeout: 5s
retries: 6
start_period: 20s
- # SIN sección ports: el MCP del navegador NO se publica al host; solo red interna docker.
+ # NO ports section: the browser MCP is NOT published to the host; internal docker network only.
restart: unless-stopped
volumes:
- # Estado de Hermes (perfil + SQLite WAL). CON NOMBRE a propósito: evita el bind-mount
- # que corrompe el SQLite WAL en virtiofs de macOS.
+ # Hermes state (profile + SQLite WAL). NAMED on purpose: avoids the bind-mount
+ # that corrupts the SQLite WAL on macOS virtiofs.
hermes-data: