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 servers | Configure iptables/nftables or a cloud egress firewall | What 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 permit | Assert the policy file exists | A 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
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 filterWhere the evidence goes
evidence/run.log— full output; both gate lines.
What this does not prove
- This proves the pattern on one host. Datacenter enforcement against an adversary who controls the guest’s network stack needs the boundary outside the guest (host firewall, gateway) — MM-E18’s “independent firewalls that resist self-modification of network boundaries” clause is exactly that point.
- DNS indirection and abuse of an approved destination as a relay are real bypasses this demo does not close; MM-E18 lists layered detection as the companion control.