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: redesign architecture diagram (Vulnerator AI theme, English, more technical)
irrazb12967c46e74
diff --git a/README.md b/README.mdindex 89a53e1..3652773 100644--- a/README.md+++ b/README.md@@ -20,7 +20,7 @@ Three containers (the agent and two MCP servers) and the agent driving end to en## Architecture (3 containers)-+- **kali** — deterministic runtime for pentest and collection tools (nmap, Prowler,ScoutSuite, Cloudsplaining, ...). Exposes a `kali-mcp` server on `:8900` (and the artifactsdiff --git a/docs/architecture.svg b/docs/architecture.svgnew file mode 100644index 0000000..5bcbe9a--- /dev/null+++ b/docs/architecture.svg@@ -0,0 +1,252 @@+<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/docs/arquitectura.svg b/docs/arquitectura.svgdeleted file mode 100644index 2070d7a..0000000--- a/docs/arquitectura.svg+++ /dev/null@@ -1,275 +0,0 @@-<svg xmlns="http://www.w3.org/2000/svg" width="1320" height="860" viewBox="0 0 1320 860" font-family="'Segoe UI', 'Helvetica Neue', Arial, sans-serif">- <defs>- <marker id="arrow" markerWidth="11" markerHeight="11" refX="8" refY="5" orient="auto">- <path d="M0,0 L10,5 L0,10 z" fill="#3b6fb5"/>- </marker>- <marker id="arrowG" markerWidth="11" markerHeight="11" refX="8" refY="5" orient="auto">- <path d="M0,0 L10,5 L0,10 z" fill="#2a9e74"/>- </marker>- <marker id="arrowO" markerWidth="11" markerHeight="11" refX="8" refY="5" orient="auto">- <path d="M0,0 L10,5 L0,10 z" fill="#d99036"/>- </marker>- <marker id="arrowLoop" markerWidth="11" markerHeight="11" refX="8" refY="5" orient="auto">- <path d="M0,0 L10,5 L0,10 z" fill="#8a6fc4"/>- </marker>- <filter id="soft" x="-20%" y="-20%" width="140%" height="140%">- <feDropShadow dx="0" dy="2" stdDeviation="3.5" flood-color="#9aa7bd" flood-opacity="0.35"/>- </filter>- </defs>-- <rect width="1320" height="860" fill="#ffffff"/>-- <!-- Title -->- <text x="40" y="46" fill="#1b2b45" font-size="26" font-weight="700">vulnerator-ai · arquitectura del montaje</text>- <text x="40" y="70" fill="#5f7characterData" font-size="14"></text>- <text x="40" y="70" fill="#60748f" font-size="14">OODA pentest conducido por Hermes — pilotado desde Claude Code por HTTP</text>-- <!-- ===================== OPERATOR ===================== -->- <g filter="url(#soft)">- <rect x="36" y="104" width="236" height="286" rx="16" fill="#f7f9fc" stroke="#c3d0e2" stroke-width="1.5"/>- </g>- <text x="154" y="132" fill="#60748f" font-size="12" text-anchor="middle" letter-spacing="1.5">OPERADOR</text>-- <!-- pentester icon -->- <g transform="translate(154,196)">- <circle cx="0" cy="-16" r="22" fill="#5b7fb0"/>- <path d="M-31,40 a31,31 0 0 1 62,0 z" fill="#5b7fb0"/>- <path d="M-24,-27 q24,-18 48,0 l-6,6 q-18,-12 -36,0 z" fill="#2f4straightforward" />- <path d="M-24,-27 q24,-18 48,0 l-6,6 q-18,-12 -36,0 z" fill="#334e74"/>- </g>- <text x="154" y="258" fill="#1b2b45" font-size="16" font-weight="600" text-anchor="middle">Pentester</text>-- <!-- Claude Code box -->- <g filter="url(#soft)">- <rect x="62" y="282" width="184" height="92" rx="12" fill="#fdf4ec" stroke="#d99036" stroke-width="1.5"/>- </g>- <g transform="translate(88,312)">- <rect x="-6" y="-6" width="36" height="36" rx="9" fill="#d97a44"/>- <text x="12" y="19" font-size="21" text-anchor="middle" fill="#fff">✳</text>- </g>- <text x="162" y="312" fill="#8a5a28" font-size="15" font-weight="600" text-anchor="middle">Claude Code</text>- <text x="162" y="331" fill="#a06f3a" font-size="11" text-anchor="middle">asistente externo</text>- <text x="162" y="349" fill="#60748f" font-size="10.5" text-anchor="middle">dispara · observa · resume</text>- <text x="162" y="365" fill="#8495ab" font-size="10" text-anchor="middle">(no razona el pentest)</text>-- <!-- ===================== DOCKER HOST ===================== -->- <g filter="url(#soft)">- <rect x="312" y="96" width="972" height="520" rx="18" fill="#f4f9fe" stroke="#2a85d0" stroke-width="2"/>- </g>- <!-- docker whale icon -->- <g transform="translate(338,120)">- <rect x="0" y="6" width="11" height="9" fill="#2a9fe0"/>- <rect x="13" y="6" width="11" height="9" fill="#2a9fe0"/>- <rect x="26" y="6" width="11" height="9" fill="#2a9fe0"/>- <rect x="13" y="-4" width="11" height="9" fill="#2a9fe0"/>- <path d="M-6,17 q24,18 50,0 q6,-12 -4,-9 q-4,-9 -13,-3 q-12,-4 -12,7 q-14,-2 -17,5 z" fill="#1b7fc0"/>- </g>- <text x="388" y="130" fill="#1b5a92" font-size="14" font-weight="700">Docker host · docker-compose (red interna del proyecto)</text>- <text x="388" y="149" fill="#5f87ab" font-size="11">un stack completo por pentester · aislar con docker compose -p pentest-<nombre></text>-- <!-- ===================== OODA-AGENT (Hermes) ===================== -->- <g filter="url(#soft)">- <rect x="336" y="178" width="412" height="406" rx="14" fill="#f6f3ff" stroke="#7a5cff" stroke-width="1.8"/>- </g>- <g transform="translate(366,210)">- <circle cx="0" cy="0" r="16" fill="#8a6cff"/>- <path d="M-24,-3 q9,-6 16,0 q-8,3 -16,0 z" fill="#c3b4ff"/>- <path d="M24,-3 q-9,-6 -16,0 q8,3 16,0 z" fill="#c3b4ff"/>- <text x="0" y="6" font-size="16" text-anchor="middle" fill="#fff" font-weight="700">H</text>- </g>- <text x="392" y="206" fill="#5a3fc0" font-size="16" font-weight="700">ooda-agent</text>- <text x="392" y="224" fill="#8a78c4" font-size="11.5">Hermes · conductor del bucle OODA (el cerebro)</text>-- <!-- API server -->- <g filter="url(#soft)">- <rect x="358" y="246" width="368" height="60" rx="10" fill="#efeaff" stroke="#9a86e0" stroke-width="1.3"/>- </g>- <text x="374" y="272" font-size="18">🔌</text>- <text x="402" y="270" fill="#4a3a8c" font-size="13.5" font-weight="600">API server OpenAI-compatible · :8642</text>- <text x="402" y="290" fill="#7a6cb0" font-size="10.5">/v1/runs · /events (SSE) · /steer · /stop · /health — Bearer key</text>-- <!-- Perfil declarativo: prompts + skills -->- <g filter="url(#soft)">- <rect x="358" y="316" width="368" height="118" rx="10" fill="#f1edfb" stroke="#9b8cd0" stroke-width="1.2"/>- </g>- <text x="374" y="338" fill="#5a4a9c" font-size="11.5" font-weight="600">perfil declarativo (agent-ooda/ → /opt/data)</text>- <g transform="translate(374,350)">- <rect x="0" y="0" width="164" height="70" rx="8" fill="#fbfaff" stroke="#b3a6e0" stroke-width="1"/>- <text x="13" y="26" font-size="17">📜</text>- <text x="38" y="22" fill="#4a3a8c" font-size="12" font-weight="600">prompts</text>- <text x="38" y="39" fill="#7a6cb0" font-size="9.5">SOUL.md · ephemeral-system</text>- <text x="13" y="58" fill="#8a7cc0" font-size="9">identidad + system del OODA</text>- </g>- <g transform="translate(546,350)">- <rect x="0" y="0" width="164" height="70" rx="8" fill="#fbfaff" stroke="#b3a6e0" stroke-width="1"/>- <text x="13" y="26" font-size="17">🧩</text>- <text x="38" y="22" fill="#4a3a8c" font-size="12" font-weight="600">skills</text>- <text x="13" y="40" fill="#7a6cb0" font-size="9">pentest-ooda · attack-navigation</text>- <text x="13" y="54" fill="#7a6cb0" font-size="9">l3-recon · aws-pacu · web · report</text>- </g>-- <!-- MCP client -->- <g filter="url(#soft)">- <rect x="358" y="444" width="368" height="52" rx="9" fill="#eaf2fc" stroke="#5fa0e0" stroke-width="1.2"/>- </g>- <text x="374" y="476" font-size="17">🔗</text>- <text x="402" y="468" fill="#2d5a92" font-size="12.5" font-weight="600">cliente MCP · cero toolsets nativos</text>- <text x="402" y="485" fill="#5f87ab" font-size="10">toda la superficie de Hermes = los 2 MCP de la derecha</text>-- <text x="542" y="524" fill="#7a6cb0" font-size="10" text-anchor="middle">modelo conductor: mistralai/mistral-large-4-0</text>- <text x="542" y="539" fill="#9a8cc0" font-size="9" text-anchor="middle">(acepta el encuadre ofensivo autorizado)</text>-- <!-- ===================== KALI MCP ===================== -->- <g filter="url(#soft)">- <rect x="770" y="178" width="490" height="236" rx="14" fill="#eefafc" stroke="#17a8ba" stroke-width="1.8"/>- </g>- <g transform="translate(800,212)">- <path d="M-15,13 L0,-16 L15,13 z" fill="#17c0d4"/>- <circle cx="0" cy="-1" r="4.5" fill="#0c2b31"/>- </g>- <text x="828" y="206" fill="#0f7a88" font-size="16" font-weight="700">kali</text>- <text x="828" y="224" fill="#3f99a6" font-size="11.5">runtime de tools de pentest · servidor kali-mcp</text>-- <g filter="url(#soft)">- <rect x="794" y="246" width="442" height="56" rx="10" fill="#e2f6f9" stroke="#2bb6c9" stroke-width="1.2"/>- </g>- <text x="810" y="272" font-size="17">🔗</text>- <text x="838" y="270" fill="#0f6a78" font-size="13" font-weight="600">kali-mcp (streamable-HTTP) · :8900</text>- <text x="838" y="288" fill="#3f99a6" font-size="10">kali_run · iam_enum · prowler_scan · record_finding …</text>-- <g filter="url(#soft)">- <rect x="794" y="312" width="214" height="50" rx="9" fill="#e8f8fa" stroke="#239aac" stroke-width="1"/>- </g>- <text x="810" y="334" font-size="14">🛠️</text>- <text x="834" y="333" fill="#0f6a78" font-size="11.5" font-weight="600">tools CLI</text>- <text x="810" y="351" fill="#3f99a6" font-size="9">nmap · nuclei · ffuf · sqlmap · Pacu</text>-- <g filter="url(#soft)">- <rect x="1022" y="312" width="214" height="50" rx="9" fill="#e8f8fa" stroke="#239aac" stroke-width="1"/>- </g>- <text x="1038" y="334" font-size="14">📦</text>- <text x="1062" y="333" fill="#0f6a78" font-size="11.5" font-weight="600">artefactos + findings</text>- <text x="1038" y="351" fill="#3f99a6" font-size="9">/artifacts · findings.jsonl · :8901</text>-- <text x="794" y="388" fill="#3f99a6" font-size="10">cloud read-only (opcional): Prowler · ScoutSuite · Cloudsplaining — credenciales AWS por stack</text>-- <!-- ===================== PLAYWRIGHT MCP ===================== -->- <g filter="url(#soft)">- <rect x="770" y="430" width="490" height="130" rx="14" fill="#eefbf2" stroke="#36b06c" stroke-width="1.8"/>- </g>- <g transform="translate(800,464)">- <circle cx="0" cy="0" r="15" fill="#3fbf74"/>- <text x="0" y="6" font-size="16" text-anchor="middle">🎭</text>- </g>- <text x="828" y="458" fill="#1f8a4e" font-size="15" font-weight="700">playwright-mcp</text>- <text x="828" y="476" fill="#3f9e66" font-size="11">navegador real · Chromium headless</text>- <g filter="url(#soft)">- <rect x="794" y="492" width="442" height="52" rx="10" fill="#e4f7ea" stroke="#3fbf74" stroke-width="1.2"/>- </g>- <text x="810" y="520" font-size="17">🔗</text>- <text x="838" y="514" fill="#1f8a4e" font-size="12.5" font-weight="600">MCP del navegador · :8931/mcp</text>- <text x="838" y="532" fill="#3f9e66" font-size="10">navigate · click · type · snapshot · evaluate</text>-- <!-- ===================== OPENROUTER (external) ===================== -->- <g filter="url(#soft)">- <rect x="336" y="636" width="300" height="84" rx="13" fill="#fdf6ea" stroke="#d99036" stroke-width="1.6"/>- </g>- <g transform="translate(368,678)">- <circle cx="0" cy="0" r="18" fill="#e0a44a"/>- <text x="0" y="7" font-size="18" text-anchor="middle">☁️</text>- </g>- <text x="412" y="670" fill="#8a5a28" font-size="14" font-weight="700">OpenRouter</text>- <text x="412" y="689" fill="#a06f3a" font-size="10.5">proveedor LLM (remoto)</text>- <text x="412" y="706" fill="#b08048" font-size="9.5">Mistral Large · stateless · N llamadas paralelas</text>-- <!-- ============ OODA + ATT&CK PANEL ============ -->- <g filter="url(#soft)">- <rect x="662" y="636" width="622" height="192" rx="14" fill="#faf7ff" stroke="#8a6fc4" stroke-width="1.6"/>- </g>- <text x="682" y="662" fill="#5a3fc0" font-size="13.5" font-weight="700">El bucle OODA · ATT&CK como idioma del Orient</text>-- <!-- OODA circular nodes -->- <!-- Observe -->- <g transform="translate(726,730)">- <circle r="30" fill="#eef4fc" stroke="#3b6fb5" stroke-width="1.6"/>- <text x="0" y="-3" font-size="12" font-weight="700" fill="#2d5a92" text-anchor="middle">Observe</text>- <text x="0" y="13" font-size="8.5" fill="#5f87ab" text-anchor="middle">server_info</text>- </g>- <!-- Orient -->- <g transform="translate(858,730)">- <circle r="30" fill="#f3eefc" stroke="#8a6fc4" stroke-width="1.6"/>- <text x="0" y="-3" font-size="12" font-weight="700" fill="#5a3fc0" text-anchor="middle">Orient</text>- <text x="0" y="13" font-size="8.5" fill="#8a78c4" text-anchor="middle">+ ATT&CK</text>- </g>- <!-- Decide -->- <g transform="translate(990,730)">- <circle r="30" fill="#fdf4ec" stroke="#d99036" stroke-width="1.6"/>- <text x="0" y="-3" font-size="12" font-weight="700" fill="#8a5a28" text-anchor="middle">Decide</text>- <text x="0" y="13" font-size="8.5" fill="#a06f3a" text-anchor="middle">alternativas</text>- </g>- <!-- Act -->- <g transform="translate(1122,730)">- <circle r="30" fill="#eefaf2" stroke="#36b06c" stroke-width="1.6"/>- <text x="0" y="-3" font-size="12" font-weight="700" fill="#1f8a4e" text-anchor="middle">Act</text>- <text x="0" y="13" font-size="8.5" fill="#3f9e66" text-anchor="middle">kali_run</text>- </g>-- <!-- arrows between OODA nodes -->- <path d="M757,730 L826,730" fill="none" stroke="#8a6fc4" stroke-width="2" marker-end="url(#arrowLoop)"/>- <path d="M889,730 L958,730" fill="none" stroke="#8a6fc4" stroke-width="2" marker-end="url(#arrowLoop)"/>- <path d="M1021,730 L1090,730" fill="none" stroke="#8a6fc4" stroke-width="2" marker-end="url(#arrowLoop)"/>- <!-- loop back Act -> Observe -->- <path d="M1122,761 C1122,800 726,800 726,761" fill="none" stroke="#8a6fc4" stroke-width="2" stroke-dasharray="5 4" marker-end="url(#arrowLoop)"/>- <text x="924" y="796" fill="#8a6fc4" font-size="9.5" text-anchor="middle">registra evidencia (technique_id) · 3 sin progreso → handoff</text>-- <!-- ATT&CK note under Orient -->- <text x="858" y="686" fill="#7a6cb0" font-size="9" text-anchor="middle">"¿qué táctica toca ahora?"</text>- <path d="M858,690 L858,699" fill="none" stroke="#8a6fc4" stroke-width="1.3" marker-end="url(#arrowLoop)"/>-- <!-- ============ FLOWS ============ -->- <!-- Claude Code -> API server (HTTP) -->- <path d="M246,320 C290,320 300,276 358,276" fill="none" stroke="#3b6fb5" stroke-width="2.4" marker-end="url(#arrow)"/>- <rect x="250" y="288" width="104" height="30" rx="7" fill="#eef4fc" stroke="#b3c6e0"/>- <text x="302" y="301" fill="#2d5a92" font-size="9.5" text-anchor="middle" font-weight="600">HTTP + Bearer</text>- <text x="302" y="313" fill="#5f87ab" font-size="8.5" text-anchor="middle">POST /v1/runs</text>-- <!-- events back (SSE) -->- <path d="M358,294 C300,294 292,338 246,338" fill="none" stroke="#2a9e74" stroke-width="2" stroke-dasharray="6 5" marker-end="url(#arrowG)"/>- <text x="300" y="356" fill="#2a9e74" font-size="9" text-anchor="middle">eventos SSE / estado ↩</text>-- <!-- Hermes MCP client -> kali -->- <path d="M726,462 C748,462 748,274 794,274" fill="none" stroke="#3b6fb5" stroke-width="2.4" marker-end="url(#arrow)"/>- <text x="762" y="372" fill="#3b6fb5" font-size="9.5" text-anchor="middle" transform="rotate(-90 762 372)">MCP · kali:8900</text>-- <!-- Hermes MCP client -> playwright -->- <path d="M726,476 C748,476 748,518 794,518" fill="none" stroke="#3b6fb5" stroke-width="2.4" marker-end="url(#arrow)"/>- <text x="760" y="502" fill="#3b6fb5" font-size="9.5" text-anchor="middle">MCP · :8931</text>-- <!-- Hermes -> OpenRouter -->- <path d="M470,496 C470,560 470,590 470,636" fill="none" stroke="#d99036" stroke-width="2.2" marker-end="url(#arrowO)"/>- <text x="486" y="580" fill="#b08048" font-size="9.5" text-anchor="start">razonamiento LLM</text>-- <!-- kali -> target -->- <path d="M1236,274 C1270,274 1270,274 1296,274" fill="none" stroke="#17a8ba" stroke-width="2.2" marker-end="url(#arrow)"/>- <text x="1180" y="258" fill="#17a8ba" font-size="10" text-anchor="start">→ target autorizado</text>-- <!-- ============ LEGEND ============ -->- <g transform="translate(36,408)">- <rect x="0" y="0" width="236" height="200" rx="13" fill="#f7f9fc" stroke="#c3d0e2" stroke-width="1.2"/>- <text x="16" y="28" fill="#1b2b45" font-size="12.5" font-weight="700">Flujos</text>-- <line x1="16" y1="50" x2="48" y2="50" stroke="#3b6fb5" stroke-width="2.4" marker-end="url(#arrow)"/>- <text x="58" y="54" fill="#45586f" font-size="10.5">petición / llamada</text>-- <line x1="16" y1="74" x2="48" y2="74" stroke="#2a9e74" stroke-width="2" stroke-dasharray="6 5" marker-end="url(#arrowG)"/>- <text x="58" y="78" fill="#45586f" font-size="10.5">eventos / respuesta</text>-- <line x1="16" y1="98" x2="48" y2="98" stroke="#d99036" stroke-width="2.2" marker-end="url(#arrowO)"/>- <text x="58" y="102" fill="#45586f" font-size="10.5">LLM (OpenRouter)</text>-- <text x="16" y="134" fill="#1b2b45" font-size="12.5" font-weight="700">Puertos (host)</text>- <text x="16" y="156" fill="#45586f" font-size="10">:8642 API Hermes · :8900 kali-mcp</text>- <text x="16" y="174" fill="#45586f" font-size="10">:8901 artefactos · :8931 playwright (int.)</text>- <text x="16" y="192" fill="#8495ab" font-size="9.5">Claude Code dispara; Hermes razona el OODA</text>- </g>-</svg>