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: add redacted English sample pentest-report + findings store (linked from README; jsonl via explicit docs/ gitignore exception)
irraz1bf1c1185e3e
diff --git a/.gitignore b/.gitignoreindex f85e631..6d2ce89 100644--- a/.gitignore+++ b/.gitignore@@ -27,6 +27,9 @@ artifacts/findings-*.jsonreport-*.md*.pcap+# Excepción: muestra REDACTADA versionada a propósito como documentación (docs/).+# La IP es la de documentación RFC 5737 (192.0.2.1) y el nº de serie/hostname están redactados.+!docs/example-findings.jsonl# --- Estado de perfil de Hermes generado en pruebas ---profiles/diff --git a/README.md b/README.mdindex 74e50ea..c1d1f48 100644--- a/README.md+++ b/README.md@@ -573,6 +573,16 @@ leaves the report as an artifact on `:8901`. Structure distilled from public temsummary, table by status, methodology (OODA/ATT&CK/PTES/OWASP), findings with CVSS 3.1 + CWE andreproducible evidence, remediation. CVSS only for confirmed findings.+### Sample report++A real `pentest-report` artifact from an authorized, operator-owned fingerprint engagement is+included as a sample: [`docs/example-report.md`](docs/example-report.md), with its matching findings+store [`docs/example-findings.jsonl`](docs/example-findings.jsonl). Both are **redacted** (target IP+replaced with the RFC 5737 documentation address `192.0.2.1`; device serial and hostname removed) and+the report is translated to English. They show the end-to-end output: an OODA recon loop driven over+MCP, each finding recorded with its ATT&CK `technique_id` and verbatim command/output evidence, closed+by the generated Markdown report.+## The web flank (browser via MCP)The **`web-pentest`** skill covers phased web pentesting. It is not limited to `kali_run`: it combines thediff --git a/docs/example-findings.jsonl b/docs/example-findings.jsonlnew file mode 100644index 0000000..11b0f48--- /dev/null+++ b/docs/example-findings.jsonl@@ -0,0 +1,6 @@+{"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/docs/example-report.md b/docs/example-report.mdnew file mode 100644index 0000000..dea2473--- /dev/null+++ b/docs/example-report.md@@ -0,0 +1,228 @@+<!--+ 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 TRANSLATED to English and 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. Everything else is the+ verbatim tool output. See docs/example-findings.jsonl for the matching findings store.+-->++# Pentest report — engagement `eng-linksys-mr7350-fingerprint` (sample)++- **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.++This engagement was a **recon / technology fingerprint only** — no exploitation, no+brute-force, and no authentication attempts were performed, in line with the authorized scope.++## 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 (Gather Victim Host Information) |+| 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 (Active Scanning) |+| 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, English-translated sample of a real `pentest-report` artifact+> produced by Vulnerator AI. The target address is the RFC 5737 documentation range (192.0.2.1);+> the device serial number and hostname were redacted. Product/version strings are left intact as+> they identify the product, not a specific unit.