2 Commits
Author SHA1 Message Date
lotherk d81f51645b apex-twin 0.7.0: a loopback proxy that refuses what the scope refuses
apex-twin --proxy 8798 puts the gate in front of clients that do not speak
MCP: curl -x, a browser, an agent's fetch. Bind is loopback only.

- absolute-URI HTTP requests are parsed, checked with apex_scope_check() BEFORE
  the origin socket is opened, audited, and forwarded with the request line
  rewritten to origin form; headers lose Proxy-Connection/Connection and gain
  Connection: close;
- Content-Length bodies are forwarded; chunked request bodies are refused with
  501 rather than silently truncated;
- the exchange is stored through the same traffic store as http_capture, so
  proxied and explicit captures sit together;
- CONNECT is tunnelled blind and recorded as metadata (host, port, bytes),
  because this binary links no TLS stack; a half-close is propagated with
  shutdown so the tunnel ends when the client does;
- out of scope -> 403 with the gate's reason in the body and a deny line in
  audit.log.

The gate-bypass sabotage was seen red: with proxy_gate() skipped, the
out-of-scope request went out, 403 became 502, and the audit had no deny -
three checks failed.

197 checks, 40 tools. New systemd/apex-twin-proxy.service, loopback port,
no CAP_NET_RAW. Parser stores numbers unquoted; the proxy is serial on purpose.
2026-11-21 07:03:18 +00:00
lotherk d7bc372208 apex-twin 0.1.0: C99/POSIX offensive-security MCP server
Scope gate is the product: deny-by-default, deny beats allow, DNS answers
must stay inside allow_ip, port and radio-transmission are separate switches.
27 tools over libmcp: recon (in-process portscan, nmap, dns, tls, banner),
web (http_request, header audit, path discovery, sqli/xss leads), ESP32
Marauder serial bridge, findings with evidence, and 12 method playbooks.

56 end-to-end checks, seen red with the no-scope branch disabled.
Not yet wired into systemd or a fleet router.
2026-11-20 21:59:09 +00:00