Skip to content

redteam: task 5.8 — RT-11 tier 3 (rt-11-9..12): 43/43 green, one new product finding (#389) - #390

Merged
randomizedcoder merged 2 commits into
mainfrom
feat/redteam-rt-11-9-rt-11-12
Dec 5, 2026
Merged

randomizedcoder merged 2 commits into
mainfrom
feat/redteam-rt-11-9-rt-11-12

Conversation

@randomizedcoder

@randomizedcoder randomizedcoder commented Dec 5, 2026 •

Copy link
Copy Markdown
Owner

Phase 5, task 5.8 — the RT-11 tier-3 rows. All four scenarios pass; two CONFIRMED, two BLOCKED. (Review fixes in 79375582b: quiet forks so the survives/dark branches can finish green, the family predicate now matches its label, the rt-11-12 P0 race closed, a SHAPE line next to the RESULT for the #386 leg, cleanup nits, and the matrix count corrected — it is 48, not 46.)

Results

Row Verdict Asserts Evidence The finding
rt-11-9 docker.sock kill CONFIRMED 11/11 20261204T104157-ad321054a-3536908 the socket is uid-equivalent root: a plain curl POST stop (204) or pkill over --pid host; no daemon-side counter can exist — the external arrival check is the only detector
rt-11-10 netfilter blind BLOCKED 13/13 20261205T020601-ad321054a-2280188 firewall tampering is only detectable via delivery health, and the counters DO page (queue fills ~30 s in; Write/Dial on the 30 s deadline + 3×30 s dials → attempts; the scrape blind is absence-only by construction)
rt-11-11 netns flood CONFIRMED 8/8 20261205T023850-ad321054a-2612158 new product finding — #389: the per-namespace collector inits (each locking an OS thread) pass the Go 2000-thread ceiling BEFORE the 4096 -maxNetns cap → fatal error: thread exhaustion, exit 2, the full-fleet blind; the bounds and the ceiling are mutually inconsistent
rt-11-12 netns entry poisoning BLOCKED 11/11 20261205T032136-ad321054a-3074828 the drop+re-add symlink poison is counted (Setns +10, SetnsAfterRetries +1) — and the measured shape is the #386 misattribution setns leg (host dumps under the tenant's name, 15 → 6679 records, the listener-port count frozen); a SHAPE line next to the RESULT flips when #386 lands

rt-11-13 stays deferred until after task 5.9 (it reuses the RT-6 rows) — the task row says so.

Docs

Harness lessons (encoded in-scenario + findings)

  1. RT_READ_TOKEN is empty until xtcp2_victim_read_token() runs — an authed scrape without it reads a permanent 0 (rt-11-10 runs 1–3 hung on a counter that never lit while the VM showed 226 queue drops). Every scenario now asserts the authed scrape answers 200 right after the token helper.
  2. || echo 000 double-prints on one line (curl -w has no trailing newline → 000000); tail -n1 cannot dedupe it. The fix is || true + exact equality (curl -w always prints by itself) — applied to every 000-style probe.
  3. Every metric read through a possibly-DEAD daemon is a vacuous 0 — check liveness first; a monotonic counter that appears to decrease is a dead-scrape proof, not a finding.
  4. The /run/netns entry file IS the nsfs bind mount — rm -f fails EBUSY (the drop must be ip netns del; the scenario and cleanup pre-clean idempotently).
  5. A wait_for-built fork can never finish green on its timeout side (the not_ok counts against both verdicts) — fork on the new quiet() helper and let each branch assert its observed shape.

Matrix

The matrix gains the four rows (44 → 48). The 48-row regression runs on the branch head (79375582b, post-review-fixes) after this push; the DoD row carries the number when it lands.

- rt-11-9 docker.sock kill: CONFIRMED 11/11 — the socket is uid-equivalent
  root (a plain curl POST stop, 204) or pkill over --pid host; no
  daemon-side counter can exist; the external arrival check is the only
  detector. Evidence 20261204T104157-ad321054a-3536908.
- rt-11-10 netfilter blind: BLOCKED 13/13 — the deliver blind lights the
  delivery-error family fast (the queue fills ~30 s in; queueFull +
  queue_depth per poll; Write/Dial on the 30 s deadline + 3x30 s dial
  cycle -> attempts; 226 evictions over 480 s in the calibration run);
  the scrape blind is absence-only by construction. Evidence
  20261205T020601-ad321054a-2280188.
- rt-11-11 netns flood: CONFIRMED 8/8 — the flood KILLS the daemon: the
  per-namespace collector inits (each locking an OS thread) pass the Go
  2000-thread ceiling BEFORE the 4096 -maxNetns cap: fatal error: thread
  exhaustion, exit 2, the catcher freezes (the full-fleet blind). Issue
  #389; the survives path is the regression guard. Evidence
  20261205T023850-ad321054a-2612158.
- rt-11-12 netns entry poisoning: BLOCKED 11/11 — the drop+re-add symlink
  poison is counted (Setns +10, SetnsAfterRetries +1) and the measured
  shape is the #386 misattribution setns leg (host dumps under the
  tenant's name, 15 -> 6679, the listener-port count frozen). Evidence
  20261205T032136-ad321054a-3074828.

Harness lessons encoded (findings rows): RT_READ_TOKEN is empty until
xtcp2_victim_read_token() runs (a scenario reading authed metrics
without it reads a permanent 0 — runs 1-3 of rt-11-10); || echo 000
double-prints on one line (curl -w has no trailing newline -> 000000);
every metric read through a possibly-dead daemon is a vacuous 0 (check
liveness first; a counter that decreases is a dead scrape); the
/run/netns entry IS the nsfs bind mount (rm -f fails EBUSY — the drop
must be ip netns del; pre-clean idempotently).

Docs: plan row rt-11-11 amended (CONFIRMED, #389); implementation task
5.8 DONE + the part-3 second-half row; RUNBOOK cells V for all 28 (the
P list is empty); findings rows for rt-11-9..12. Matrix: 46 rows.
…e, 48 not 46

1. rt-11-11's survives path was always red: wait_for not_oks on timeout
   and finish fails on any failed assertion, so a build that SURVIVES the
   flood could never finish BLOCKED green. New assert.sh helper quiet():
   a SILENT bounded poll — fork on quiet, assert the observed shape with
   ok, finish the shape's verdict. rt-11-10's family/delivery/scrape
   forks and rt-11-12's setns fork restructured the same way (each branch
   now asserts its shape green, so either verdict can finish green).
2. rt-11-10's family predicate now matches its label: family_ge checks
   dropped_total, queueFull, AND Write (drops_ge checked dropped_total
   only; metric_writes_ge was dead code — both replaced).
3. rt-11-12's N0/P0 snapshot moves to after the del + settle (a snapshot
   before the del races the collector's own 2 s poll — a record in the
   round-trip window made P1 > P0 and false-fired 'the poison did not
   land').
4. rt-11-12 emits a SHAPE line next to the RESULT (misattribution vs
   clean-vanish) so the #386 leg is visible in the log and flips when
   the fix lands.
5. cleanup: pkill parameterized on $RT1112_PORT; removes the twin's
   baseline + records files.
6. Both MET_CODE reads use || true + ${:-000} (the || echo 000 |
   tail -n1 form double-prints 000000 on a failed curl — the tail binds
   only to the echo).
7. implementation doc: the 5.8 row's findings parenthetical corrected
   (only the netns-flood death is #389; the docker.sock kill is a
   deployment-invariant finding) and the matrix count corrected to 48.

Re-verified solo after the restructures: rt-11-10 13/13 BLOCKED
(20261205T044330-1a5a5db1e-3510733), rt-11-11 8/8 CONFIRMED
(20261205T044835-1a5a5db1e-3660263), rt-11-12 11/11 BLOCKED
(20261205T045802-1a5a5db1e-3675844).
@randomizedcoder
randomizedcoder merged commit 52278ee into main Dec 5, 2026
1 check passed
randomizedcoder added a commit that referenced this pull request Dec 5, 2026
The final regression for PR #390: all 48 rows PASS under matrix
XTCP2_EXPECT control, including the three review-fix restructures
(rt-11-10 BLOCKED, rt-11-11 CONFIRMED, rt-11-12 BLOCKED — each fork
finished its expected verdict green, so the always-red-fork fix is
confirmed end-to-end, not just solo). DoD row closed.
@randomizedcoder

Copy link
Copy Markdown
Owner Author

Final regression: 48/48 green, 0 failed on 79375582b (redteam-matrix: 48 scenarios, 0 failed).

The three review-fix restructures each held under matrix XTCP2_EXPECT control — every always-red-fork fix is confirmed end-to-end, not just solo:

Row Verdict Matrix
rt-11-10 BLOCKED PASS
rt-11-11 CONFIRMED PASS
rt-11-12 BLOCKED PASS

DoD row closed in f9df793ab (48 rows, 0 failed + the solo re-verification evidence IDs). From my side this is ready to merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant