Skip to content

redteam: Phase 3 (part 1) — admin abuse: telemetry redirection, heap-grep refuted, churn - #317

Merged
randomizedcoder merged 1 commit into
mainfrom
redteam/phase3-admin-abuse
Nov 23, 2026
Merged

randomizedcoder merged 1 commit into
mainfrom
redteam/phase3-admin-abuse

Conversation

@randomizedcoder

Copy link
Copy Markdown
Owner

What

Phase 3 of docs/redteam-plan.md, part 1: the admin-credential abuse rows that need no new fixtures. (Branched off the phase0-harness stack since #313 hasn't merged yet; rebase onto main after #313 lands if needed.)

Scenarios (findings.md rows, all with evidence)

  • rt-3-1 telemetry redirection — CONFIRMED (S2, by design): the admin chain works end-to-end — get → rewrite dest → Set soft-restarts the daemon into shipping every socket record to the attacker VM's catcher (122 lines within one poll). The RT-11 tier-4 blind rides the same Set (pinned: the victim's own catcher is dark 1674→1674 lines over 7 s), the detection gap is the Set audit line alone, Get/Set responses are redacted, and the restore is verified by a final Get. tcpDest note: the catcher must accept BEFORE the Set — the re-exec'd daemon dials once and never retries.
  • rt-3-5 pprof heap-grep — REFUTED: the plan's 'heap profile leaks bearer tokens' premise reflected core-dump thinking — a Go heap profile is stack/size metadata, not a memory image (the decompressed profile contains no 32-hex substring at all). /debug/pprof/cmdline is http.NotFound by construction. pprof is admin-gated 401/403/200. The protected-page finding remains valid for core dumps only. Plan row amended, severity S2 → S3.
  • rt-3-6 soft-restart churn — BLOCKED: 10/10 back-to-back Sets accepted, both TCP listeners survive, the catcher keeps reporting, every Set leaves an audit line, no UDS leak (docker diff). The churn rate itself is unbounded — the S3 residual.

Harness hardening included

pkill -f 'socat.*9999' matches its own ssh session's command line and kills it (exit 255) — the [s]ocat bracket trick; grep -c prints 0 and exits 1 (the || echo 0 double-count trap); fog warning lines must be stripped from evidence logs before protojson reads them.

Deferred (part 2)

rt-3-2 (S3 exfil — needs the Garage fixture), rt-3-3/rt-3-4 (poll/envelope abuse), rt-7-1/7-2/7-3 (artifact bombs — Garage), rt-7-4 (govulncheck wiring).

… heap-grep refuted, churn

rt-3-1 telemetry redirection (CONFIRMED): the admin chain works
end-to-end — get, rewrite dest, Set soft-restarts the daemon into
shipping every socket record to the attacker VM's catcher (122 lines
within one poll). The RT-11 tier-4 blind rides the same Set (pinned:
the victim's own catcher is dark 1674->1674 lines over 7s), the
detection gap is the Set audit line alone ('Set: reconfigure
requested' at the default debug level + xtcp_counts{function=Set}
start/reconfigure), Get/Set responses are redacted (rt-3-7's surface
held), and the restore is verified by a final Get. tcpDest note: the
catcher must accept BEFORE the Set — the re-exec'd daemon dials once
and never retries.

rt-3-5 pprof heap-grep (REFUTED): the plan's 'heap profile leaks
bearer tokens' premise reflected core-dump thinking — a Go
/debug/pprof/heap profile is stack/size metadata, not a memory image
(decompressed profile contains no 32-hex substring at all).
/debug/pprof/cmdline is http.NotFound by construction
(cmd/xtcp2/listeners.go:305). pprof is admin-gated 401/403/200. The
protected-page finding remains valid for core dumps only (process
privileges, beyond the admin credential). Plan row amended, severity
S2 -> S3.

rt-3-6 soft-restart churn (BLOCKED): 10/10 back-to-back Sets accepted,
both TCP listeners survive, the catcher keeps reporting, every Set
leaves an audit line, no UDS leak (docker diff: no /run/xtcp2
entries). The churn rate itself is unbounded — the S3 residual.

Harness hardening: pkill -f 'socat.*9999' matches its own ssh session's
command line and kills it (exit 255) — the [s]ocat bracket trick;
grep -c prints 0 AND exits 1 (the || echo 0 double-count trap); the
fog warning lines must be stripped from evidence logs before
protojson reads them.

Deferred (next session): rt-3-2 (S3 exfil — needs the Garage
fixture), rt-3-3/rt-3-4 (poll/envelope abuse), rt-7-1/7-2/7-3
(artifact bombs — Garage), rt-7-4 (govulncheck wiring).
@randomizedcoder
randomizedcoder merged commit 92d1fcb into main Nov 23, 2026
1 check passed
@randomizedcoder
randomizedcoder deleted the redteam/phase3-admin-abuse branch November 23, 2026 20:02
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