When you open-source a security product, the first thing a skeptic does is
not read your README. It is running your demo. If the demo is broken, your
launch is broken — and you will find out in the worst possible venue: the
comments section, in public, in real time.
Proxea ships with a docker-compose playground: the edge, the control plane,
a deliberately attack-worthy target, and attack scripts — enumeration,
credential stuffing, SQLi — so you can attack yourself and watch the defender
work. There was one problem: none of my machines can run Docker, so the stack
had never been executed end-to-end. Not once.
The fix was obvious in hindsight: if I cannot run the demo, make CI run it.
GitHub Actions gives you a Linux box with Docker for free. So I wrote a
workflow that builds the whole stack, boots it, attacks it with the real
attack scripts, and then asserts what the control plane actually recorded —
events, scores, deny decisions, honeypot hits. It runs on every push.
Then it started catching things. Four things, in four runs.
Bug 1: the demo had never worked
The very first run failed immediately: the target application crashed on
boot. FastAPI needed python-multipart for its /login form endpoint, and
the Dockerfile never installed it. Every single request to the upstream was
a 502.
That means the demo — the thing I was about to point the entire internet at —
had never once worked for anyone. This is the most embarrassing class of bug
there is, and it is also the most common one in launch week. CI caught it in
the first ten minutes.
Bug 2: the oracle the product exists to kill was still alive
This one was worse, because it was not a crash — it was a design flaw in the
core promise.
Proxea's ghost mode makes every denial byte-identical to the 404 page of a
stock nginx with no site configured. The point is to erase the oracle that
scanners rely on: the difference between "this path does not exist" and
"this path exists but you are not allowed". If those two cases produce
distinguishable responses, the attacker can map your application while you
think they are blind.
The smoke test probes both a honeypot path (denied by the edge) and a random
nonexistent path (passed through to the backend, which 404s). It compares the
two bodies byte for byte. They did not match: the edge's denial was the nginx
page, but the backend's own 404 was FastAPI's JSON — which also fingerprints
the framework you are running, a bonus leak.
The fix became ghost_pass_upstream_404: by default, upstream 404s are
rewritten to the identical nginx page; set it to true if your API contract
legitimately depends on JSON 404 bodies. It shipped in v1.8.1, and the smoke
test now verifies byte-identity in a real deployment on every push.
Bug 3: the README was lying
The demo README said: each docker compose run spawns a fresh container with
a fresh IP, so you can attack again after being banned. CI proved this false.
Docker's IPAM reuses the just-released address, so the second attack run
inherited the exact IP that the first run had just gotten banned at layer 4.
Every probe blackholed — connection timeouts with no answer at all.
Which is, of course, exactly what being banned is supposed to feel like. The
fix was honest documentation: the blackhole is the point, and if you want to
attack again immediately, recreate the edge — a fresh network namespace means
fresh firewall state, which is also how CI resets between scenarios now.
Bug 4: the tarpit worked too well
My favorite. Once the credential-stuffing scenario finally ran against a
fresh defender, the logs told the exact story the demo was designed to tell:
[01..05] status=401 the real target rejecting passwords
[06..08] status=404 nginx scored out — the login "stopped existing"
[09+] the tarpit holds — and then the attack script crashed
The script crashed because the tarpit was working. The edge accepts the
connection and drip-feeds the response body so slowly that the client burns
its timeout mid-read. The attack script's error handling did not expect a
response that starts and never finishes — an exception inside the exception
handler, the one place nothing catches it. The fix was three lines, but the
crash itself was the best evidence the tarpit is real: it was eating the
attacker's time so effectively that it broke the measurement.
The math
Four bugs, each of them fatal to credibility in a different way: a demo that
never booted, a design flaw in the core promise, a lie in the documentation,
and a crash in the attack tooling. Total cost: some hours of CI iteration,
in private, before anyone was watching.
The cost of discovering any one of them on launch day, in public, is not
measured in hours.
And the workflow does not stop existing now that launch is over. It runs on
every push, permanently. The demo cannot silently rot — the moment a commit
breaks the boot, the convergence, the scoring, the bans, or the control
plane's sight, CI goes red. For a security product, I cannot think of a
better sentence to be able to write than that one.
The workflow is .github/workflows/demo-smoke.yml
and the assertions live in demo/ci_smoke.py.
Both are boring to read, which is exactly the point.
