Security
Researchers demonstrate trusting-trust attack on entire Linux distribution via binary manipulation
A new security study shows how a classic compiler backdoor attack can be carried out through an ordinary build tool, infiltrating and corrupting an entire operating system supply chain.
Researchers have adapted Ken Thompson's foundational trusting-trust attack—long considered a threat unique to compilers—to target an entire Linux distribution through manipulation of binary build artifacts rather than source code.
The Attack Method#
The team constructed a complete proof-of-concept using GNU strip, a standard build utility that ordinarily strips debugging symbols from compiled binaries. By tampering only with the binary version of strip itself, the researchers showed how a malicious payload could be injected into finished ELF files during the build process. This approach bypasses the traditional assumption that such attacks require control over a compiler that inspects and generates source code.
Propagation Through NixOS#
When deployed within the bootstrap sequence of the NixOS Linux distribution, a single poisoned strip binary in the initial seed propagates across successive generations of strip itself—each newly built version carries forward the hidden payload. Crucially, the backdoor survives even after the original tampered binary is removed from the dependency chain, persisting into the final system environment.
Real-World Impact#
Testing on an actual nixpkgs revision demonstrated that the attack works without failures, producing a fully functional graphical installer while simultaneously injecting backdoors into nearly every binary it touches. This enables attackers to insert arbitrary malicious behavior into compromised packages throughout the distribution.
Why It Matters#
The research challenges long-held assumptions about supply chain security and the scope of binary-level threats, showing that even tools designed to be transparent to source code can become vectors for systematic system-wide compromise.

