LSN โ€” Local Sovereign Network

The Arch Oracle: How Breadth Decides Which Binary to Drop

The Broad Sweep โ€” Part 4

Classification: MEDIUM ยท Confidence: HIGH (first-party command capture)

Every letter in this series so far has looked at the back half of the breadth strategy โ€” the delivery. RedTail ships a binary for every architecture and brute-forces them when it cannot choose. Whisper enumerates thirty. Nexus falls back through four download tools. All of that answers the question how do I run on any machine? But there is a prior question the delivery cannot answer for itself: what machine is this? A multi-architecture dropper that carries a binary for x86, ARM, MIPS, and RISC-V still has to know which one to run, and on the strange embedded hardware breadth operators hunt, the ordinary way to find out โ€” uname โ€” may not exist, may be stripped, may be blocked. This letter is about the front half: the reconnaissance preamble that determines what the machine is, by every method at once, so the delivery can pick the right binary. It is the same philosophy as the payload, pointed at the host instead of the CPU: assume nothing, try everything.

The command log holds it in two forms. The simple form, run 726 times from 28 distinct addresses, is a one-line probe: busybox uname -s -v -n -m. The elaborate form is a single enormous one-liner that determines the machine's operating system, architecture, core count, CPU model, GPU, uptime, and login history โ€” each by a chain of fallbacks so exhaustive that it reads the raw /proc/cpuinfo flags when every normal method fails. It is a machine-fingerprinting oracle, and it is the breadth strategy's front end.

Determining the architecture by every possible method

The heart of the oracle is its architecture detection, because the architecture is the one fact the multi-architecture delivery absolutely must have. Read how many ways it asks:

arch=$(uname -m 2>/dev/null || /bin/uname -m 2>/dev/null || /usr/bin/uname -m 2>/dev/null
  || busybox uname -m 2>/dev/null
  || ( [ -f /proc/cpuinfo ] && grep -q "lm" /proc/cpuinfo && echo x86_64 )
  || ( [ -f /proc/cpuinfo ] && grep -q "CPU architecture: 8" /proc/cpuinfo && echo aarch64 )
  || ( [ -f /proc/cpuinfo ] && grep -q "CPU architecture: 7" /proc/cpuinfo && echo armv7l )
  || echo "")

It tries uname -m first. If that fails โ€” if uname is not in the path โ€” it tries the absolute paths /bin/uname and /usr/bin/uname. If those fail, it tries BusyBox's built-in uname. And if every form of uname is unavailable โ€” a real possibility on the most stripped-down embedded devices, which is precisely breadth's target population โ€” it does not give up. It reads /proc/cpuinfo directly and infers the architecture from the CPU's own advertised features: the presence of the lm (long mode) flag means a 64-bit x86 processor, so x86_64; the string CPU architecture: 8 is how an ARMv8 core describes itself, so aarch64; CPU architecture: 7 is ARMv7, so armv7l. When the tools that name the architecture are gone, the oracle reads the architecture off the silicon's own self-description.

That is the same instinct as RedTail's NOARCH loop, one layer earlier in the operation. RedTail, unable to identify the CPU, runs every binary until one works โ€” brute force at the delivery stage. This oracle, unable to run uname, reads /proc/cpuinfo flags โ€” brute force at the detection stage. Both refuse to be stopped by a missing tool; both substitute exhaustive alternatives where the normal path fails. The breadth philosophy is not only "carry a binary for everything." It is "assume the host will deny you even the basic tools, and route around every denial." The oracle is that assumption applied to reconnaissance.

The probe that throws its own answer away

The simple form of the oracle contains a detail that repays a second look: busybox uname -s -v -n -m is run with its output redirected to /dev/null. The command asks for the system name, version, node name, and machine architecture โ€” and then discards every word of the reply. Seven hundred and twenty-six times, from twenty-eight addresses, an operator runs a query and throws the result away.

A command whose output is discarded is not being run for its output. It is being run for its side effects โ€” whether it exists, whether it executes, what exit code it returns, how long it takes. The value of busybox uname >/dev/null is not the architecture string; it is the answer to a prior question: is BusyBox here, and does its uname run at all? On the tool-poor embedded devices breadth targets, that is not a given, and knowing it before relying on it matters. The discarded-output probe is the oracle testing its own instruments before it trusts them โ€” confirming that the fallback it will lean on when the real uname is missing is itself present and functional. It is reconnaissance about the reconnaissance: establish which detection tools work on this host, so the real fingerprinting a moment later does not fail halfway through on a tool that was never there.

That is a small thing, but it is the breadth philosophy in miniature once more. A depth operator on a known x86-64 server would never think to check whether BusyBox works, because it is not going to need BusyBox. A breadth operator, expecting hosts so stripped that even uname might be absent, checks its tools before it uses them, because on its target population any given tool is a coin flip. The discarded query is the operator patting its pockets before the job โ€” and the fact that it runs 726 times across 28 addresses says the pocket-check is a standard opening move of the whole breadth population, not one operator's quirk.

The oracle reads the same fields a miner shops for

What else the oracle collects tells you what the delivery is for. Beyond the architecture, it determines the core count (nproc, falling back to counting ^processor lines in /proc/cpuinfo), the CPU model (from lscpu, or /proc/cpuinfo's model name, or its Hardware line, or โ€” tellingly โ€” /proc/device-tree/model), the GPU (lspci | grep -i vga, lspci | grep -i nvidia, with BusyBox fallbacks), the uptime, and the login history via last.

This is the same shopping list the reconnaissance-layer letter found neofetch harvesting, and it means the same thing: an operator sizing a victim's value before spending a payload. Cores and CPU model measure how much mining the box can do; the GPU probe reaches for the jackpot; uptime hints at how stable and unattended the host is; last shows who else uses it. The breadth operator's oracle is a miner's appraisal, and the fact that it reaches for /proc/device-tree/model โ€” a field that exists on embedded and single-board hardware, the Raspberry Pis and routers and appliances of the world โ€” confirms the target population. This is a tool built to identify the small, strange, embedded devices that make up the Internet of Things, by name, and to weigh their mining worth. The delivery covers every architecture because the appraisal expects to find every architecture.

The two halves of one strategy

Set the oracle beside the delivery and the breadth strategy resolves into a single coherent shape with two halves. The front half โ€” this oracle โ€” asks what are you? of every host, by every method, refusing to be stopped by a missing tool. The back half โ€” the multi-architecture payload โ€” answers here is your binary, carrying or staging one for every answer the oracle might return. The oracle's exhaustiveness and the payload's exhaustiveness are the same design decision made twice: profile without assumptions, then deliver without assumptions. Neither half presumes anything about the host, because the whole strategy is built for a target set โ€” the entire diverse population of internet-exposed devices โ€” about which nothing can be presumed.

This is exactly what the depth strategy does not need, and the contrast is clarifying. The Go toolkit targets x86-64 servers. It knows its prey's architecture in advance, so it needs no arch oracle at all โ€” it ships one binary and runs it, because it already knows the answer the oracle would return. The complexity of an operator's reconnaissance is therefore proportional to the diversity of its target set: depth, aimed at one kind of machine, can skip the question entirely; breadth, aimed at every kind, must ask it exhaustively and answer it robustly. The arch oracle is not incidental sophistication. It is the necessary front end of any strategy that refuses to choose its architecture โ€” the price of breadth, paid in reconnaissance before a single byte of payload is chosen.

The probe that checks whether anyone is watching

One clause of the oracle is not reconnaissance of the host's hardware but reconnaissance of the host's nature, and it is the most interesting part. Wrapped in a ===SHELL_BEHAVIOR=== marker, the command deliberately runs two things that do not exist โ€” ./xxxxxx (a file that is not there) and xxxxxx (a command that is not installed) โ€” and captures the exact error each produces.

There is no benign reason to run a command you know will fail. The purpose is to read the shape of the failure. A real Linux shell returns specific, well-known errors โ€” No such file or directory for the missing file, command not found for the missing command โ€” with exact wording and exact exit codes. A fake shell โ€” an emulated environment, a sandbox, a honeypot that presents a convincing prompt but does not actually execute commands โ€” very often gets these wrong: it returns a generic error, or the wrong error, or no error, because faithfully reproducing the error behavior of a real shell for arbitrary nonexistent input is hard, and many analysis environments do not bother. By running known-bad input and inspecting the response, the oracle is fingerprinting whether it is standing in a real operating system or a trap. It is an anti-honeypot, anti-sandbox check, run before the payload, so the operator can decline to reveal their tooling to an environment that is watching.

That the honeypot captured this probe at all is a small irony worth naming: the sensor recorded the very command designed to detect the sensor. And it deepens the breadth picture. The oracle does not only ask what architecture are you? and how much can you mine? It also asks are you real? โ€” profiling not just the host's hardware but the host's trustworthiness as a place to operate. Breadth's exhaustiveness extends past the CPU to the environment itself: assume nothing, including that the machine you cracked is a machine at all.

Reconnaissance reveals strategy before the payload does

There is a diagnostic principle in the depth-versus-breadth contrast worth stating on its own, because it lets an analyst read an operator's strategy from its first actions rather than its last. The complexity of an operator's reconnaissance is a direct measure of how diverse a target set it is built for โ€” and target-set diversity is exactly what separates depth from breadth. So the reconnaissance, seen early, forecasts the payload not yet dropped.

An operator that opens with a single uname and proceeds is telling you it expects a homogeneous target โ€” most likely x86-64 servers โ€” because it is not bothering to handle the case where the machine is something else; it already knows, or assumes, what it is dealing with. That is the signature of depth, legible before the depth payload arrives. An operator that opens with the four-fallback uname chain, the /proc/cpuinfo flag inference, the /proc/device-tree/model read, and the BusyBox capability check is telling you the opposite: it expects anything, has prepared for anything, and is therefore carrying a payload set that covers anything. That is the signature of breadth, equally legible before the multi-architecture payload arrives. The reconnaissance is a declaration of the operator's threat model, made in the open, at the start of the session.

For a sensor, this is unusually valuable, because it means a session can be classified by its first few commands. Long before the drop โ€” long before there is a binary to analyze, a hash to match, a family to name โ€” the shape of the reconnaissance already says whether the thing on the wire is a narrow specialist or a cover-everything sweeper, and therefore what to expect next and how to prioritize the response. The oracle does not only tell the operator what the machine is. It tells the machine โ€” if the machine is watching โ€” what the operator is. Exhaustive reconnaissance is the tell of an operator who refuses to choose its targets, and refusing to choose targets is the whole of the breadth strategy, announced in its opening move.

Defense: the oracle is louder than the payload

The reconnaissance preamble is, for a defender, a better detection opportunity than the payload it precedes, for the same reason it was in the reconnaissance-layer letter: it runs first, and it is anomalous by construction.

The exhaustive fallback chain has no benign counterpart. No legitimate software determines a machine's architecture by trying uname four ways and then grepping /proc/cpuinfo for CPU-feature flags; no ordinary program reads /proc/device-tree/model and probes lspci for NVIDIA cards and runs ./xxxxxx to see how the shell errors. Each of these is unusual alone; strung together in one command they are a signature with essentially no false-positive rate โ€” the unmistakable front end of a multi-architecture dropper appraising a fresh victim. An endpoint rule that fires on the shape of this reconnaissance โ€” the multi-fallback uname chain, the /proc/cpuinfo flag-reading, the nonexistent-command shell probe โ€” catches the breadth operator at the appraisal step, before it has chosen a binary, before anything is dropped, at the earliest and cheapest point in the whole intrusion.

And the ===SHELL_BEHAVIOR=== probe is a gift specifically to honeypot and sandbox operators, because it is the attacker asking the question the defender most wants asked: is this real? A sensor that recognizes the anti-analysis check can respond to it โ€” can answer the probe convincingly enough to be trusted, or can flag the session as one run by an operator sophisticated enough to look for traps. The reconnaissance that was built to unmask the honeypot is, once understood, one of the clearest ways the honeypot unmasks the operator. The oracle looks at the machine to decide whether to proceed; the machine, if it is a sensor, looks back at the oracle and learns exactly what kind of adversary bothers to check.

Bounds and limits

DOCUMENTED, first-party: the simple probe busybox uname -s -v -n -m captured 726 times from 28 distinct source IPs; the elaborate fingerprinting one-liner determining OS, architecture (via uname fallbacks and /proc/cpuinfo flag inference for x86_64/aarch64/armv7l), core count, CPU model (including /proc/device-tree/model), GPU (lspci for VGA/NVIDIA), uptime, and last, together with a ===SHELL_BEHAVIOR=== block that runs the nonexistent ./xxxxxx and xxxxxx and captures their errors.

INFERRED, high confidence: that the architecture-detection chain is the front end of a multi-architecture delivery (its output is exactly the architecture label needed to select one binary from a set, and its /proc/cpuinfo fallbacks target the tool-poor embedded devices breadth operators hunt); that the hardware fields collected constitute a mining-value appraisal (the set โ€” cores, CPU model, GPU โ€” is the same one neofetch harvested for the same purpose). INFERRED, moderate confidence: that the ===SHELL_BEHAVIOR=== probe is an anti-honeypot/anti-sandbox check (running known-bad input to read error behavior is a recognized sandbox-detection technique, though the operator's intent โ€” environment fingerprinting versus deliberate evasion โ€” cannot be read off the command with certainty).

BOUNDED: the 726/28 counts are for the simple busybox uname probe; the elaborate one-liner's separate prevalence is not individually quantified here. These reconnaissance commands are attributed to the breadth ecosystem by their content โ€” arch-selection logic, embedded-device targeting, mining appraisal โ€” rather than tied by hard fingerprint to Whisper, Nexus, or RedTail specifically; like the reconnaissance-layer letter's neofetch, this oracle is more plausibly a shared grammar many breadth operators use than the private tool of one. And "assume the host may lack uname" is a capability the command demonstrates, not a claim that every host it ran on actually lacked it.

None of these bounds change the finding. The breadth strategy has a front half and a back half, and this letter is the front. Before it drops a binary, the breadth operator asks the machine what it is โ€” by four kinds of uname, by raw CPU flags when uname is gone, by device-tree model name, by GPU probe โ€” and asks, too, whether the machine is real, by watching how it fails a command that cannot succeed. The multi-architecture payload is only the visible answer. The oracle is the question, and the question is asked with exactly the same refusal to assume anything that makes the payload cover everything. Breadth does not begin at delivery. It begins at the first probe, and the first probe already assumes nothing โ€” not the tools, not the architecture, not even that the ground it stands on is real.

This closes The Broad Sweep. The series began with RedTail carrying a binary for every architecture and brute-forcing the ones it could not name; corrected who a stray Windows binary belonged to; mapped the bulletproof neighborhood behind the staging servers; and ends here, at the reconnaissance oracle that is the strategy's front door โ€” the exhaustive question that the exhaustive payload was always the answer to. Depth chooses its prey and needs to ask nothing. Breadth chooses everyone, and so must ask everything, of every host, by every method, before it commits a single byte.

โš  Personal capacity. Research published independently โ€” not reflecting employer views. Derived from passive observation of attacks against personal infrastructure. Full disclaimer โ†’
โ† Previous The Broad Sweep โ€” 4 / 4 Next โ†’