Skip to Content
PoC BatteryP18 — Egress Allowlist

P18 — Approved-Destination Egress Allowlist

Status green · Claim PC16 · Corpus anchor matrix MM-E18; ch.7 egress row · Effort S · Execution host external: omarchy

What it proves

“Only approved destinations may be reached from inside the perimeter” is a control any operator can implement — not vendor magic. You will run one choke-point function that decides every outbound connection against an allowlist: the approved destination answers, the shadow destination is refused, and both go through the same code path, which is what makes the refusal meaningful.

Why it matters

After a frontier lab’s research environment was breached, its own post-incident fix was “Outbound access is being restricted to a tightly controlled set of approved destinations” (matrix MM-E18). The textbook files that under “exists today”. This run shows the pattern is a few lines of policy at a single choke point — the barrier to egress control is will and architecture, not invention. Ch.7 names the honest failure mode too: slow fragmentation under a rate ceiling, which this pattern does not claim to close.

Why this, not that

We do (Y)We don’t (X)Because
Localhost filter plus two local serversConfigure iptables/nftables or a cloud egress firewallWhat is provable on one host is the pattern — default-deny at a choke point; platform firewalls enforce it but differ per OS and prove nothing extra about the claim
Exercise the deny through the same fetch path as the permitAssert the policy file existsA deny that never traverses the permit path proves nothing about the filter; same-path is the whole test

What you need

  • Python 3.9+, standard library only. Nothing leaves the machine — both “destinations” are local servers.

How to run it

  1. python3 scripts/egress_allowlist.py — starts both servers, runs permit and deny through the filter, prints both gates.

What “done” looks like

python3 scripts/egress_allowlist.py # MUST print: # POC-P18-OK-APPROVED-PASS: allowlisted destination reachable through the filter # POC-P18-OK-DENIED-BLOCK: non-approved destination denied at the egress filter

Where the evidence goes

  • evidence/run.log — full output; both gate lines.

What this does not prove

Last updated on
Superdefence II — defensive security research.