apex-twin 0.23.0: changelog, supported-version fix, dist carries both

CHANGELOG.md records every released increment from 0.1.0 to 0.23.0 with the
commit that introduced it and the reason for it: the gate, the guard, findings
and assets, traffic and the proxy, rewriting, webhook, web checks, the fuzzers,
coverage, the PTY radio simulator and the release gate. The current entry is
this commit; earlier hashes are from git log.

SECURITY.md no longer claims 0.19.x forever: the supported line is the one
apex-twin --version prints, with the current line named and a note that older
builds are rebuilt rather than patched and that state stays readable.

make dist now ships CHANGELOG.md next to README and SECURITY. README links it.

tests/run.py prints rc and stderr when a run produces no stdout; one
release-check run hit that once (before this diagnostic), the following run and
three parallel suite runs were clean. Kept strict: empty output is a failure,
not a retry.

Verified: make test 298/298 + gate audit; make release-check green through all
stages; tarball contains CHANGELOG.md and SECURITY.md.
This commit is contained in:
lotherk committed 2026-11-21 08:31:39 +00:00
1 parent 7b6f0bf7ef
commit 17a7a97b46
6 files changed
+197 -6

No files matched your search

+183
View File
@@ -0,0 +1,183 @@
# Changelog
APEX TWIN is a C99/POSIX scope-gated offensive-security MCP server. This file
records what changed in each version. The project is pre-1.0: minor versions may
change behaviour, but the finding/asset/traffic JSON formats only ever gained
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 0.23.0 entry is the commit that adds this file.
## 0.23.0 — 2026-11-21 — this change
- Add this changelog; every released increment now has a section and a commit.
- Fix the supported-version line in `SECURITY.md` (was 0.19.x) and remove the
claim that a fixed number can stay true; the authority is
`apex-twin --version`.
- `make dist` ships `CHANGELOG.md`.
- No code change: 45 tools, 298 checks, 340 fuzz cases, coverage unchanged.
## 0.22.0 — 2026-11-21 — 7b6f0bf
- `make distcheck`: build the tarball, unpack it into `mktemp -d`, run `make`
and `make test` there, remove it with a `trap`.
- `make release-check`: fail-fast gate-audit → test → test-asan → analyze →
fuzz → fuzz-proxy → fuzz-http → distcheck. Documented cost: 5–10 minutes and
the `example.com` network checks.
- Verified from a fresh clone.
## 0.21.0 — 2026-11-21 — 9188ddd
- `tests/gate_audit.py`: parses every `TOOLS_*[]` table and handler body
(comments and strings stripped) and enforces that a tool whose schema names a
`target` calls `gated()`/`gated_cmd()`/`apex_scope_check()`, and that a
handler using `http_once`/`tcp_connect_host`/`tcp_probe`/`apex_run` is gated.
- Four named exceptions for record filters: `asset_list`, `finding_list`,
`report_markdown`, `traffic_list`. Tool count pinned at 45.
- Wired first in `tests/run.sh`; `make test` now runs the audit before the suite.
- Red proof: renaming the gate call in `portscan` and `finding_add` produced
three violations and exit 1.
## 0.20.0 — 2026-11-21 — 6b52bcc
- `docs/operations.md`: install/DESTDIR, units and hardening, state and backup,
scope lifecycle and rule order, proxy/rewrite/webhook operation, upgrade,
limits, troubleshooting.
- `SECURITY.md`: trust boundaries, threat model, hardening checklist,
non-goals, reporting; a missing gate is the highest-severity report.
- `make dist`: `apex-twin-<version>.tar.gz` from `APEX_VERSION`, with source,
vendor, tests, docs, examples and units; no objects, build dirs, binary or
`.git`. Verified by building and testing the unpacked tarball.
## 0.19.0 — 2026-11-21 — adf6547
- `report_markdown format=json`: filters, counts by severity and status, finding
records and optional assets in one machine-readable file.
- Markdown and CSV unchanged. Red proof: dropping the asset list turned two
checks red.
## 0.18.0 — 2026-11-21 — e1e4670 (fix 32cb05b)
- PTY Marauder simulator in `tests/run.py`: positive tests for `info`, `help`,
`list`, `scanall` ending in `stopscan`, console `login:` still refused,
`serial_tx` allow/deny.
- Radio coverage 31.7% → 76.2%; 3 red checks for the guard and the stopscan.
- Follow-up `32cb05b`: clear `ECHO` on the PTY slave; the line discipline was
echoing the simulator's own prompts and made the login test flaky.
## 0.17.0 — 2026-11-21 — a00bcdb
- Proxy forwards `Transfer-Encoding: chunked` unchanged: hex size, extensions,
data, trailers, 1 MiB payload cap checked before reading data (413 over,
400 malformed), decided before connecting; capture keeps the framing.
- `Content-Length` is dropped when chunked is present. Red proof: disabling
chunked handling turned seven checks red.
## 0.16.0 — 2026-11-21 — a04b072
- `make coverage` with `-O0 --coverage` and `tests/coverage.py` (gcov, no
gcovr). 55.9% → 73.4% with gap tests for method/web/recon/traffic/radio.
- The `-O0` build exposed a real `guard.c` truncation that `-O2` hid; the reason
format is bounded now.
- Proxy and HTTP face shut down gracefully on SIGTERM/SIGINT so coverage data
is not lost; HTTP children `exit()` instead of `_exit()`.
- Corrected the technique count: 11, not 12.
## 0.15.0 — 2026-11-21 — ed4e326
- `tests/fuzz_http.py`: raw HTTP against `--http` (Content-Length abuse,
chunked, 8.5 MiB body, split head, invalid UTF-8, mutations).
- The HTTP face forks per connection, so the child's stderr is the judge; a
hang is a failure. Red proof: 2 checks red with a deliberate child bug.
## 0.14.0 — 2026-11-21 — a74aa0f
- `tests/fuzz_proxy.py`: mutated raw request heads against the live ASan proxy.
`ECONNRESET` after a rejected head is a close, not a failure; valid requests
must still return 200 (counted).
- Red proof: a deliberate parser overflow produced 3 failure lines.
## 0.13.0 — 2026-11-21 — 331b6da
- `tests/fuzz.py`: deterministic mutations of `scope.json`, `rewrite.json` and
JSON-RPC lines; any sanitizer report, signal or timeout fails.
- `fuzz-selftest` proves the detector with a real out-of-bounds program;
`fuzz-red` builds `APEX_FUZZ_BUG` and is rejected 3/3.
## 0.12.0 — 2026-11-21 — be4e833
- `make asan`, `make test-asan`, `make analyze` (gcc `-fanalyzer` per TU).
- The analyzer found a real `realloc` pattern in `vendor/libmcp/mcp.h`: the only
pointer was overwritten before the NULL check. Fixed with a temporary.
- Leak batches over error paths, captures and reports: no leaks.
## 0.11.0 — 2026-11-21 — f385979
- `make install` ships binary, README and both units with DESTDIR/PREFIX.
- `--check` and `capabilities` report `rewrite_rules` and
`webhook_configured` (boolean, never the URL).
## 0.10.0 — 2026-11-21 — 01dc9f3
- Proxy request rewriting from `$APEX_HOME/rewrite.json` (`APEX_REWRITE`):
first matching host/path rule sets/removes headers or blocks; scope still
runs first; SIGHUP reload; invalid file rejected whole.
- Rule named in the traffic note and audited. Red proof: 7 checks red with the
matcher disabled.
## 0.9.0 — 2026-11-21 — 88e7bd0
- Webhook after a finding at/above `APEX_WEBHOOK_MIN_SEVERITY` and on the
transition into `confirmed`; `notify_test`; argv-only curl call; never blocks
the finding; not part of the scope gate (operator infrastructure).
## 0.8.0 — 2026-11-21 — 7db2d11
- `cors_check` (reflect+credentials graded high), `cookie_audit`
(Secure/HttpOnly/SameSite), `http_options` (TRACE/PUT/DELETE), `whois`
(port 43 through the gate).
- Tests use a local routed origin so the checks are deterministic.
## 0.7.0 — 2026-11-21 — d81f516
- `--proxy`: loopback forward proxy, scope gate before connect, HTTP captured,
CONNECT blind tunnel with half-close propagation, 403 with the gate reason.
- `systemd/apex-twin-proxy.service`.
## 0.6.0 — 2026-11-21 — a99da93
- `http_capture` stores the request and raw response as one pair;
`traffic_list`/`traffic_read` read it back (text or base64).
- Found and fixed a real `status_code()` bug: the `1` of `HTTP/1.1` was read as
the status, so path discovery and the probes compared status 1.
## 0.5.0 — 2026-11-21 — c1eff9e
- Asset inventory: one file per target, gated on add, merged by target
(ports unioned, services latest), atomic update, report asset table.
- Found an uninitialised struct on the create path while making the merge test
red; fixed with `memset`.
## 0.4.0 — 2026-11-21 — 8546425
- Finding lifecycle `open`/`confirmed`/`false-positive`/`fixed` with
`finding_update`, one writer for add and update, atomic tmp+rename, status
and updated in report and CSV, status filter.
## 0.3.0 — 2026-11-21 — f5bbefc
- `guard_check`: deny rules first (rm/chmod on system paths, devices, power,
firewall, pipes to interpreters, `nc -e`, `/etc` writes), then the scope of
every target. Works without a scope; audited; never executes.
## 0.2.0 — 2026-11-21 — 4168a7d
- `report_markdown` (Markdown/CSV, severity table, filters, never overwrites),
`evidence_list`/`evidence_read` (text/base64, no path escape),
`scope_check` (gate answer without an action).
## 0.1.0 — 2026-11-20 — d7bc372
- First release: 27 tools, scope gate with ordered rules, findings and evidence
under `$APEX_HOME`, in-process TCP connect and HTTP, Marauder serial bridge,
method knowledge, MCP over stdio and loopback HTTP.
+1 -1
View File
@@ -152,7 +152,7 @@ dist:
@test -n "$(VERSION)" || { echo "dist: cannot read APEX_VERSION"; exit 1; }
rm -rf $(DISTNAME) $(DIST)
mkdir -p $(DISTNAME)
cp Makefile README.md SECURITY.md .gitignore $(DISTNAME)/
cp Makefile README.md SECURITY.md CHANGELOG.md .gitignore $(DISTNAME)/
cp -a src vendor tests docs examples systemd $(DISTNAME)/
find $(DISTNAME) -type f \( -name '*.o' -o -name '*.gcda' -o -name '*.gcno' \
-o -name '*.gcov' \) -delete
+3 -1
View File
@@ -23,6 +23,8 @@ separate, explicitly armed switch.
was deliberately left out.
- [SECURITY.md](SECURITY.md) — threat model, trust boundaries, hardening
checklist and how to report a problem.
- [CHANGELOG.md](CHANGELOG.md) — what changed in each version, with the commit
that introduced it.
## Build
@@ -458,7 +460,7 @@ the copied scope reason is now bounded with a precision, not left to snprintf.
## Status
0.22.0. Built and run: 45 tools, 298 checks, 340 fuzz cases and 76.7% line
0.23.0. Built and run: 45 tools, 298 checks, 340 fuzz cases and 76.7% 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
+6 -3
View File
@@ -7,9 +7,12 @@ problem.
## Supported versions
The current release line is **0.19.x** (`src/apex.h`, `APEX_VERSION`). Security
fixes land on the current line; older builds are expected to be rebuilt from
the current tree rather than patched in place.
The supported line is the one printed by `apex-twin --version` for the tree you
built; this document ships with that same tree and at the time of writing the
line is **0.23.x** (`src/apex.h`, `APEX_VERSION`). Security fixes land on the
current line. Older builds are expected to be rebuilt from the current tree
rather than patched in place; the JSON state formats only gained fields, so a
rebuild keeps the state readable.
## Reporting a vulnerability
+1 -1
View File
@@ -15,7 +15,7 @@
#include "mcp.h"
#define APEX_VERSION "0.22.0"
#define APEX_VERSION "0.23.0"
#define APEX_MAX_OUT (1u << 20)
#define APEX_PATH_MAX 512
#define APEX_PATH_FULL 1024
+3
View File
@@ -48,6 +48,9 @@ def run(msgs, home=None, extra_env=None):
env.update(extra_env)
proc = subprocess.run([BIN], input="\n".join(json.dumps(m) for m in msgs) + "\n",
capture_output=True, text=True, env=env, timeout=180)
if not proc.stdout.strip():
sys.stderr.write("run: empty stdout (rc=%r, stderr=%r)\n" %
(proc.returncode, proc.stderr[:400]))
out = []
for line in proc.stdout.splitlines():
if line.strip():