Skip to content

redteam: rt-11-13 — the RT-6 attacks from a Docker-topology neighbor (CONFIRMED 21/21, the shared volume IS the attack) - #406

Open
randomizedcoder wants to merge 1 commit into
mainfrom
feat/redteam-rt-11-13
Open

randomizedcoder wants to merge 1 commit into
mainfrom
feat/redteam-rt-11-13

Conversation

@randomizedcoder

Copy link
Copy Markdown
Owner

Task 5.8's deferred leg (the plan: "rt-6-2/6-3/6-4 applied from a privileged neighbor; repeat here in the Docker topology"). All four legs green — CONFIRMED, 21/21, 20261206T180851-173217a25-1948319 + solo re-verify 20261206T181854-173217a25-2105850 (21/21).

The verdict

The RT-6 attacks land from a neighbor with no exploit and no capability — the shared volume is the attack (the #400/#401 delivery legs; no new issue — the plan's "privileged neighbor" overstates the requirement).

The legs

Leg The measured finding
THEFT (#400) The neighbor (a real xtcp2 co-tenant, the tier-3 cap shape, BOTH victim volumes rw) unlinks the victim twin's LIVE socket (0600 in docker's 0755 bind dir — the rt-6-3 private-parent defense never runs on a pre-mounted dir) and binds its own fake at the path. The twin keeps running, /metrics stays 200, records keep flowing (catcher 22346→24168 through the theft) — and no function="listener" series exists in the exposition at all: there is no daemon-side counter for a stolen socket path, the operator's probe is the only detector.
POISON (#401) The neighbor overwrites the LIVE baseline file through the rw mount and it is LATENT — Store.LoadAndLock runs at startup only (12 s with the poison in place: delta ≈0, baseline_ready=1), then any restart (crash, upgrade, node reboot) loads it as a healthy baseline and fires go_link_monitor_up_links_delta = −99997 — the fake ~100k alert from one neighbor write. The restart's stale-unlink re-take of the path is both the only theft recovery and the poison's trigger.
NOCAP A capability-less co-tenant (--cap-drop=ALL — not even xtcp2's two fatal caps; it parks as busybox sleep) unlinks a live socket through the rw volume all the same — uid 0 owns the shared dir, owner-write needs no CAP_DAC_OVERRIDE. The volume mount, not any cap, is the attack.

Harness

  • socat = pkgs.pkgsStatic.socat joins the attacker tools tar (the neighbor's fake-socket bind); the tar's static check now verifies exactly what it copies (per-name) with busybox's applets kept as their own scoped check — socat's bin/ ships a shell script that the old bin/* glob rejected.
  • The scenario (the 55th matrix row) auto-generates from the file; the 55-row matrix runs on the branch head before this PR merges.

Harness lessons (run 1, all encoded in the findings row)

  1. The scratch image has no /bin/sh — socat's SYSTEM: runs its command through sh -c, so the fake-socket echo needs busybox docker-cp'd as /bin/sh (the rt-5-4 argv[0] lesson's flip side: the name must BE the applet you want).
  2. It has no /tmp either — docker cp needs an existing parent, so the poison rides the shared mount.
  3. docker start has no --entrypoint flag — the entrypoint is set at docker create.

Docs

  • docs/redteam-plan.md: rt-11-13 row VERIFIED.
  • docs/redteam-implementation.md: task 5.8 fully closed (rt-11-9..13) + the leg detail appended to the tier-3 DoD row.
  • vagrant/redteam/findings.md: the rt-11-13 row.
  • docs/security.md: "The shared-volume topology" — a shared volume is the world-writable parent (no chmod repairs it), the latent-poison-until-restart nuance, and the deployment invariant: never mount the daemon's socket dir or /var/lib/xtcp2 into another container.

… CONFIRMED 21/21, the shared volume IS the attack (#400/#401 legs, no new issue)

The deferred task-5.8 leg closed (the plan: 'rt-6-2/6-3/6-4 applied
from a privileged neighbor; repeat here in the Docker topology').

The topology: the victim twin (health on the shared UDS path, metrics
on loopback, its own baseline in the shared /var/lib/xtcp2, its own
catcher), a real xtcp2 neighbor container (the tier-3 cap shape, BOTH
victim volumes rw, busybox+socat docker-cp'd in — socat static joins
the attacker tools tar, and the per-name static check replaces the
bin/* glob so socat's shipped shell script does not gate the build),
and a capability-less co-tenant (docker create --cap-drop=ALL + cp
busybox + start, parked as busybox sleep).

THEFT (the #400 leg): the neighbor unlinks the victim twin's LIVE
socket (0600 in docker's 0755 bind dir — the rt-6-3 private-parent
defense never runs on a pre-mounted dir) and binds its fake at the
path; the twin keeps running, /metrics stays 200, records keep flowing
(catcher 22346→24168 through the theft), and NO function="listener"
series exists in the exposition — there is no daemon-side counter for a
stolen socket path, the operator's probe is the only detector.

POISON (the #401 leg): the neighbor overwrites the LIVE baseline file
through the rw mount and it is LATENT — Store.LoadAndLock runs at
startup only (12 s with the poison in place: delta ≈0, ready=1), then
ANY restart (crash, upgrade, node reboot) loads it as a healthy
baseline and fires go_link_monitor_up_links_delta = -99997 — the fake
~100k alert from one neighbor write. The restart's stale-unlink
re-take of the path (removing the attacker's fake, /healthz 200) is
both the ONLY theft recovery AND the poison's trigger.

NOCAP (the stronger result): a capability-less co-tenant (--cap-drop=ALL
— not even xtcp2's two fatal caps) unlinks a live socket through the rw
volume all the same — uid 0 owns the shared dir, owner-write needs no
CAP_DAC_OVERRIDE. The volume mount, not any cap, is the attack; the
plan's 'privileged neighbor' overstates the requirement.

Evidence: 20261206T180851-173217a25-1948319 (21/21) + solo re-verify
20261206T181854-173217a25-2105850 (21/21). The 55-row matrix runs on
the branch head before the PR merges.

Harness lessons (run 1, all encoded in the findings row): the scratch
image has NO /bin/sh — socat's SYSTEM: runs its command through sh -c,
so the fake-socket echo needs busybox docker-cp'd AS /bin/sh (the
rt-5-4 argv[0] lesson's flip side: the name must BE the applet you
want); it has no /tmp either — docker cp needs an existing parent, so
the poison rides the shared mount; and docker start has no
--entrypoint flag — the entrypoint is set at docker create.
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