diff --git a/CHANGELOG.md b/CHANGELOG.md
index 0787469..2a2cbc3 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -8,7 +8,23 @@ fields, and state from an older version is read by a newer one.
There are no git tags. The hash next to a version is the commit that introduced
it; the current entry is the commit that adds this section.
-## 1.1.0 — 2026-11-21 — this change
+## 1.2.0 — 2026-11-21 — this change
+
+- **Red:** `vhost_discovery` fuzzes the Host header against one in-scope IP
+ (built-in list or `names=`), diffs status, byte count and `
` against a
+ baseline, and saves each deviation as evidence; plain HTTP only. `http_brute`
+ probes hidden paths from a built-in list, a comma list or a wordlist file
+ (comments allowed), treats 200/201/204/3xx/401/403 as hits, waits 100 ms
+ between requests and saves the first five 200/201 responses as evidence.
+- **Blue:** `web_log_audit` reads an nginx/apache access log: 2xx/3xx/4xx/5xx
+ split, top IPs, scanner user agents (sqlmap, nikto, nmap, gobuster, nuclei,
+ ...), SQLi/traversal/XSS patterns after percent-decoding the URI (deduplicated
+ per pattern) and source IPs with a 4xx/5xx burst.
+- Tests with local fixtures: a Host-routing origin, a path-routing origin with a
+ wordlist file, and a synthetic access log with encoded SQLi and traversal.
+ 456 checks. Coverage 79.6%.
+
+## 1.1.0 — 2026-11-21 — da4d9ab
The suite grows from reconnaissance into a red/blue/hardware toolset. No
existing tool changed behaviour or file format.
diff --git a/README.md b/README.md
index ef247dd..1e0a629 100644
--- a/README.md
+++ b/README.md
@@ -5,11 +5,11 @@ no Python in the serving path. It gives an agent real reconnaissance and real we
testing behind a scope gate that refuses everything until a rules-of-engagement
file says otherwise.
-**54 tools · 439 end-to-end checks · 340 fuzz cases · 79.0% line coverage · ~276 KiB**
+**57 tools · 456 end-to-end checks · 340 fuzz cases · 79.6% line coverage · ~292 KiB**
```
$ ./apex-twin --check
-{"version":"1.1.0","tools":54,...,"scope":{"loaded":true,...}}
+{"version":"1.2.0","tools":57,...,"scope":{"loaded":true,...}}
```
APEX TWIN was inspired by [ARTEX](https://github.com/Autumn-27/artex) (scope
@@ -149,7 +149,7 @@ closes a request whose head or body does not arrive within
---
-## Tools (54)
+## Tools (57)
### Scope and bookkeeping
@@ -249,6 +249,8 @@ command in the allowlist: a receiver is a scanner, a transmitter is an attack.
| `vuln_check` | Non-destructive verification of `/.git/HEAD`, `/.env` (keys only, values redacted), directory listing and `phpinfo`; raw response saved as evidence |
| `subdomain_enum` | Built-in wordlist (or your names) under one in-scope domain; every name is gate-checked before it is resolved |
| `cred_test` | HTTP Basic default credentials, max 20 attempts, 200 ms apart, stops on 429, refuses an endpoint that answers without auth |
+| `vhost_discovery` | Host-header fuzzing against one in-scope IP; reports names whose status, byte count or title differs from the baseline, with evidence |
+| `http_brute` | Built-in, comma or file wordlist for hidden paths; 200/201/204/3xx/401/403 are hits, 100 ms apart, evidence for the first five 200s |
### Blue team
@@ -257,6 +259,7 @@ command in the allowlist: a receiver is a scanner, a transmitter is an attack.
| `hardening_audit` | Read-only local posture: sshd_config, sysctl, `/etc/shadow` mode, world-writable `/etc` dirs, listening sockets, firewall files, SUID count; scored findings |
| `log_audit` | Auth-log summary: failures per IP (flagged at 5+), invalid users, accepted logins; paths limited to `/var/log/` and the state dir |
| `ioc_scan` | Walk a directory for `/dev/tcp` shells, `bash -i`, `base64|sh`, `curl|sh`, `nc -e`, `socat EXEC:`, setuid chmod, systemd units under `/tmp` |
+| `web_log_audit` | nginx/apache access log: status split, top IPs, scanner UAs, SQLi/traversal/XSS patterns (URL-decoded), 4xx/5xx bursts |
### ESP32
@@ -435,6 +438,8 @@ The full threat model, trust boundaries and a hardening checklist are in
| Radio scan | 3–300 s, always ends with `stopscan` |
| Credential attempts | 20 per call, 200 ms apart, stop on 429 |
| IOC scan | 20 000 files maximum, 100 findings, 1 MiB per file |
+| Path brute force | 200 paths per call, 100 ms apart |
+| vhost discovery | 100 names per call, 100 ms apart |
---
@@ -445,7 +450,7 @@ Flags are fixed: `-std=c99 -Wall -Wextra -Wpedantic -Werror` plus
```sh
make # apex-twin
-make test # version check + gate audit + 439 end-to-end checks
+make test # version check + gate audit + 456 end-to-end checks
make version-check # the five places that carry a version must agree
make gate-audit # static: every target-taking tool calls the gate
make asan # apex-twin-asan with ASan + UBSan
@@ -578,7 +583,7 @@ examples/ scope.json
## Status
-1.1.0. Built and run: 54 tools, 439 checks, 340 fuzz cases and 79.0% line
+1.2.0. Built and run: 57 tools, 456 checks, 340 fuzz cases and 79.6% line
coverage. The loop closes: a probe captures the exchange as a pair, a finding
points at it, `finding_update` gives it a state, an asset records the host it
came from, `cors_check`/`cookie_audit`/`http_options` turn a web answer into a
@@ -597,8 +602,9 @@ keeps the gaps visible.
1.x is the first stable line: the gate invariant and the on-disk JSON formats
(fields may be added, old files stay readable) are the compatibility promise.
-1.1 added the red, blue and ESP32 tool groups without changing any existing
-tool or file format.
+1.1 added the red, blue and ESP32 tool groups; 1.2 added vhost discovery,
+wordlist path brute-forcing and access-log analysis, again without changing an
+existing tool or file format.
Not yet wired into a fleet router, and there is no TLS interception.
diff --git a/SECURITY.md b/SECURITY.md
index c38e526..bab30c1 100644
--- a/SECURITY.md
+++ b/SECURITY.md
@@ -9,7 +9,7 @@ problem.
The supported line is the one printed by `apex-twin --version` for the tree you
built; this document ships with that same tree. At the time of writing the line
-is **1.1.x** (`src/apex.h`, `APEX_VERSION`). Security fixes land on the current
+is **1.2.x** (`src/apex.h`, `APEX_VERSION`). Security fixes land on the current
line. The 1.0 line promises that the on-disk JSON formats for findings, assets
and traffic only gain fields, so state stays readable; older builds are still
rebuilt rather than patched in place.
diff --git a/docs/apex-twin.1 b/docs/apex-twin.1
index cc5ba1a..956b9da 100644
--- a/docs/apex-twin.1
+++ b/docs/apex-twin.1
@@ -1,5 +1,5 @@
.\" apex-twin.1 - manual page for APEX TWIN
-.TH APEX-TWIN 1 "2026-11-21" "apex-twin 1.1.0" "User Commands"
+.TH APEX-TWIN 1 "2026-11-21" "apex-twin 1.2.0" "User Commands"
.SH NAME
apex-twin \- scope\-gated offensive\-security MCP server
.SH SYNOPSIS
diff --git a/src/apex.h b/src/apex.h
index 4af8988..d143799 100644
--- a/src/apex.h
+++ b/src/apex.h
@@ -15,7 +15,7 @@
#include "mcp.h"
-#define APEX_VERSION "1.1.0"
+#define APEX_VERSION "1.2.0"
#define APEX_MAX_OUT (1u << 20)
#define APEX_PATH_MAX 512
#define APEX_PATH_FULL 1024
diff --git a/src/tools_blue.c b/src/tools_blue.c
index 78df4b4..ccdc1eb 100644
--- a/src/tools_blue.c
+++ b/src/tools_blue.c
@@ -13,6 +13,7 @@
* None of these touch a network or change anything on disk. They are the
* "did anyone notice" half of an engagement: run them on the host you defend.
*/
+#include
#include
#include
#include
@@ -713,6 +714,296 @@ static void t_ioc_scan(mcp_conn *c, const mcp_json *args, void *user)
mcp_buf_free(&b);
}
+/* ----------------------------------------------------------- web_log_audit */
+
+typedef struct {
+ char ip[64];
+ int total;
+ int c4xx;
+ int c5xx;
+} web_ip;
+
+static const char *SCANNERS[] = {
+ "sqlmap", "nikto", "nmap", "masscan", "gobuster", "dirbuster", "ffuf",
+ "nuclei", "hydra", "zgrab", "acunetix", "nessus", "wpscan", "joomscan",
+ NULL
+};
+
+static const char *WEB_PATTERNS[] = {
+ "' or ", "union select", "../", "/etc/passwd", "