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
docs: remove duplicate documentation files from root
irrazbb274c1b1589
diff --git a/KANBAN-INTEGRATION.md b/KANBAN-INTEGRATION.mddeleted file mode 100644index 921cb20..0000000--- a/KANBAN-INTEGRATION.md+++ /dev/null@@ -1,385 +0,0 @@-# Kanban Integration in Vulnerator-AI--**Branch:** `feature/kanban-integration`-**Date:** 2026-10-22-**Status:** ✅ Functional and tested-------## Summary--This branch integrates Hermes Agent's **Kanban Board** system as an **optional** tracking layer for pentest engagements, without changing the default OODA loop behavior.--### What it adds--1. **`kanban` toolset** enabled in `config.yaml`-2. **Documentation in `SOUL.md`** on how to use Kanban (Option A vs Option B)-3. **Increased delegation concurrency** (10 → 50 workers)-4. **Complete usage guide** in `agent-ooda/KANBAN-USAGE.md`--### What does NOT change--- ✅ OODA loop remains the same (OBSERVE → ORIENT → DECIDE → ACT → REPORT)-- ✅ Mandatory response format `OODA — <PHASE> (step N): description`-- ✅ Uses `todo_list` by default (`master` behavior)-- ✅ `record_finding` remains the durable evidence memory-- ✅ OODA discipline unchanged-------## Technical changes--### 1. `agent-ooda/profile/config.yaml`--#### a) `kanban` toolset added--```yaml-toolsets:- - kali- - playwright- - todo- - kanban # ← NEW-```--**Exposes functions:**-- `kanban_create(goal, board, assignee, depends_on)`-- `kanban_work(task_id)`-- `kanban_complete(task_id)`-- `kanban_list(board)`-- `kanban_block(task_id, reason)`-- `kanban_show(task_id)`-- `kanban_comment(task_id, text)`-- `kanban_attach(task_id, path)`--#### b) Increased delegation concurrency--```yaml-delegation:- max_concurrent_children: 50 # previously: 10 (default)-```--**Validated by:** Nous 1,393-agent refactor (218 concurrent workers stable)-**Use case:** Massive scans of large networks (/24 = 254 hosts in parallel)-------### 2. `agent-ooda/profile/SOUL.md`--New section: **"Loop state management with todo_list and Kanban"** (74 lines)--#### Before (master):-- 2 layers: `todo_list` + `record_finding`-- Only mentioned `todo_list`--#### After (feature/kanban-integration):-- 3 layers: `todo_list` + `kanban_*` + `record_finding`-- **Comparison table** of when to use each system:--| System | Recommended use |-|--------|-----------------|-| `todo_list` | Short engagements (<1h), no expected interruptions |-| `kanban_*` | Long engagements (>1h), crash recovery, multiple targets |-| `record_finding` | Forensic evidence (always) |--#### OODA + Kanban workflow documented:--1. **Start:** Create board `engagement-<target-id>` with 5 chained tasks (OBSERVE → ORIENT → DECIDE → ACT → REPORT) with `depends_on`-2. **On phase entry:** `kanban_work(task_id)`-3. **On phase completion:** `kanban_complete(task_id)` → automatically unlocks next phase-4. **If ACT fails:** Create new ORIENT task with `depends_on=[act_task_id]` → DAG records the iteration-5. **On pause:** `kanban_block(task_id, reason="exhausted_vectors")`-6. **On resume:** `kanban_list(board)` → read complete state and continue--**Documented advantages:**-- Crash recovery (permanent SQLite in `~/.hermes/kanban.db`)-- Explicit DAG of dependencies (audit trail)-- Resumption without interrogation-------## New files--### 1. `agent-ooda/KANBAN-USAGE.md` (335 lines)--Complete usage guide with:-- 3 access methods: Python tool calls, `/kanban` commands in TUI, CLI `hermes kanban`-- Step-by-step workflow with real code-- CTF engagement example with iteration (ACT fails → ORIENT retry)-- Troubleshooting (database locked, dependencies not respected, etc.)-- Comparison mono-profile vs multi-profile--### 2. `TESTING-KANBAN.md` (306 lines)--Test suite with 10 tests to validate integration:-1. Successful rebuild-2. Delegation config (50 workers)-3. Dashboard accessible with Ember theme-4. Kanban board created from TUI-5. Claim→complete workflow-6. Dashboard visualization-7. Crash recovery-8. Concurrent delegation (50 workers)-9. SOUL.md loaded correctly-10. Real engagement (optional)--### 3. `rebuild-containers.sh` (62 lines)--Automated rebuild script from scratch:-- Stop and remove containers + volumes-- Clean Vulnerator images-- Create `docker-compose.tmp.yml` without `platforms:` (fix for systems without buildx)-- Rebuild without cache-- Start everything-- Show verifications-------## Behavior: master vs feature/kanban-integration--### Without mentioning Kanban in prompt (`master` behavior)--```-OODA — OBSERVE (step 1): starting reconnaissance-[uses todo_list for tracking]-[executes tools]-[uses record_finding for evidence]-OODA — ORIENT (step 2): analyzing findings-...-```--**Result:** Identical to `master`.--### With explicit Kanban in prompt--```-Prompt:-TRACKING:-- Use Kanban to track progress-- Board: engagement-<target>-- Create OODA phases in board with dependencies-```--```-OODA — OBSERVE (step 1): starting reconnaissance-[calls kanban_create 5 times: OBSERVE, ORIENT, DECIDE, ACT, REPORT with depends_on]-[calls kanban_work(observe_id)]-[executes tools]-[uses record_finding for evidence]-[calls kanban_complete(observe_id)] ← unlocks ORIENT-OODA — ORIENT (step 2): analyzing findings-[calls kanban_work(orient_id)]-...-```--**Difference:** Each phase transition is recorded in Kanban. Loop iterations (ACT fails → ORIENT retry) are explicit in the DAG.-------## Usage example--### Prompt for engagement with Kanban--```-CTF ENGAGEMENT — Full authorized compromise--TARGET: http://target.example.com-MODE: ctf-GOAL: Achieve RCE--TRACKING:-- Use Kanban to track engagement progress-- Board: engagement-example-target-- Create OODA phases in board with dependencies-- Complete each phase as you progress--Start with OBSERVE.-```--### Monitoring during engagement--**From Dashboard:**-```-http://localhost:9119 → Kanban → engagement-example-target-```--**From TUI:**-```-/kanban list --board engagement-example-target-```--**From CLI:**-```bash-docker exec ooda-agent hermes kanban list --board engagement-example-target-```-------## Multi-profile (future, NOT implemented in this branch)--Kanban allows multi-profile coordination, but this branch uses **mono-profile** (`default` profile).--### What could be done in the future--```bash-# Create specialized profiles-hermes profile create vulnerator-observe --clone-hermes profile create vulnerator-orient --clone-hermes profile create vulnerator-act --clone--# Start gateways-hermes -p vulnerator-observe gateway start &-hermes -p vulnerator-orient gateway start &-hermes -p vulnerator-act gateway start &--# Conductor creates tasks with specific assignee-kanban_create(- goal="OBSERVE: scan complete /24",- board="engagement-internal-network",- assignee="vulnerator-observe" # auto-dispatch-)-```--**Dispatcher** (background) would poll the board and automatically assign tasks to profiles.--**But this requires:**-- Multiple profiles configured with specialized SOUL.md-- Active dispatcher in gateway-- OODA flow refactor (orchestrator vs executors)--**Design decision:** Left for future work. Current branch uses mono-profile with Kanban as **tracking**, not **auto-dispatch**.-------## Testing--### Smoke test (quick)--```bash-# 1. Rebuild-./rebuild-containers.sh--# 2. Verify config-docker exec ooda-agent hermes config show | grep -A 2 delegation-# Should show: max_concurrent_children: 50--# 3. Verify toolsets-docker exec ooda-agent cat /opt/data/config.yaml | grep -A 5 "^toolsets:"-# Should include: - kanban--# 4. Enter TUI-docker exec -it ooda-agent hermes tui--# 5. Test Kanban-> /kanban boards list-# Should not error "command not found"-```--### Complete test--Follow `TESTING-KANBAN.md` (10 sequential tests).-------## Known issues--### 1. Multi-platform build (docker-compose.yml)--The `docker-compose.yml` declares `platforms: [linux/arm64, linux/amd64]`, but systems without Docker Buildx configured fail with:--```-Multi-platform build is not supported for the docker driver.-```--**Temporary solution:** `rebuild-containers.sh` creates `docker-compose.tmp.yml` without `platforms:` and builds only for local platform.--**Permanent solution:** Configure Buildx:-```bash-docker buildx create --name multiarch --driver docker-container --use-```--### 2. Kanban board not visible if agent didn't use it--If prompt does NOT mention "Use Kanban", agent uses `todo_list` and **doesn't create board**. This is correct (`master` behavior).--To force Kanban, prompt must be explicit:-```-TRACKING: Use Kanban to track progress-```--### 3. Evidence lost on `docker compose down`--Findings (`record_finding`) live in `/artifacts/<engagement-id>/` inside `kali` container, which **has NO persistent volume**.--**Solution:** Copy evidence before stopping:-```bash-docker cp kali:/artifacts/<engagement-id>/findings.jsonl ./.agents/tasks/<engagement-id>/-```--**Future improvement:** Add volume in `docker-compose.yml`:-```yaml-kali:- volumes:- - ./artifacts:/artifacts-```-------## Comparison with master--| Aspect | `master` | `feature/kanban-integration` |-|--------|----------|------------------------------|-| Toolsets | `kali`, `playwright`, `todo` | `kali`, `playwright`, `todo`, `kanban` |-| Default tracking | `todo_list` | `todo_list` (unchanged) |-| Optional tracking | none | `kanban_*` |-| Concurrent delegation | 10 (Hermes default) | 50 (explicit) |-| Crash recovery | From `record_finding` | From `kanban_list` + `record_finding` |-| Workflow DAG | No | Yes (with Kanban) |-| Complexity | Low | Low (Kanban is opt-in) |-------## Future roadmap--### Short term (next branch)-- [ ] Add persistent volume for `/artifacts` in `kali`-- [ ] `kanban-pentest` skill that automates setup of 5 tasks (OBSERVE→REPORT)-- [ ] Integrate Kanban board in Vulnerator Dashboard skin--### Medium term-- [ ] Multi-profile: specialized profiles (recon, exploit, post-exploit)-- [ ] Auto-dispatch: active dispatcher to assign tasks automatically-- [ ] Kanban swarms: massive parallelization of /16 (256 /24 in parallel)--### Long term-- [ ] Hermes Issue #344: agent-to-agent messaging, shared blackboard, consensus-- [ ] Meta-OODA orchestrator + specialized workers-------## References--- **Hermes Kanban docs:** https://hermes-agent.nousresearch.com/docs/user-guide/features/kanban-- **Hermes Profiles:** https://hermes-agent.nousresearch.com/docs/user-guide/profiles-- **Nous 1,393-agent refactor:** https://cellcog.ai/blog/nous-hermes-1393-agents-refactor/-- **Issue #344 (future roadmap):** https://github.com/NousResearch/hermes-agent/issues/344-------## Conclusion--Kanban integration is **non-invasive** and **backward-compatible**:-- ✅ Doesn't change OODA loop-- ✅ Doesn't change default behavior-- ✅ Adds optional durable tracking-- ✅ Increases delegation concurrency for large pentests-- ✅ Crash recovery without losing engagement state--**For `master` users:** If you don't mention Kanban in prompt, behavior is identical.--**For users adopting Kanban:** Durable tracking + explicit DAG + crash recovery without losing OODA discipline.-------**Last update:** 2026-10-22-**Branch:** `feature/kanban-integration`-**Commits:** 6 commits from `master`diff --git a/architecture.svg b/architecture.svgdeleted file mode 100644index 5bcbe9a..0000000--- a/architecture.svg+++ /dev/null@@ -1,252 +0,0 @@-<svg xmlns="http://www.w3.org/2000/svg" width="1480" height="980" viewBox="0 0 1480 980" font-family="'Courier New', 'DejaVu Sans Mono', monospace">- <defs>- <!-- arrow markers -->- <marker id="aReq" markerWidth="12" markerHeight="12" refX="8" refY="5" orient="auto">- <path d="M0,0 L10,5 L0,10 z" fill="#e8e8e8"/>- </marker>- <marker id="aEvt" markerWidth="12" markerHeight="12" refX="8" refY="5" orient="auto">- <path d="M0,0 L10,5 L0,10 z" fill="#7f8c8d"/>- </marker>- <marker id="aLlm" markerWidth="12" markerHeight="12" refX="8" refY="5" orient="auto">- <path d="M0,0 L10,5 L0,10 z" fill="#b03a3a"/>- </marker>- <marker id="aLoop" markerWidth="12" markerHeight="12" refX="8" refY="5" orient="auto">- <path d="M0,0 L10,5 L0,10 z" fill="#cfcfcf"/>- </marker>- <marker id="aTgt" markerWidth="13" markerHeight="13" refX="8" refY="5" orient="auto">- <path d="M0,0 L10,5 L0,10 z" fill="#b03a3a"/>- </marker>-- <!-- node glow -->- <filter id="glow" x="-40%" y="-40%" width="180%" height="180%">- <feGaussianBlur stdDeviation="2.4" result="b"/>- <feMerge><feMergeNode in="b"/><feMergeNode in="SourceGraphic"/></feMerge>- </filter>-- <!-- faint grid pattern (PCB vibe) -->- <pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse">- <path d="M40 0 H0 V40" fill="none" stroke="#141414" stroke-width="1"/>- </pattern>-- <linearGradient id="bone" x1="0" y1="0" x2="0" y2="1">- <stop offset="0" stop-color="#f2f2f2"/>- <stop offset="1" stop-color="#bdbdbd"/>- </linearGradient>- </defs>-- <!-- ===================== BACKDROP ===================== -->- <rect width="1480" height="980" fill="#000000"/>- <rect width="1480" height="980" fill="url(#grid)"/>- <rect x="8" y="8" width="1464" height="964" fill="none" stroke="#2a2a2a" stroke-width="1"/>-- <!-- ===================== TITLE (death-metal flavor) ===================== -->- <text x="40" y="58" fill="#f2f2f2" font-size="34" font-weight="700" letter-spacing="4"- font-family="'Impact','Arial Black',sans-serif">† VULNERATOR AI †</text>- <text x="40" y="84" fill="#8a8a8a" font-size="13" letter-spacing="2">- SYSTEM ARCHITECTURE · OODA pentest driven by Hermes · piloted over HTTP from an external assistant</text>- <text x="40" y="104" fill="#5a5a5a" font-size="11" letter-spacing="1">- no core · no REST facade · no UI · no scope-gate — the agent drives tools end to end over MCP</text>- <line x1="40" y1="116" x2="1440" y2="116" stroke="#2f2f2f" stroke-width="1"/>-- <!-- ===================== OPERATOR COLUMN ===================== -->- <rect x="36" y="140" width="250" height="300" rx="6" fill="#0a0a0a" stroke="#4a4a4a" stroke-width="1.4"/>- <text x="161" y="166" fill="#8a8a8a" font-size="12" text-anchor="middle" letter-spacing="3">OPERATOR / HUMAN</text>-- <!-- pentester glyph -->- <g transform="translate(161,214)">- <circle cx="0" cy="-14" r="18" fill="none" stroke="#cfcfcf" stroke-width="1.6"/>- <path d="M-26,34 a26,26 0 0 1 52,0 z" fill="none" stroke="#cfcfcf" stroke-width="1.6"/>- <path d="M-20,-24 q20,-14 40,0" fill="none" stroke="#cfcfcf" stroke-width="1.6"/>- </g>- <text x="161" y="268" fill="#e8e8e8" font-size="15" font-weight="700" text-anchor="middle">PENTESTER</text>-- <!-- external assistant box -->- <rect x="60" y="296" width="202" height="128" rx="5" fill="#0d0d0d" stroke="#6a6a6a" stroke-width="1.3"/>- <text x="161" y="320" fill="#f2f2f2" font-size="13" font-weight="700" text-anchor="middle" letter-spacing="1">KIRO / CLAUDE</text>- <text x="161" y="338" fill="#8a8a8a" font-size="10" text-anchor="middle">external assistant (HTTP client)</text>- <line x1="76" y1="348" x2="246" y2="348" stroke="#2f2f2f"/>- <text x="161" y="366" fill="#b03a3a" font-size="10.5" text-anchor="middle" font-weight="700">TRIGGER · OBSERVE · SUMMARIZE</text>- <text x="161" y="384" fill="#7f8c8d" font-size="9.5" text-anchor="middle">does NOT reason the pentest</text>- <text x="161" y="400" fill="#7f8c8d" font-size="9.5" text-anchor="middle">sends engagement prompt,</text>- <text x="161" y="414" fill="#7f8c8d" font-size="9.5" text-anchor="middle">reads lifecycle events</text>-- <!-- ===================== DOCKER HOST ===================== -->- <rect x="320" y="134" width="1120" height="620" rx="8" fill="#070707" stroke="#5a5a5a" stroke-width="1.6"/>- <text x="344" y="162" fill="#cfcfcf" font-size="14" font-weight="700" letter-spacing="1">DOCKER HOST · docker-compose (internal project network)</text>- <text x="344" y="181" fill="#6a6a6a" font-size="10.5">one full stack per engagement · isolate with docker compose -p pentest-<name> · named volume: hermes-data (SQLite WAL)</text>-- <!-- ==== ooda-agent / Hermes ==== -->- <rect x="344" y="200" width="470" height="470" rx="6" fill="#0b0b0b" stroke="#9a9a9a" stroke-width="1.6"/>- <text x="368" y="230" fill="#f2f2f2" font-size="17" font-weight="700" letter-spacing="1"- font-family="'Impact','Arial Black',sans-serif">OODA-AGENT</text>- <text x="368" y="249" fill="#8a8a8a" font-size="11">image: nousresearch/hermes-agent · THE BRAIN of the OODA loop</text>- <text x="368" y="266" fill="#6a6a6a" font-size="10">cmd: hermes gateway run (keeps container alive + serves API)</text>-- <!-- API server -->- <rect x="366" y="282" width="426" height="66" rx="4" fill="#101010" stroke="#b03a3a" stroke-width="1.4"/>- <text x="382" y="306" fill="#e8a0a0" font-size="13" font-weight="700">[::] OpenAI-compatible API SERVER · :8642</text>- <text x="382" y="325" fill="#9a7a7a" font-size="10">POST /v1/runs · GET /v1/runs/{id}/events (SSE) · /steer · /stop · /health</text>- <text x="382" y="340" fill="#8a6a6a" font-size="9.5">auth: Authorization: Bearer $HERMES_API_SERVER_KEY (fail-closed, min 8 chars)</text>-- <!-- declarative profile -->- <rect x="366" y="360" width="426" height="150" rx="4" fill="#0e0e0e" stroke="#6a6a6a" stroke-width="1.2"/>- <text x="382" y="382" fill="#cfcfcf" font-size="11.5" font-weight="700">DECLARATIVE PROFILE (agent-ooda/ → /opt/data, bind-mount ro)</text>-- <rect x="382" y="394" width="190" height="100" rx="4" fill="#141414" stroke="#4a4a4a"/>- <text x="396" y="414" fill="#e8e8e8" font-size="11" font-weight="700">prompts (layer 1-2)</text>- <text x="396" y="432" fill="#8a8a8a" font-size="9.5">SOUL.md — executor identity</text>- <text x="396" y="447" fill="#8a8a8a" font-size="9.5">ephemeral-system.md</text>- <text x="396" y="462" fill="#8a8a8a" font-size="9.5">AGENTS.md — engagement rules</text>- <text x="396" y="482" fill="#6a6a6a" font-size="9">system prompt of the OODA loop</text>-- <rect x="586" y="394" width="190" height="100" rx="4" fill="#141414" stroke="#4a4a4a"/>- <text x="600" y="414" fill="#e8e8e8" font-size="11" font-weight="700">skills (SKILL.md)</text>- <text x="600" y="432" fill="#8a8a8a" font-size="9.5">pentest-ooda · attack-navigation</text>- <text x="600" y="447" fill="#8a8a8a" font-size="9.5">l3-recon-pivot · web-pentest</text>- <text x="600" y="462" fill="#8a8a8a" font-size="9.5">aws-pacu-privesc</text>- <text x="600" y="477" fill="#8a8a8a" font-size="9.5">pentest-report · ooda-report-handoff</text>-- <!-- MCP client -->- <rect x="366" y="522" width="426" height="58" rx="4" fill="#101010" stroke="#9a9a9a" stroke-width="1.2"/>- <text x="382" y="544" fill="#e8e8e8" font-size="12" font-weight="700">[∞] MCP CLIENT · zero native toolsets</text>- <text x="382" y="562" fill="#8a8a8a" font-size="9.5">Hermes' entire tool surface = the two MCP servers on the right (kali + playwright)</text>- <text x="382" y="575" fill="#6a6a6a" font-size="9">principle: everything goes through MCP</text>-- <!-- reasoning model note -->- <rect x="366" y="594" width="426" height="56" rx="4" fill="#0e0e0e" stroke="#8a4a4a" stroke-width="1.1"/>- <text x="382" y="615" fill="#e8a0a0" font-size="11" font-weight="700">reasoning model → mistralai/mistral-large (via OpenRouter)</text>- <text x="382" y="632" fill="#9a7a7a" font-size="9.5">chosen on purpose: accepts the authorized-offensive framing</text>- <text x="382" y="645" fill="#8a6a6a" font-size="9">stateless completions · N parallel calls per OODA cycle</text>-- <!-- ==== KALI MCP ==== -->- <rect x="836" y="200" width="582" height="286" rx="6" fill="#0b0b0b" stroke="#9a9a9a" stroke-width="1.6"/>- <g transform="translate(862,228)">- <path d="M-13,11 L0,-14 L13,11 z" fill="none" stroke="#e8e8e8" stroke-width="1.6"/>- </g>- <text x="888" y="226" fill="#f2f2f2" font-size="17" font-weight="700" letter-spacing="1"- font-family="'Impact','Arial Black',sans-serif">KALI</text>- <text x="888" y="245" fill="#8a8a8a" font-size="11">deterministic pentest-tool runtime · kali-mcp server · built from docker/kali</text>-- <rect x="858" y="262" width="536" height="60" rx="4" fill="#101010" stroke="#9a9a9a" stroke-width="1.3"/>- <text x="874" y="285" fill="#e8e8e8" font-size="12.5" font-weight="700">[∞] kali-mcp (streamable-HTTP) · :8900</text>- <text x="874" y="304" fill="#8a8a8a" font-size="9.5">tools: kali_run (blocking) · aws_iam_enum · aws_iam_simulate · prowler_scan · record_finding · get_findings</text>- <text x="874" y="317" fill="#6a6a6a" font-size="9">one tool call at a time · verbatim returncode + output as evidence</text>-- <rect x="858" y="334" width="256" height="64" rx="4" fill="#141414" stroke="#4a4a4a"/>- <text x="874" y="356" fill="#e8e8e8" font-size="11" font-weight="700">CLI tooling (kali_run)</text>- <text x="874" y="374" fill="#8a8a8a" font-size="9.5">nmap · whatweb · nuclei · ffuf</text>- <text x="874" y="389" fill="#8a8a8a" font-size="9.5">sqlmap · Pacu · aws cli</text>-- <rect x="1138" y="334" width="256" height="64" rx="4" fill="#141414" stroke="#4a4a4a"/>- <text x="1154" y="356" fill="#e8e8e8" font-size="11" font-weight="700">artifacts + findings store</text>- <text x="1154" y="374" fill="#8a8a8a" font-size="9.5">/artifacts · findings.jsonl</text>- <text x="1154" y="389" fill="#8a8a8a" font-size="9.5">data-plane HTTP · :8901</text>-- <rect x="858" y="410" width="536" height="60" rx="4" fill="#0e0e0e" stroke="#6a6a6a" stroke-width="1.1"/>- <text x="874" y="432" fill="#cfcfcf" font-size="11" font-weight="700">cloud read-only collectors (optional)</text>- <text x="874" y="450" fill="#8a8a8a" font-size="9.5">Prowler · ScoutSuite · Cloudsplaining — run inside kali</text>- <text x="874" y="463" fill="#6a6a6a" font-size="9">AWS creds per stack (AWS_ACCESS_KEY_ID / SECRET / SESSION_TOKEN); empty = disabled</text>-- <!-- ==== PLAYWRIGHT MCP ==== -->- <rect x="836" y="502" width="582" height="150" rx="6" fill="#0b0b0b" stroke="#9a9a9a" stroke-width="1.6"/>- <text x="862" y="530" fill="#f2f2f2" font-size="15" font-weight="700" letter-spacing="1"- font-family="'Impact','Arial Black',sans-serif">PLAYWRIGHT-MCP</text>- <text x="862" y="548" fill="#8a8a8a" font-size="11">real browser · headless Chromium · image: mcr.microsoft.com/playwright/mcp</text>-- <rect x="858" y="562" width="536" height="76" rx="4" fill="#101010" stroke="#9a9a9a" stroke-width="1.3"/>- <text x="874" y="585" fill="#e8e8e8" font-size="12.5" font-weight="700">[∞] browser MCP · :8931/mcp (internal only)</text>- <text x="874" y="604" fill="#8a8a8a" font-size="9.5">tools: navigate · click · type · snapshot · evaluate (web surface for web-pentest skill)</text>- <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>-- <!-- ===================== 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>- <text x="368" y="746" fill="#9a7a7a" font-size="10.5">serves mistralai/mistral-large to Hermes</text>- <text x="368" y="763" fill="#8a6a6a" font-size="9.5">key: OPENROUTER_API_KEY (required, fail-closed)</text>- <text x="368" y="779" fill="#6a6a6a" font-size="9">the ONLY call that leaves the host (outbound HTTPS)</text>-- <!-- ===================== OODA + ATTACK PANEL ===================== -->- <rect x="700" y="784" width="740" height="168" rx="6" fill="#080808" stroke="#6a6a6a" stroke-width="1.4"/>- <text x="724" y="810" fill="#cfcfcf" font-size="13.5" font-weight="700" letter-spacing="1">THE OODA LOOP · ATT&CK AS THE ORIENT LANGUAGE</text>-- <!-- OODA nodes -->- <g transform="translate(772,878)">- <circle r="34" fill="#0d0d0d" stroke="#e8e8e8" stroke-width="1.6"/>- <text x="0" y="-4" font-size="13" font-weight="700" fill="#f2f2f2" text-anchor="middle">OBSERVE</text>- <text x="0" y="12" font-size="8.5" fill="#8a8a8a" text-anchor="middle">server_info</text>- </g>- <g transform="translate(930,878)">- <circle r="34" fill="#0d0d0d" stroke="#e8e8e8" stroke-width="1.6"/>- <text x="0" y="-4" font-size="13" font-weight="700" fill="#f2f2f2" text-anchor="middle">ORIENT</text>- <text x="0" y="12" font-size="8.5" fill="#b03a3a" text-anchor="middle">+ ATT&CK</text>- </g>- <g transform="translate(1088,878)">- <circle r="34" fill="#0d0d0d" stroke="#e8e8e8" stroke-width="1.6"/>- <text x="0" y="-4" font-size="13" font-weight="700" fill="#f2f2f2" text-anchor="middle">DECIDE</text>- <text x="0" y="12" font-size="8.5" fill="#8a8a8a" text-anchor="middle">alternatives</text>- </g>- <g transform="translate(1246,878)">- <circle r="34" fill="#0d0d0d" stroke="#e8e8e8" stroke-width="1.6"/>- <text x="0" y="-4" font-size="13" font-weight="700" fill="#f2f2f2" text-anchor="middle">ACT</text>- <text x="0" y="12" font-size="8.5" fill="#8a8a8a" text-anchor="middle">kali_run</text>- </g>-- <path d="M806,878 L892,878" fill="none" stroke="#cfcfcf" stroke-width="2" marker-end="url(#aLoop)"/>- <path d="M964,878 L1050,878" fill="none" stroke="#cfcfcf" stroke-width="2" marker-end="url(#aLoop)"/>- <path d="M1122,878 L1208,878" fill="none" stroke="#cfcfcf" stroke-width="2" marker-end="url(#aLoop)"/>- <path d="M1246,912 C1246,944 772,944 772,912" fill="none" stroke="#cfcfcf" stroke-width="2" stroke-dasharray="5 4" marker-end="url(#aLoop)"/>- <text x="1009" y="940" fill="#8a8a8a" font-size="9.5" text-anchor="middle">record evidence (technique_id) · 3 cycles without progress → report handoff</text>- <text x="930" y="832" fill="#b03a3a" font-size="9" text-anchor="middle">"which tactic comes next?"</text>- <path d="M930,836 L930,842" fill="none" stroke="#b03a3a" stroke-width="1.3" marker-end="url(#aLoop)"/>-- <!-- ===================== FLOWS ===================== -->- <!-- assistant -> API (request) -->- <path d="M262,330 C300,330 300,312 366,312" fill="none" stroke="#e8e8e8" stroke-width="2.4" marker-end="url(#aReq)"/>- <text x="314" y="304" fill="#e8e8e8" font-size="9.5" text-anchor="middle" font-weight="700">HTTP + Bearer</text>- <text x="314" y="316" fill="#8a8a8a" font-size="8.5" text-anchor="middle">POST /v1/runs</text>- <!-- API -> assistant (events) -->- <path d="M366,336 C300,336 300,360 262,360" fill="none" stroke="#7f8c8d" stroke-width="2" stroke-dasharray="6 5" marker-end="url(#aEvt)"/>- <text x="312" y="378" fill="#7f8c8d" font-size="9" text-anchor="middle">SSE events / status ↩</text>-- <!-- MCP client -> kali -->- <path d="M792,540 C816,540 816,292 858,292" fill="none" stroke="#e8e8e8" stroke-width="2.4" marker-end="url(#aReq)"/>- <text x="820" y="400" fill="#cfcfcf" font-size="9.5" text-anchor="middle" transform="rotate(-90 820 400)">MCP · kali:8900</text>- <!-- MCP client -> playwright -->- <path d="M792,556 C816,556 816,600 858,600" fill="none" stroke="#e8e8e8" stroke-width="2.4" marker-end="url(#aReq)"/>- <text x="824" y="582" fill="#cfcfcf" font-size="9.5" text-anchor="middle">MCP · :8931</text>-- <!-- Hermes -> OpenRouter -->- <path d="M500,650 C500,676 500,686 500,700" fill="none" stroke="#b03a3a" stroke-width="2.2" marker-end="url(#aLlm)"/>- <text x="516" y="684" fill="#b03a3a" font-size="9.5" text-anchor="start">LLM reasoning (HTTPS)</text>-- <!-- kali -> target -->- <path d="M1418,292 C1440,292 1440,292 1462,292" fill="none" stroke="#b03a3a" stroke-width="2.4" marker-end="url(#aTgt)"/>- <text x="1360" y="276" fill="#b03a3a" font-size="10.5" text-anchor="start" font-weight="700">→ AUTHORIZED TARGET</text>- <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"/>- <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)"/>- <text x="100" y="514" fill="#cfcfcf" font-size="10.5">request / call</text>-- <line x1="54" y1="534" x2="90" y2="534" stroke="#7f8c8d" stroke-width="2" stroke-dasharray="6 5" marker-end="url(#aEvt)"/>- <text x="100" y="538" fill="#cfcfcf" font-size="10.5">events / response</text>-- <line x1="54" y1="558" x2="90" y2="558" stroke="#b03a3a" stroke-width="2.2" marker-end="url(#aLlm)"/>- <text x="100" y="562" fill="#cfcfcf" font-size="10.5">LLM / target (outbound)</text>-- <line x1="54" y1="586" x2="286" y2="586" stroke="#2f2f2f"/>- <text x="54" y="608" fill="#f2f2f2" font-size="12" font-weight="700">HOST PORTS</text>- <text x="54" y="628" fill="#cfcfcf" font-size="9.5">:8642 Hermes API (Bearer)</text>- <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>-- <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>-</svg>diff --git a/configuration.md b/configuration.mddeleted file mode 100644index fed63e5..0000000--- a/configuration.md+++ /dev/null@@ -1,86 +0,0 @@-# Configuration (`.env`)--All keys and credentials live 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. The template `.env.example` documents-every variable.--The easiest way to produce a working `.env` is the installer — it only asks for your OpenRouter key-and auto-generates the two secret tokens:--```sh-./install.sh-```--To do it by hand, copy the template and fill in the values:--```sh-cp .env.example .env-```--## Required variables--| Variable | Required | Where to put it / how to get it |-| --- | --- | --- |-| `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`. Not required in Ollama mode (see below). |-| `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. |-| `VULNERATOR_MCP_INBOUND_TOKEN` | **Yes** | Inbound Bearer for the `vulnerator-mcp` front door, which is **up by default** in streamable-HTTP mode. Generate one with `openssl rand -hex 32` and paste it into the `.env`. The default stack is **fail-closed** on this: `docker compose up` aborts without it. It is a **separate** secret from `HERMES_API_SERVER_KEY` and gates a different edge. (The local **stdio** mode for Claude Code / Kiro does not need it.) |--> The installer (`./install.sh`) fills `OPENROUTER_API_KEY` from your input and auto-generates both-> `HERMES_API_SERVER_KEY` and `VULNERATOR_MCP_INBOUND_TOKEN` as separate 32-byte hex secrets.--## Optional — AWS (cloud collection)--Only needed if you are going to use the cloud collection tools (Prowler / ScoutSuite /-Cloudsplaining). If you are not auditing AWS, leave these empty. Use **read-only** credentials for-the account you are AUTHORIZED to audit.--| Variable | Required | Where to put it / how to get it |-| --- | --- | --- |-| `AWS_ACCESS_KEY_ID` | No | **Read-only** credential for the account you are AUTHORIZED to audit. |-| `AWS_SECRET_ACCESS_KEY` | No | Secret for that same credential. |-| `AWS_SESSION_TOKEN` | No | Only for temporary credentials (STS). |-| `AWS_REGION` | No | Default region (e.g. `us-east-1`). |--## Optional — model, ports, scoping--| Variable | Required | Where to put it / how to get it |-| --- | --- | --- |-| `OPENROUTER_MODEL` | No | Overrides the OpenRouter model Hermes reasons with. Empty = the profile default (`mistralai/mistral-large-4-0`). **Caveat:** the project uses Mistral Large on purpose because models like Claude (`anthropic/*`) refuse the authorized-offensive pentest framing (OpenRouter/Anthropic returns "violative cyber content"); overriding with such a model may make the agent refuse to work. |-| `VULNERATOR_MCP_HOST_PORT` | No | HOST port to publish the `vulnerator-mcp` streamable-HTTP server. By default it publishes **no** host port (internal docker network only). Set this **and** uncomment the service's `ports:` block in `docker-compose.yml` to publish on a controlled machine. |-| `HERMES_API_HOST_PORT` | No | HOST port where Hermes' `:8642` API server is published. Empty = `8642`. |-| `KALI_MCP_HOST_PORT` | No | HOST port where `kali-mcp` is published for host-side inspection. Empty = `8900`. |-| `KALI_ARTIFACTS_TOKEN` | No | Shared token for the Kali artifacts data channel. |-| `PROWLER_STATUS` / `PROWLER_REGIONS` / `PROWLER_SERVICES` / `PROWLER_TIMEOUT` | No | Scope the Prowler cloud scan. Empty = compose defaults. |--The rest of the `.env.example` variables come with sane defaults; leave them empty unless you need-to change them.--## Local inference with Ollama (optional)--By default Hermes reasons with Mistral Large on OpenRouter. If you prefer to run the model yourself,-point Hermes at an [Ollama](https://ollama.com) endpoint (OpenAI-compatible) instead. This is-**opt-in** and fully controlled from the `.env`:--| Variable | Required | Where to put it / how to get it |-| --- | --- | --- |-| `OLLAMA_BASE_URL` | No | Empty = use OpenRouter (default). Set it to an Ollama OpenAI-compatible endpoint to use Ollama instead: `http://host.docker.internal:11434/v1` for a local host Ollama, or `http://<host>:11434/v1` for a remote one. When set, `OPENROUTER_API_KEY` is **not** required. |-| `OLLAMA_MODEL` | No | The Ollama model name used in Ollama mode, e.g. `qwen2.5-coder:32b`. |--At startup the stack branches on `OLLAMA_BASE_URL`: when it is empty the OpenRouter path is used-exactly as before (and a missing `OPENROUTER_API_KEY` still aborts startup); when it is set, the-startup script runs `hermes config set model.provider custom`, `model.base_url <OLLAMA_BASE_URL>`-and `model.default <OLLAMA_MODEL>`, so Hermes talks to Ollama.--Caveats before you rely on it:--- **Context window (hard blocker):** Hermes refuses to start against an endpoint serving less than- ~64K tokens of context, and Ollama defaults to as low as 4K. Raise it **server-side** where Ollama- runs with `OLLAMA_CONTEXT_LENGTH=64000` (it cannot be raised through the API).-- **Networking:** make Ollama listen on all interfaces (`OLLAMA_HOST=0.0.0.0`) so the container can- reach it. On Linux, reaching a host-run Ollama relies on the- `extra_hosts: ["host.docker.internal:host-gateway"]` mapping already set on `ooda-agent` (Docker- Desktop on macOS/Windows resolves `host.docker.internal` automatically).-- **Model suitability (experimental):** every pentest action routes through MCP, so the model must do- reliable tool/function-calling and must not refuse the authorized-offensive pentest framing. Parity- with Mistral-Large-on-OpenRouter is **not guaranteed** — treat local inference as experimental and- validate your chosen model before relying on it.diff --git a/design.md b/design.mddeleted file mode 100644index 59ddba2..0000000--- a/design.md+++ /dev/null@@ -1,110 +0,0 @@-# Design notes--Deep-dive on how `vulnerator-ai` works internally: the OODA loop, how it compares to public OODA-patterns, how evidence is persisted, and the web flank. The [README](../README.md) carries the-usage-facing summary; this page is the detail.--## The OODA loop: design and comparison--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` — 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`.--### Comparison with public OODAs (what we learned)--Two public OODA skills/patterns were compared with ours:--- **`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`.--| Dimension | neurofoo (analysis) | rooda (execution) | **Our `pentest-ooda`** |-|---|---|---|---|-| 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 report-is emitted in English.--A redacted sample deliverable and its findings store live at-[`example-report.md`](example-report.md) and [`example-findings.jsonl`](example-findings.jsonl).--## 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).diff --git a/example-findings.jsonl b/example-findings.jsonldeleted file mode 100644index 11b0f48..0000000--- a/example-findings.jsonl+++ /dev/null@@ -1,6 +0,0 @@-{"title": "Device identified via JNAP GetDeviceInfo: Linksys MR7350 Dual-Band Mesh WiFi 6 Router, hardware v1, firmware 1.1.7.216943 (2026-08-20)", "state": "confirmed", "phase": "observe", "technique_id": "T1592", "target": "192.0.2.1:80,443/tcp (POST /JNAP/)", "evidence": {"command": "curl -sS --max-time 15 -X POST http://192.0.2.1/JNAP/ -H 'X-JNAP-Action: http://linksys.com/jnap/core/GetDeviceInfo' -H 'Content-Type: application/json' -d '{}'", "output": "{\"result\": \"OK\", \"output\": {\"manufacturer\": \"Linksys\", \"modelNumber\": \"MR7350\", \"hardwareVersion\": \"1\", \"description\": \"Linksys Dual-Band Mesh WiFi 6 Router\", \"serialNumber\": \"REDACTED\", \"firmwareVersion\": \"1.1.7.216943\", \"firmwareDate\": \"2026-08-20T23:58:42Z\", \"services\": [\"http://linksys.com/jnap/core/Core\", ... ~100 JNAP service URIs ...]}} [HTTP 200]", "returncode": 0}, "confidence": "high", "id": "a1b4d399a5734327a4787d80d8b40868", "recorded_at": "2026-10-16T18:24:04.424285Z"}-{"title": "Service/version inventory: dnsmasq 2.85 (53), lighttpd 1.4.39 (80/443/8080), SMB (139/445), MQTT (1883), UPnP Portable SDK 1.6.19 (49152); OS Linux 4.4.60", "state": "confirmed", "phase": "observe", "technique_id": "T1595", "target": "192.0.2.1 (ports 53,80,139,443,445,1883,8080,49152)", "evidence": {"command": "nmap -Pn -sV -T4 -p 53,80,139,443,445,1883,8080,49152 192.0.2.1", "output": "Nmap scan report for Router-EXAMPLE (192.0.2.1)\nHost is up (0.0025s latency).\nPORT STATE SERVICE VERSION\n53/tcp open domain dnsmasq 2.85\n80/tcp open http lighttpd 1.4.39\n139/tcp open netbios-ssn?\n443/tcp open ssl/http lighttpd 1.4.39\n445/tcp open microsoft-ds\n1883/tcp open mqtt\n8080/tcp open http lighttpd 1.4.39\n49152/tcp open upnp Portable SDK for UPnP devices 1.6.19 (Linux 4.4.60; UPnP 1.0)\nService Info: OS: Linux; CPE: cpe:/o:linux:linux_kernel:4.4.60\nSMB probe: Workgroup ROUTER-EXAMPLE\nNmap done: 1 IP address (1 host up) scanned in 129.78 seconds", "returncode": 0}, "confidence": "high", "id": "f77b618079c846138a8c192b0a161446", "recorded_at": "2026-10-16T18:24:04.443666Z"}-{"title": "Web admin interface served by lighttpd/1.4.39 on 80 and 443 (HTTP 200, X-Frame-Options: SAMEORIGIN, no-store); port 8080 also lighttpd/1.4.39 but returns 403 Forbidden", "state": "confirmed", "phase": "observe", "technique_id": "T1592", "target": "192.0.2.1:80,443,8080/tcp", "evidence": {"command": "curl -sS -I --max-time 15 http://192.0.2.1/ ; curl -sSk -I --max-time 15 https://192.0.2.1/ ; curl -sS -I --max-time 15 http://192.0.2.1:8080/", "output": "=== HTTP 80 ===\nHTTP/1.1 200 OK\nX-Frame-Options: SAMEORIGIN\nContent-Type: text/html; charset=UTF-8\nCache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0\nPragma: no-cache\nCONTENT-LANGUAGE: en\nServer: lighttpd/1.4.39\n=== HTTPS 443 ===\nHTTP/1.1 200 OK\n(same headers)\nServer: lighttpd/1.4.39\n=== HTTP 8080 ===\nHTTP/1.1 403 Forbidden\nContent-Type: text/html\nContent-Length: 345\nServer: lighttpd/1.4.39", "returncode": 0}, "confidence": "high", "id": "263e294268be40799d5b30e3070c0704", "recorded_at": "2026-10-16T18:24:04.451995Z"}-{"title": "Admin UI is the Linksys RAINIER web stack, UI build 1.0.99.216943 ('Linksys Smart Wi-Fi', RAINIER.browser JS framework, assets under /ui/1.0.99.216943/)", "state": "confirmed", "phase": "observe", "technique_id": "T1592", "target": "192.0.2.1:80/tcp (GET /)", "evidence": {"command": "curl -sS --max-time 15 http://192.0.2.1/ | head -c 3000", "output": "<title>Linksys Smart Wi-Fi</title>\n<meta name=\"description\" content=\"Included with your Linksys Smart Wi-Fi Router, ...\">\n<noscript><meta http-equiv=\"REFRESH\" content=\"0;url=/ui/1.0.99.216943/dynamic/script-disabled.html\"></noscript>\n<script ... src=\"/ui/1.0.99.216943/static/js/shared/shared-util.js\"></script>\n<script ... src=\"/ui/1.0.99.216943/static/js/any_device/jnap-simple.js\"></script>\nvar browser = RAINIER.browser, ...\nwindow.location.replace('/ui/1.0.99.216943/dynamic/login.html' + urlSuffix);\nRAINIER.shared.util.setCookie('visited-index', true, null, '/');", "returncode": 0}, "confidence": "high", "id": "5e76b2c05505474ca6da76f5cfa1479d", "recorded_at": "2026-10-16T18:24:04.458454Z"}-{"title": "HTTPS on 443 negotiates TLSv1.2 (ECDHE-RSA-AES256-GCM-SHA384, secp256r1) with a self-signed certificate CN=linksyssmartwifi.com issued by O=Belkin International, Inc.", "state": "confirmed", "phase": "observe", "technique_id": "T1592", "target": "192.0.2.1:443/tcp", "evidence": {"command": "curl -sSkv --max-time 15 https://192.0.2.1/ -o /dev/null 2>&1 | grep -Ei 'SSL connection|subject:|issuer:|TLS|cipher'", "output": "* SSL connection using TLSv1.2 / ECDHE-RSA-AES256-GCM-SHA384 / secp256r1 / rsaEncryption\n* subject: C=US; ST=California; O=\"Belkin International, Inc.\"; OU=\"Belkin International, Inc.\"; CN=linksyssmartwifi.com\n* issuer: C=US; ST=California; O=\"Belkin International, Inc.\"; OU=\"Belkin International, Inc.\"; CN=linksyssmartwifi.com", "returncode": 0}, "confidence": "high", "id": "ccb740a9412e42af8dab2ccf61844cc0", "recorded_at": "2026-10-16T18:24:04.465931Z"}-{"title": "JNAP management API exposed without authentication: unauthenticated POST /JNAP/ discloses full device info (model, serial, firmware) and the complete ~100-URI JNAP service surface on both 80 and 443", "state": "confirmed", "phase": "observe", "technique_id": "T1592", "target": "192.0.2.1:80,443/tcp (POST /JNAP/)", "evidence": {"command": "curl -sS --max-time 15 -X POST http://192.0.2.1/JNAP/ -H 'X-JNAP-Action: http://linksys.com/jnap/core/GetDeviceInfo' -H 'Content-Type: application/json' -d '{}' (no credentials, no session, no auth headers sent)", "output": "{\"result\": \"OK\", \"output\": {\"manufacturer\": \"Linksys\", \"modelNumber\": \"MR7350\", \"serialNumber\": \"REDACTED\", \"firmwareVersion\": \"1.1.7.216943\", \"services\": [ ... ]}} [HTTP 200] -- identical result over HTTPS 443. Note: the short action form '/jnap/core/GetDeviceInfo' returns {\"result\": \"_ErrorUnknownAction\"}; the canonical form 'http://linksys.com/jnap/core/GetDeviceInfo' returns OK.", "returncode": 0}, "confidence": "high", "id": "2903037fdefb4d7ab8946de51fe7c69a", "recorded_at": "2026-10-16T18:24:04.473228Z"}diff --git a/example-report.md b/example-report.mddeleted file mode 100644index bf55156..0000000--- a/example-report.md+++ /dev/null@@ -1,227 +0,0 @@-<!--- SAMPLE REPORT — for documentation only.- This is a real report produced by the `pentest-report` skill (report_gen.py) during an- authorized, operator-owned fingerprint engagement, then REDACTED for publication: the target- IP is replaced with the RFC 5737 documentation address 192.0.2.1, and the device serial number- and hostname are redacted. The report body below is the verbatim output of report_gen.py- (which emits English). See docs/example-findings.jsonl for the matching findings store.--->--# Pentest report — engagement `eng-linksys-mr7350-fingerprint`--- **Generated:** 2026-10-16T18:24:20Z-- **Total recorded findings:** 6--## Executive summary--The engagement confirmed **6** finding(s) with reproducible evidence. The technical detail, evidence and remediation for each are below. Items marked as hypothesis or partial require further verification and do not constitute confirmed exploitation.--## Summary by status--| Status | Count |-|---|---|-| Confirmed | 6 |-| Partial | 0 |-| Hypothesis | 0 |-| Discarded | 0 |--## Methodology--The engagement was driven by an **OODA** loop (Observe-Orient-Decide-Act), orienting by **MITRE ATT&CK** tactics and techniques and drawing on **PTES** and **OWASP** practices according to the surface (network, cloud, web). Each finding requires reproducible evidence of the executed command; there is no confirmed finding without proof.--## Findings--### Confirmed (6)--### F1. Device identified via JNAP GetDeviceInfo: Linksys MR7350 Dual-Band Mesh WiFi 6 Router, hardware v1, firmware 1.1.7.216943 (2026-08-20)--| Field | Value |-|---|---|-| Status | Confirmed |-| OODA phase | observe |-| ATT&CK technique | T1592 |-| Target | 192.0.2.1:80,443/tcp (POST /JNAP/) |-| Confidence | high |-| CVSS 3.1 | — (not scored) |-| CWE | — |--**Evidence:**--**Command:**-````-curl -sS --max-time 15 -X POST http://192.0.2.1/JNAP/ -H 'X-JNAP-Action: http://linksys.com/jnap/core/GetDeviceInfo' -H 'Content-Type: application/json' -d '{}'-````-**Return code:** `0`-**Output (verbatim, untrusted data):**-````-{"result": "OK", "output": {"manufacturer": "Linksys", "modelNumber": "MR7350", "hardwareVersion": "1", "description": "Linksys Dual-Band Mesh WiFi 6 Router", "serialNumber": "REDACTED", "firmwareVersion": "1.1.7.216943", "firmwareDate": "2026-08-20T23:58:42Z", "services": ["http://linksys.com/jnap/core/Core", ... ~100 JNAP service URIs ...]}} [HTTP 200]-````--### F2. Service/version inventory: dnsmasq 2.85 (53), lighttpd 1.4.39 (80/443/8080), SMB (139/445), MQTT (1883), UPnP Portable SDK 1.6.19 (49152); OS Linux 4.4.60--| Field | Value |-|---|---|-| Status | Confirmed |-| OODA phase | observe |-| ATT&CK technique | T1595 |-| Target | 192.0.2.1 (ports 53,80,139,443,445,1883,8080,49152) |-| Confidence | high |-| CVSS 3.1 | — (not scored) |-| CWE | — |--**Evidence:**--**Command:**-````-nmap -Pn -sV -T4 -p 53,80,139,443,445,1883,8080,49152 192.0.2.1-````-**Return code:** `0`-**Output (verbatim, untrusted data):**-````-Nmap scan report for Router-EXAMPLE (192.0.2.1)-Host is up (0.0025s latency).-PORT STATE SERVICE VERSION-53/tcp open domain dnsmasq 2.85-80/tcp open http lighttpd 1.4.39-139/tcp open netbios-ssn?-443/tcp open ssl/http lighttpd 1.4.39-445/tcp open microsoft-ds-1883/tcp open mqtt-8080/tcp open http lighttpd 1.4.39-49152/tcp open upnp Portable SDK for UPnP devices 1.6.19 (Linux 4.4.60; UPnP 1.0)-Service Info: OS: Linux; CPE: cpe:/o:linux:linux_kernel:4.4.60-SMB probe: Workgroup ROUTER-EXAMPLE-Nmap done: 1 IP address (1 host up) scanned in 129.78 seconds-````--### F3. Web admin interface served by lighttpd/1.4.39 on 80 and 443 (HTTP 200, X-Frame-Options: SAMEORIGIN, no-store); port 8080 also lighttpd/1.4.39 but returns 403 Forbidden--| Field | Value |-|---|---|-| Status | Confirmed |-| OODA phase | observe |-| ATT&CK technique | T1592 |-| Target | 192.0.2.1:80,443,8080/tcp |-| Confidence | high |-| CVSS 3.1 | — (not scored) |-| CWE | — |--**Evidence:**--**Command:**-````-curl -sS -I --max-time 15 http://192.0.2.1/ ; curl -sSk -I --max-time 15 https://192.0.2.1/ ; curl -sS -I --max-time 15 http://192.0.2.1:8080/-````-**Return code:** `0`-**Output (verbatim, untrusted data):**-````-=== HTTP 80 ===-HTTP/1.1 200 OK-X-Frame-Options: SAMEORIGIN-Content-Type: text/html; charset=UTF-8-Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0-Pragma: no-cache-CONTENT-LANGUAGE: en-Server: lighttpd/1.4.39-=== HTTPS 443 ===-HTTP/1.1 200 OK-(same headers)-Server: lighttpd/1.4.39-=== HTTP 8080 ===-HTTP/1.1 403 Forbidden-Content-Type: text/html-Content-Length: 345-Server: lighttpd/1.4.39-````--### F4. Admin UI is the Linksys RAINIER web stack, UI build 1.0.99.216943 ('Linksys Smart Wi-Fi', RAINIER.browser JS framework, assets under /ui/1.0.99.216943/)--| Field | Value |-|---|---|-| Status | Confirmed |-| OODA phase | observe |-| ATT&CK technique | T1592 |-| Target | 192.0.2.1:80/tcp (GET /) |-| Confidence | high |-| CVSS 3.1 | — (not scored) |-| CWE | — |--**Evidence:**--**Command:**-````-curl -sS --max-time 15 http://192.0.2.1/ | head -c 3000-````-**Return code:** `0`-**Output (verbatim, untrusted data):**-````-<title>Linksys Smart Wi-Fi</title>-<meta name="description" content="Included with your Linksys Smart Wi-Fi Router, ...">-<noscript><meta http-equiv="REFRESH" content="0;url=/ui/1.0.99.216943/dynamic/script-disabled.html"></noscript>-<script ... src="/ui/1.0.99.216943/static/js/shared/shared-util.js"></script>-<script ... src="/ui/1.0.99.216943/static/js/any_device/jnap-simple.js"></script>-var browser = RAINIER.browser, ...-window.location.replace('/ui/1.0.99.216943/dynamic/login.html' + urlSuffix);-RAINIER.shared.util.setCookie('visited-index', true, null, '/');-````--### F5. HTTPS on 443 negotiates TLSv1.2 (ECDHE-RSA-AES256-GCM-SHA384, secp256r1) with a self-signed certificate CN=linksyssmartwifi.com issued by O=Belkin International, Inc.--| Field | Value |-|---|---|-| Status | Confirmed |-| OODA phase | observe |-| ATT&CK technique | T1592 |-| Target | 192.0.2.1:443/tcp |-| Confidence | high |-| CVSS 3.1 | — (not scored) |-| CWE | — |--**Evidence:**--**Command:**-````-curl -sSkv --max-time 15 https://192.0.2.1/ -o /dev/null 2>&1 | grep -Ei 'SSL connection|subject:|issuer:|TLS|cipher'-````-**Return code:** `0`-**Output (verbatim, untrusted data):**-````-* SSL connection using TLSv1.2 / ECDHE-RSA-AES256-GCM-SHA384 / secp256r1 / rsaEncryption-* subject: C=US; ST=California; O="Belkin International, Inc."; OU="Belkin International, Inc."; CN=linksyssmartwifi.com-* issuer: C=US; ST=California; O="Belkin International, Inc."; OU="Belkin International, Inc."; CN=linksyssmartwifi.com-````--### F6. JNAP management API exposed without authentication: unauthenticated POST /JNAP/ discloses full device info (model, serial, firmware) and the complete ~100-URI JNAP service surface on both 80 and 443--| Field | Value |-|---|---|-| Status | Confirmed |-| OODA phase | observe |-| ATT&CK technique | T1592 |-| Target | 192.0.2.1:80,443/tcp (POST /JNAP/) |-| Confidence | high |-| CVSS 3.1 | — (not scored) |-| CWE | — |--**Evidence:**--**Command:**-````-curl -sS --max-time 15 -X POST http://192.0.2.1/JNAP/ -H 'X-JNAP-Action: http://linksys.com/jnap/core/GetDeviceInfo' -H 'Content-Type: application/json' -d '{}' (no credentials, no session, no auth headers sent)-````-**Return code:** `0`-**Output (verbatim, untrusted data):**-````-{"result": "OK", "output": {"manufacturer": "Linksys", "modelNumber": "MR7350", "serialNumber": "REDACTED", "firmwareVersion": "1.1.7.216943", "services": [ ... ]}} [HTTP 200] -- identical result over HTTPS 443. Note: the short action form '/jnap/core/GetDeviceInfo' returns {"result": "_ErrorUnknownAction"}; the canonical form 'http://linksys.com/jnap/core/GetDeviceInfo' returns OK.-````--## Scope and limitations--This report reflects only the findings recorded during the engagement against operator-authorized targets. Responsibility for the scope rests with the operator. The included evidence is raw tool output, presented verbatim.-------> **Note.** This is a redacted sample of a real `pentest-report` artifact produced by Vulnerator AI-> (report body generated verbatim by `report_gen.py`). The target address is the RFC 5737-> documentation range (192.0.2.1); the device serial number and hostname were redacted. Product and-> version strings are left intact as they identify the product, not a specific unit.diff --git a/http-api.md b/http-api.mddeleted file mode 100644index 5d55816..0000000--- a/http-api.md+++ /dev/null@@ -1,122 +0,0 @@-# Driving Hermes over the raw HTTP API (`:8642`)--> This is the **low-level** path. For most assistants (Claude Code, Kiro, Cursor, BugTraceAI) the-> recommended way to pilot an engagement is the MCP front door — see the **"Driving a pentest →-> From an MCP client"** section in the [README](../README.md). The MCP server is a thin wrapper-> over exactly the endpoints documented here, so this page is the reference for the underlying-> contract (and for CI scripts / plain `curl`).--Hermes exposes an **OpenAI-compatible** API server (enabled in the profile,-`agent-ooda/profile/config.yaml` → `platforms.api_server`). It lets an assistant or script-**trigger and observe** a pentest over HTTP without entering the `hermes chat` TUI.--**Role of the external caller: 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-class models reject the offensive framing of authorized pentesting). The caller only sends-the engagement prompt and reads the events; it must **not** try to "think" the pentest or-reinterpret the Kali tools.--**Authentication:** every call carries `Authorization: Bearer <HERMES_API_SERVER_KEY>` (the same key-from the `.env`).--## Two access modes--**Mode A — published port (default).** The compose publishes `:8642` to the host (configurable with-`HERMES_API_HOST_PORT`, default `8642`). Call `http://localhost:8642` directly:--```sh-export KEY=$(grep '^HERMES_API_SERVER_KEY=' .env | cut -d= -f2)--# alive?-curl -s http://localhost:8642/health # -> {"status":"ok","platform":"hermes-agent","version":"..."}-```--**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-# 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-```--All the `curl` calls below are the same in both modes; only the prefix changes (direct host vs.-`docker compose exec ooda-agent`).--## Main flow (runs API)--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) 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": "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) 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) 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) (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": "Focus on port 445 first."}'--# 4) (Optional) Interrupt the run.-curl -s http://localhost:8642/v1/runs/run_abc123/stop \- -H "Authorization: Bearer $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.--## Alternative: `POST /v1/chat/completions` (OpenAI-compatible)--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 \- -H "Authorization: Bearer $KEY" \- -H "Content-Type: application/json" \- -d '{- "model": "hermes-agent",- "messages": [{"role": "user", "content": "Authorized pentest against 10.0.0.0/24 (scope: that /24 only). Report confirmed findings with evidence."}]- }'-```--## Pattern an assistant/script should follow--1. `GET /health` to confirm the stack is alive.-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 (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`).--The caller **does not decide** the tools nor reinterpret the Kali output: that is Hermes' job. Its-role is to trigger, observe and summarize.--## Security note--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). See the-**Security & scope** section of the [README](../README.md): there is no scope-guard or authorization-gate by default; responsibility for the scope rests entirely with the operator.diff --git a/security.md b/security.mddeleted file mode 100644index 0e2be6f..0000000--- a/security.md+++ /dev/null@@ -1,73 +0,0 @@-# Security & scope--> ⚠️ **By default this product has no guardrails: no scope-guard, no consent, no audit, no-> authorization gate.** Hermes runs directly whatever it decides against the target. This is-> **intentional.** Use it **only against explicitly authorized targets** and in a **controlled-> environment**. All responsibility for the scope and for lawful use rests with the operator.--There are two things you *can* turn on, and it helps to know what each does and does **not** cover.--## The opt-in scope-guard (`kali_run` / `kali_exec`)--A deterministic (code, not prompt) gate that validates the destination of every raw-shell action-**before** executing it. It lives inside the Kali MCP, in front of the two raw-shell runners. It-does **not** touch the cloud tools (Prowler/Pacu/IAM) or the browser MCP.--It activates **only** if a scope file exists and contains `enabled: true`; with no file, behavior is-identical to the default (no gate). When active it is **fail-closed**: a destination that is not-allowed — or a call where Hermes did not declare its `targets` — fails with a structured-`SCOPE_VIOLATION` and does not execute. Every violation is logged into the findings store as a-`discarded` record, so an attempt to leave scope is auditable in the report.--Turn it on:--1. Copy the template and edit it with your lab's allowed destinations (`scope.json` is git-ignored):-- ```sh- cp scope.example.json scope.json- ```-- ```json- {- "enabled": true,- "allow": [{ "cidr": "10.0.0.0/24" }, { "host": "juice-shop" }],- "deny": [{ "cidr": "10.0.0.1/32" }],- "ports": [80, 443, 3000]- }- ```-- - `allow`: `{cidr}` matches an IP against a CIDR; `{host}` is a **literal** hostname match (no- DNS, a suffix does not match). `deny` takes **priority** over `allow`. `ports` is optional:- when set, only those ports are allowed when the target carries one.--2. Uncomment the bind-mount in `docker-compose.yml` (kali service) so the file lands at- `/scope/scope.json`, then recreate the service. Create `scope.json` **before** `docker compose- up` so Docker mounts a file, not a directory.-- ```yaml- # volumes:- # - ./scope.json:/scope/scope.json:ro- ```-- **Strict `targets`:** with the scope active, Hermes **must** declare the `targets` argument (the- IP/host/URL the command touches) on `kali_run`/`kali_exec`, or the call is blocked. A best-effort- parse of the command is an extra belt that can only **block**, never approve — the declared- `targets` are the source of truth.-- **Kill-switch:** `SCOPE_ENFORCE=0` force-disables the guard even if the file says `enabled: true`.--## The MCP inbound token (`vulnerator-mcp` over HTTP)--When the `vulnerator-mcp` streamable-HTTP service is reachable, it is **fail-closed** on-`VULNERATOR_MCP_INBOUND_TOKEN` and every request must carry it as a Bearer. This gates **only** the-*client → vulnerator-mcp* edge. It does **not** re-protect the pre-existing `:8642` exposure (that-stays under its own `HERMES_API_SERVER_KEY` Bearer), and it is **not** a scope-guard — it controls-*who can reach the trigger*, not *what the engine is allowed to touch*. The local **stdio** mode has-no listener and needs no token.--## What none of this is--The scope-guard gates `kali_run`/`kali_exec` by destination; the inbound token gates reachability.-Neither is consent, a human-approval workflow, or a network firewall. The `scope` argument on the-MCP `start_pentest` tool is **advisory** (folded into the prompt for operator clarity), not an-enforced constraint. The hard brake is the opt-in scope-guard above.diff --git a/usage.md b/usage.mddeleted file mode 100644index fc97c48..0000000--- a/usage.md+++ /dev/null@@ -1,171 +0,0 @@-# Driving a pentest--Three ways to pilot an engagement, from simplest to most programmatic. All of them drive the same-OODA loop; pick by how you work.--## 1. Interactive TUI (`hermes chat`)--```sh-docker compose up -d --build-docker compose exec -it ooda-agent hermes chat-```--`hermes chat` opens the agent's REPL. Ask for a pentest in natural language; Hermes drives the OODA-and runs tools on Kali directly via `kali_run` (talking to `kali:8900`). The container's command-`hermes gateway run` also keeps Hermes' API server alive on `:8642`, which powers ways 2 and 3.--## 2. From an MCP client — recommended for assistants--If your tooling speaks **MCP** (Claude Code, Kiro, Cursor, BugTraceAI, …), the stack ships-**`vulnerator-mcp`** (`docker/mcp/`): a thin MCP server that wraps Hermes' runs API and exposes it-as MCP tools. It wraps, it does **not** replace, the HTTP API — it exposes **only** the runs-lifecycle, so the client stays a trigger/observer and never the brain. It never exposes-`/v1/chat/completions` or any raw `kali_run`.--**Five tools + a health check**, mapped 1:1 onto the runs API:--| Tool | Does |-| --- | --- |-| `start_pentest(input, scope, …)` | starts a run; returns `{run_id, status, replayed}` |-| `get_run_status(run_id)` | the full run object (status + `completed`/`partial`/`interrupted` + output + usage) |-| `stream_run_events(run_id, cursor, …)` | pages the lifecycle events with a `seq` cursor (`{events, next_cursor, done}`); also emits one MCP progress notification per page over streamable-HTTP |-| `steer_run(run_id, input)` | injects a correction mid-run; surfaces the `409 run_not_accepting_steer` verbatim |-| `stop_run(run_id)` | stops the run; returns the full run object |-| `health()` | upstream health (`{status, platform, version}`) |--Event/status/output payloads are forwarded verbatim as **untrusted data** (never interpreted).--### Local — stdio (recommended for Claude Code / Kiro)--Zero network surface: the client spawns the server as a subprocess over stdin/stdout — no listener,-no token, no port. Build the image once and add an `mcpServers` entry:--```sh-docker build -f docker/mcp/Dockerfile -t vulnerator-ai-mcp:dev .-```--```json-{- "mcpServers": {- "vulnerator-mcp": {- "command": "docker",- "args": [- "run", "-i", "--rm",- "--add-host", "host.docker.internal:host-gateway",- "-e", "HERMES_API_SERVER_KEY",- "-e", "HERMES_API_BASE_URL=http://host.docker.internal:8642",- "vulnerator-ai-mcp:dev"- ],- "env": { "HERMES_API_SERVER_KEY": "<your HERMES_API_SERVER_KEY>" }- }- }-}-```--The upstream Bearer is a pass-through of `HERMES_API_SERVER_KEY` (no second secret for the hop). On-Docker Desktop `host.docker.internal` resolves out of the box; on stock Linux the `--add-host`-above is what makes it resolve (or point `HERMES_API_BASE_URL` at the host's reachable address).--### In-docker / remote — streamable-HTTP (up by default)--The streamable-HTTP service is part of the default stack, reachable on the internal network at-`http://vulnerator-mcp:8700` (an in-docker consumer like a BugTraceAI container reaches it there-with no extra steps). It is **fail-closed** on `VULNERATOR_MCP_INBOUND_TOKEN` (`docker compose up`-aborts without it) and every request must carry `Authorization: Bearer <VULNERATOR_MCP_INBOUND_TOKEN>`-(the `/healthz` route is the one exception). Host publication is **off by default** — set-`VULNERATOR_MCP_HOST_PORT` and uncomment the service's `ports:` block in `docker-compose.yml` to-publish on a controlled machine. See [`security.md`](security.md) for the threat model.--## 3. Raw HTTP API (`:8642`)--For CI scripts or plain `curl`, Hermes exposes an OpenAI-compatible API server directly on `:8642`-(the same endpoints `vulnerator-mcp` wraps). Full reference — access modes, the runs flow,-`chat/completions`, and the request/response contract — in [`http-api.md`](http-api.md).--# Practice against a lab target (Juice Shop)--To practice the `web-pentest` skill without going out to the internet or touching real systems,-the repo ships an **optional** target override, `docker-compose.target.yml`, that adds an-[OWASP Juice Shop](https://owasp.org/www-project-juice-shop/) service. Juice Shop is a-**deliberately-vulnerable** web application (OWASP project), the de facto standard for practicing-web pentesting (XSS, SQLi, broken auth, etc.).--The installer can bring it up for you:--```sh-./install.sh --with-juice-shop-```--Or layer both compose files by hand:--```sh-docker compose -f docker-compose.yml -f docker-compose.target.yml up -d --build-```--The target joins the **same internal docker network** and publishes **no port to the host**, so it-only exists inside the docker environment — scoping the exercise to a controlled lab. Hermes/Kali-reach it by its DNS name at **`http://juice-shop:3000`**. Point an engagement at that URL, e.g. via-the interactive TUI:--```sh-docker compose -f docker-compose.yml -f docker-compose.target.yml exec -it ooda-agent hermes chat-# then ask, in natural language:-# "Authorized web pentest against http://juice-shop:3000 (scope: that host only).-# Enumerate, fingerprint, and test for injection/auth flaws. Report confirmed findings."-```--This is the authorized target for practicing the `web-pentest` skill. Only the web lab is in scope-here (no AD or other labs for now).--# Start clean between exercises--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 # stops the containers and DELETES Hermes' state volume-docker compose up -d # starts with fresh state (the profile regenerates from agent-ooda/)-```--In a single line:--```sh-docker compose down -v && docker compose up -d-```--## What is deleted and what is kept--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/`.--| What | Does it survive `down -v` + `up`? |-|---|---|-| 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) |--Notes:--- 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.--## Alternative: new session without deleting the volume--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 <new-session-name>-```--This does not delete the previous memory; it just avoids dragging it into the new conversation.