Repository navigation
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
Open
randomizedcoder wants to merge 1 commit into
randomizedcoder wants to merge 1 commit into
Conversation
… 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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-verify20261206T181854-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
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.Store.LoadAndLockruns 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 firesgo_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.--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.socatjoins 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 oldbin/*glob rejected.Harness lessons (run 1, all encoded in the findings row)
SYSTEM:runs its command throughsh -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).docker starthas no--entrypointflag — the entrypoint is set atdocker 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.