Abstract
Can anyone show that a binary matches its source when the compiler that built it was itself built by an earlier binary? Karger and Schell’s 1974 evaluation of Multics described a compiler trap door that reinserts itself whenever the compiler is recompiled. Ken Thompson built one for Unix and described it in his 1984 Turing lecture. Reading source cannot find such an attack, but independent evidence about the binary can. Diverse double-compiling shows, under stated assumptions about a second trusted compiler, its environment and the comparison, that a compiler executable corresponds to its source. Bootstrappable builds replace large opaque compiler seeds with much smaller, auditable ones, though some binary seeds and drivers remain. Reproducible builds let third parties confirm that an artifact follows from stated inputs, yet a rebuilder that shares compromised tools or a compromised input reproduces the compromise. None says whether the inputs are benign. The XZ Utils backdoor of 2024 sat in the inputs, split between a release tarball and the repository it was supposed to match. Answering “is this safe?” needs correspondence checks and review of the inputs together.
Three questions about a binary
Anyone who installs a compiled program is relying on three separate claims. The source code they could read is benign. The binary they run was produced from that source. The tools that produced it did what their own sources say. Code review addresses the first. The second and third are claims about a build. Reading the source does not settle them, because the build is a process; what it leaves behind is whatever records and attestations it was set up to produce, and those are only as trustworthy as the process that wrote them.
The library’s reader on security design principles walks through Thompson’s three stages and gives a short comparison of diverse double-compiling with reproducible builds.
The Air Force report, 1974
A trap door that survives recompilation
Paul Karger and Roger Schell, then Air Force officers, published Multics Security Evaluation: Vulnerability Analysis (ESD-TR-74-193, Volume II) in June 1974. Section 3.4.5, on trap door insertion, sets out the problem in the terms that still apply. A trap door hidden in object code is best, because such a change “is completely invisible on system listings and can be detected only by comparing bit by bit the object code and the compiler listing.”1
The report then follows the defender’s obvious move. Object code trap doors are “vulnerable to recompilations of the module in question”, so maintainers could regularly recompile every module. That precaution “could play directly into the hands of the penetrator who has also made changes in the source code of the system”, and the penetrator “must be sure to change all extant copies of a module to avoid discovery by a simple comparison program.”1
The compiler trap door closes that loop. It “is inserted to permit object code trap doors to survive even a complete recompilation of the entire system.” Most of the Multics ring 0 supervisor was written in PL/I, so a penetrator could make the PL/I compiler notice when it was compiling a ring 0 module and insert an object code trap door “without listing the code in the listing. Since the PL/I compiler is itself written in PL/I, the trap door can maintain itself, even when the compiler is recompiled.”1 A footnote adds that the technique needs no high-level language: “Entirely analogous trap doors could be placed in an assembler.”1
Two further remarks in the same passage (pp. 52-53) bear on how the threat should be weighed. The authors judged compiler trap doors “significantly more complex” than the others they described, but “quite practical to implement at a cost of perhaps five times the level shown in Section 3.5”, and noted that “even costs several hundred times larger than those shown here would be considered nominal to a foreign agent.” They also described an initialization trap door, in which the system’s start-up code is modified to insert other trap doors as the system comes up, and which could be “relatively invulnerable” to detection and recompilation because initialization “is usually a very complex and poorly understood procedure.”1
The compiler trap door remained a proposal; the team did not build one. What they did plant was a separate, ordinary trap door. Their 2002 retrospective records that a trap door they planted in the routine hcs_$set_ring_brackets_ on the Multics development system at MIT was distributed by Honeywell to the machine at the Air Force Data Services Center in the Pentagon. Despite a hint in the report, it was found only about a year after publication, during a security audit at the General Motors Multics site, where the deliberately neutered trap door produced an anomalous error return.2
From recommendation to evaluation criterion
The retrospective draws two consequences. The Air Force Data Services Center contract had “specifically required that Honeywell deliver source code to the Pentagon to permit such recompilations”, which is the defence the compiler trap door defeats. And the recognition that a compiler could perpetuate itself “was the basis several years later for the TCSEC Class A1 requirement for generation of new versions from source using a compiler maintained under strict configuration control.”2
The wording in the Orange Book itself is narrower and in one respect more interesting. Classes B2 (Section 3.2.3.2.3) and B3 (Section 3.3.3.2.3) already required “tools ... for generation of a new version of the TCB from source code” and tools for comparing a newly generated version with the previous TCB version. Class A1 (Section 4.1.3.2.3) adds that the comparison tools be “maintained under strict configuration control”, to “ascertain that only the intended changes have been made in the code that will actually be used as the new version of the TCB”. A separate trusted distribution requirement (Section 4.1.3.2.4) asks for procedures assuring that updates delivered to a customer are “exactly as specified by the master copies.”3 The normative text, then, compares each new version with its predecessor to confirm that only intended changes were made, and checks deliveries against master copies. It does not ask an independent party to regenerate the same release bit for bit, and its “strict configuration control” clause names the comparison tools, not expressly the compiler. A1 does require configuration management over the TCB’s hardware, firmware and software and safeguards for the master copies of all material used to generate the TCB. The link from the compiler trap door to A1 is Karger and Schell’s own account of the requirement’s origin. By analogy, A1’s regenerate-and-compare discipline resembles a modern reproducible-build check, and like that check it is only as good as the tools doing the regenerating.
Thompson’s version and the code behind it
What the lecture claimed
Thompson gave the lecture in October 1983, and Communications of the ACM printed it in August 1984.4 Its argument runs in three steps: a program can print its own source; a compiler compiled by itself can carry knowledge that appears only in the binary; and a compiler can therefore be taught to miscompile login and to reinsert both miscompilations into itself, after which the source can be cleaned.
Two passages matter here. The first is the scope: “I could have picked on any program-handling program such as an assembler, a loader, or even hardware microcode. As the level of program gets lower, these bugs will be harder and harder to detect. A well-installed microcode bug will be almost impossible to detect.”5 The second is the provenance. Thompson wrote that he first read of the possibility “in an Air Force critique [4] of the security of an early implementation of Multics”, that he could not find a more specific reference, and his reference list gives entry 4 as “Unknown Air Force Document.”5 Karger and Schell later wrote that the document was their 1974 report, that they gave Thompson a new copy after his paper appeared, and that he corrected the citation in a reprint.2
The recovered code
At the Southern California Linux Expo in March 2023 Thompson said in a question session that he still had the code and that nobody had ever asked for it. Russ Cox asked in September 2023 and received an archive named nih.a (“not invented here”), holding a C file and a shell script that apply to the C compiler of Sixth Edition Research Unix. Cox published a walkthrough in October 2023 and an emulator in which the attack can be run.4
The modification hooks the compiler’s preprocessing stage and is called once per input line. It does textual pattern matching, not analysis of an internal representation:4
- If the line is
namep = crypt(pwbuf);fromlogin.c, it appends code that accepts the passwordcodenih. - If it sees the distinctive line
av[4] = "-P";from the compiler drivercc.c, it records that it is inside the compiler. It then inserts a call to itself after the input-reading loop and a call to a reproduction routine after the output is flushed. - The reproduction routine writes the entire text of the modification back into the compiler being built. Its quine is a byte array holding the octal values of its own source, generated by the accompanying
edscript from anod -bdump. - When
cc -pis used to print preprocessor output, the code does nothing. Cox reads this as avoiding discovery.
Cox’s count is 99 lines of C plus a 20-line shell script, and he describes his first reaction as “disbelief at the size of the change”. In the emulator, a compiler built from clean sources by the trojaned binary still contains the backdoor, and login rebuilt from clean source accepts codenih for root.4 The login change accepts the magic password only for an account that already exists. And because a source file name is embedded in the binary, the first trojaned compiler differs from its successor until one more round of self-compilation makes them converge, a small example of an unintended build input.4
Cox dates the code to between June 1974 and June 1975, from the Unix version it needs and the archive’s 19 June 1975 timestamps. A copy dated 3 July 1975 had sat unnoticed among tapes Dennis Ritchie gave Warren Toomey in 1997.4
The controlled release and how it was caught
Thompson told the 2023 audience that the release “was very carefully controlled” and continued: “I got it released, or I got somebody to steal it from me, in a very controlled sense, and then tracked whether they found it or not. And they didn’t. But they broke it, because of some technical effect, but they didn’t find out what it was and then track it.” He added that “it never got out”.4 Reconciling many retellings that conflict in minor details, Cox concludes that the Programmer’s Workbench group at Bell Labs was induced to copy the compiler, that its login was eventually backdoored, that the group noticed something wrong because the compiler got bigger as it recompiled itself, and that they eventually broke the reproduction. Cox also cites John Mashey’s account, in which the group discovered the backdoor. All tellings agree it went no further. The Jargon File’s story of a crocked login reaching BBN was, Cox writes, denied by Thompson and does not fit the code, and he calls it false.4
On Cox’s reconstruction, the “technical effect” was a bug in a version that no longer exists. Thompson told Cox it was an extra NUL byte added to a string each time, “just a bug”, and that he did not keep the buggy version; the recovered nih.a is the fixed one. Cox notes that the string grew by a byte per build while the executable, rounded to a two-byte boundary, grew by two bytes every second build.4 In a separate account, Cox reports Thompson telling him that the attack “was in fact detected, because the compiler build stopped being reproducible.” Someone tried to find the cause by compiling to assembly, and the backdoor “did not reproduce itself into assembly output at all, so assembling that output removed the backdoor.”6 On Thompson’s accounts, what was noticed was an anomaly, a compiler that would not rebuild to the same bytes, and the propagation was broken by a workaround that routed around the attack; Mashey’s telling, as Cox reports it, has the group discovering the backdoor. Either way, the anomaly is the kind of signal reproducible builds now look for systematically.
Toolchain infections in the wild
Thompson’s implementation propagated across generations of a tool by recognising and recompiling the compiler itself. The two documented infections below did not reproduce through the compiler: one corrupted library units installed with the toolchain, the other was distributed as a modified SDK, and developers’ builds did the distribution.
Induc, 2009
Kaspersky added detection for Virus.Win32.Induc.a in August 2009. On an infected machine it looked for Delphi 4.0 to 7.0, copied the library source SysConst.pas into the Lib directory, wrote its own code into it, backed up the compiled unit SysConst.dcu as SysConst.bak, compiled the infected unit, and deleted the modified source. Its code is a self-reproducing string array in Pascal. Programs then compiled on that machine with the infected unit carried it. It had no payload beyond spreading.7
Kaspersky’s later assessment explains why the method mattered more than the code. Earlier viruses had infected program source files, but “as far as we know, no-one’s tried to directly infect the service files of a compiler before.” The day after detection was added, Induc was among the 70 most common malicious programs in Kaspersky’s telemetry. It turned up in widely used applications, including versions of the AIMP media player and the QIP messenger, on download sites and on magazine cover discs. Vendors’ allowlists of known-good files had to be cleaned because they now contained infected builds. Some infected programs could not simply be disinfected, because they checked their own integrity against a checksum computed at build time, which included the virus.8
The last two points carry the trusting-trust lesson. A build-time signature or checksum attests to whatever the build produced, and an allowlist built from vendor output inherits the vendor’s toolchain.
XcodeGhost, 2015
Palo Alto Networks’ Unit 42 described XcodeGhost in September 2015 as “the first compiler malware in OS X.” Repackaged Xcode installers, posted on Baidu’s file-sharing service and promoted on forums used by Chinese developers who wanted to avoid a slow download of a nearly 3 GB installer, contained an extra Mach-O object file named CoreServices placed in one of Xcode’s default framework search paths. When an app that uses the CoreServices framework was compiled, Xcode searched its predefined paths, found the malicious object and linked it in; Unit 42 says almost all complex iOS apps rely on that framework. Unit 42 also reported that verifying the code signature of the installers it examined showed the extra files, and that at least two infected apps had passed App Store review.9 The library’s article on official downloads that turned out to be malware covers the later counts and the WeChat case.
A state capability, as reported
In March 2015 The Intercept reported, from Snowden documents, a 2012 talk at a CIA-sponsored conference by a Sandia National Laboratories presenter, “Strawhorse: Attacking the MacOS and iOS Software Development Kit”, claiming a modified Xcode that could plant surveillance code in apps built with it. The article adds that it “remains unclear how intelligence agencies would get developers to use the poisoned version of Xcode.”10 It is evidence of claimed capability, not of deployment.
Compiler bugs as deniable backdoors
A different route needs no trojaned compiler at all. In 2015 Scott Bauer, Pascal Cuoq and John Regehr showed a backdoor in sudo in which, as Regehr puts it, “the C code implementing sudo does not contain a backdoor, but a backdoor appears when sudo is built using a particular compiler version (clang 3.3, here)”. The attacker’s source change is deliberate and looks innocent; the backdoor exists only in the binary that a buggy compiler makes of it. Regehr lists the advantages as “subtlety, deniability, and target-specificity”, says plainly that it “isn’t a trusting trust attack”, and concludes that “this kind of attack is not easy to defend against”.11 The case marks a boundary. The correspondence checks below (diverse double-compiling and reproducible builds) test whether a binary follows from its source and toolchain, and a bootstrap establishes how a toolchain was derived from its inputs. None of them shows that the compiler is correct. A rebuild of the application with the same buggy compiler reproduces the miscompiled binary, and showing that the buggy compiler’s own executable corresponds to its source does not show that it compiles correctly.
Diverse double-compiling
The construction
The idea of checking a self-compiling compiler with a second compiler was first posted in a few lines by Henry Spencer in 1998, inspired by an exercise of McKeeman and colleagues for finding compiler defects, and was discussed informally after that.12 David A. Wheeler named it diverse double-compiling (DDC), published it at ACSAC in December 2005, and generalised it in a George Mason University PhD dissertation accepted on 26 October 2009. The dissertation adds formal proofs and removes the 2005 paper’s restriction to compilers that compile themselves.13
The dissertation’s notation is compact. cA is the compiler executable under test and sA its purported source. cP is the executable claimed to be its parent, the compiler that produced cA, and sP is the parent’s source, often an older version of sA and the same as sA for a compiler that builds itself. cT is a separate trusted compiler that can compile sP. DDC computes
- stage 1:
stage1 = c(sP, cT), the parent’s source compiled by the trusted compiler; - stage 2:
stage2 = c(sA, stage1), the compiler-under-test’s source compiled by the result;
and then compares stage2 with cA for exact equality by some trusted means.12
Stage 1 is generally different from cP, since a different compiler produced it. But if the trusted compiler gives sP the semantics it requires, including any extensions it relies on, and the compiler sP describes is deterministic for the relevant inputs, then stage1 behaves like a genuine cP when compiling sA, and stage2 should be bit-for-bit identical to what a genuine cP would produce. If cA matches, the purported source and the executable correspond. Wheeler stresses the point most often misread: DDC does not assume two different compilers produce identical output. The trusted compiler may even target a different processor; it only has to compile the parent’s source correctly.13
Before DDC proper, the dissertation recommends a regeneration check: rebuild cA by the process that supposedly created it. Wheeler found this often fails, because “many organizations’ configuration control systems do not record all the information necessary to accurately regenerate a compiled executable”. A regeneration check alone proves little, since a self-propagating corruption can pass it. Regeneration must be possible in principle for DDC to match, and Wheeler strongly recommends performing it first.12
Why it works: what an attacker must do
The trusting-trust attack assumes every later compiler descends from the corrupted one. DDC introduces a compiler that does not. Wheeler’s analysis of how an attacker could defeat DDC comes down to falsifying one of its assumptions. Controlling or corrupting the DDC process or the comparison is enough by itself. Among the subtler routes, one he discusses is to subvert the trusted compiler or environment “with exactly the same triggers and payloads that are included in the subverted compiler-under-test”, so that the two corruptions cancel. But the attacker usually does not know in advance which compiler and environment the defender will use, so would have to subvert many of them, each recognising the others, with effects identical during DDC; a subversion that behaves differently during DDC is itself detected.12 The defender can use several trusted compilers, or write one privately. Wheeler concludes that here, unusually, “the defender has the advantage”.12
The assumptions
The informal assumptions mix two kinds of condition: those that let a defender infer correspondence from a match (chiefly the first), and those needed to get a match at all (the second and third). Each is a place where the guarantee can fail:12
- DDC must be performed only by trusted programs and processes, including the trusted compiler, the environments that run it, the comparison tool and the means of acquiring
cA,sAandsP. “Trusted” means “justified confidence that it does not have triggers and payloads that would affect the results of DDC”. A trusted tool may have bugs, and may even be malicious, provided it does not affect this result. - The trusted compiler must give the constructs used in
sPthe same semantics, including any non-standard extensionssPrelies on. - The compiler described by
sPmust be deterministic given its inputs. Wheeler’s page adds that the trusted compiler itself need not be.13
DDC also says nothing about whether the source is benign: “DDC does not determine if the source code is free of malicious code”.12 What it buys is that review of the source becomes meaningful, because, under the assumptions and for the components within the check’s scope, the executable has been shown to correspond to that source.
The demonstrations
The dissertation reports three demonstrations, in Sections 7.1 to 7.3.12
- tcc (Section 7.1). The Tiny C Compiler, with a chain of versions 0.9.20 to 0.9.22 and 0.9.22 as the compiler under test, on Fedora Core 3 with GCC 3.4.3 as the trusted compiler. The first attempts did not match, and the mismatches were real defects in tcc. One was a sign-extension error when casting 8-bit values. The other was a long double constant stored in 12 bytes of which only 10 were set, so two uninitialised bytes varied with the environment. Wheeler replaced the literal
0.0with the equivalent expression(f1-f1). With tcc 0.9.22 patched this way, the chain of self-compilations and the DDC result were identical, and the dissertation publishes the hashes; it then argues from the small reversed patch to the unpatched 0.9.22. - Goerigk’s Lisp compilers (Section 7.2). Wolfgang Goerigk had written a “correct” and an “incorrect” compiler in ACL2, the second carrying a
logintrojan of Thompson’s kind. Ported to Common Lisp and checked with GNU clisp as the trusted compiler, DDC matched the correct executable and did not match the incorrect one, and a diff of the two pointed straight at code comparing its input with a login pattern. - GCC (Section 7.3). Wheeler could not regenerate the GCC binaries shipped by Fedora, because the distribution did not record what was needed. He therefore built his own compiler under test, GCC 3.0.4 compiling itself, with Fedora 9’s GCC as the grandparent. He used the Intel C++ compiler 11.0 as the trusted compiler. Newer GCC releases (3.4.4, 4.0.4, 4.1.2) could not easily be compiled by icc. The assembler, linker and C library were treated as outside the compiler. DDC reproduced the compiler bit for bit.
What DDC proves
Wheeler states the limits himself. A match ties one executable to one source, so reports should include hashes of both. A mismatch shows that something differs without saying what: an honest discrepancy in the build recipe, a compiler defect such as those found in tcc, or a real divergence between source and binary. And when the trusted compiler and environment are not themselves proven, passing DDC “is not a mathematical proof, but more like a legal one.”12
Wheeler cites a December 2019 result as, he believes, the first publicly acknowledged use of DDC on a binary other than his own. At the Reproducible Builds Summit in Marrakesh, GNU Guix, Nix and Debian each built a bit-for-bit identical GNU Mes binary, starting from three different major versions of GCC, and later work matched it using tcc. The announcement called these “early steps towards demonstrating the viability” of DDC and listed Clang and Microsoft’s C compiler as future checkers, aiming for “a proper real-world demonstration”.14 Wheeler qualified the result in the same passage where he welcomed it. Three of the checks used the same compiler family, on related distributions sharing glibc and the Linux kernel, so the result “increases confidence so only to a limited extent”.13 Diversity is evidence for trusting the checking path, and it has to be argued case by case.
Bootstrapping from almost nothing
The chicken and the egg
Bootstrappable Builds puts the problem as a recipe: “Do you know how to make yoghurt? The first step is to add yoghurt to milk!” Compilers are usually written in the language they compile, so users and distributors fall back on opaque pre-built binaries, and “to gain trust in our computing platforms, we need to be able to tell how each part was produced from source.”15 The project’s goal is to minimise the bootstrap binaries.
Its best-practice page asks three things. Compiler writers with a self-hosted compiler should keep it buildable by another implementation, as GNU clisp, written in C, can build SBCL, or keep a minimal implementation in another language, as GNU Guile does with a Scheme interpreter written in C. Build tools should not need themselves; GNU Make can be built from a shell script. Distributions should label every bootstrap binary with how it was made, for example “built by running <command> on revision <hash>”, so that users can rebuild it, and the chain of such binaries can be followed back in time.16 Go is the page’s example of the first practice: version 1.4 of the reference compiler was written in a different language and can be used to build version 1.5.16 Cox describes the same choice from inside the project. In his account the Go compiler has never been required to rebuild itself; each release builds from an earlier released version, in a chain that can be traced back to Go 1.4, written in C, and he argues that with no point in the cycle where the compiler must compile itself, “there is no place for a binary-only backdoor to hide.”4 That is a design argument. It helps someone who rebuilds the chain from a trusted start under trusted conditions; it does nothing for someone who simply downloads a later prebuilt bootstrap compiler. The minimum bootstrap version also moves: Go 1.20 and 1.21 need Go 1.17, Go 1.22 and 1.23 need Go 1.20, and later releases follow a stated policy.17
Bootstrapping and DDC attack the same problem from opposite ends. DDC accepts the existing compiler binary and checks it against an independent one. Bootstrapping reduces the need to trust the existing binary by rebuilding the toolchain from a much smaller starting binary.
hex0 and stage0
The bottom of the modern chain is a program whose source is its own machine code written out in hexadecimal. In the stage0-posix work of Jeremiah Orians, the seed hex0 reads pairs of hexadecimal digits and writes the corresponding bytes, ignoring comments. Its source is annotated machine code; in the line Guix’s announcement shows, the only program text is two hex digits. From a 357-byte hex0-seed binary on x86, stage0-posix builds hex0 and then, in order, hex1, catm, hex2, M0, cc_x86, M1, M2, get_machine and finally M2-Planet, a compiler for a subset of C.18 The seed is still a binary, but at 357 bytes it is far smaller than the compiler binaries it replaces.
GNU Mes and the Guix full-source bootstrap
GNU Mes supplies the next link: a Scheme interpreter written in about 5,000 lines of simple C that M2-Planet can build, and MesCC, a C compiler written in Scheme. Together they compile a “bootstrappable” TinyCC, and from there the chain climbs through old releases that do not need C++: GCC 2.95.3, binutils 2.20.1a and glibc 2.2.5, then GCC 4.9.4.18
On 26 April 2023 Guix announced that this “Full-Source Bootstrap” had been merged into its main branch: a package graph of more than 22,000 nodes “rooted in a 357-byte program”, which the authors believed had never been achieved since the birth of Unix.18 The large opaque compiler seeds were replaced by that much smaller seed, but the same post states what remained in April 2023. The builds were still driven by a separate 25 MiB statically linked Guile, a tenth of the earlier bootstrap binaries but large next to 357 bytes, and the work covered only x86_64 and i686 Linux. Some bootstrap paths are complicated by upstream decisions: GCC 4.8.0 made C++ a build requirement in 2013, and glibc 2.28 added Python in 2018.18
live-bootstrap and the human-auditable standard
The live-bootstrap project sets the bar higher. Its question is: “How can a usable Linux system be created with only human-auditable, and wherever possible, human-written, source code?” It can be run in a chroot on a host kernel, or, in its QEMU and bare-metal paths, from builder-hex0, a minimal kernel written in hex0; either way it runs stage0-posix and then follows a manifest of build steps.19 Its list of inputs it deems unsuitable for bootstrapping is the part most relevant to supply-chain review:19
- binaries, apart from the hex0, kaem and builder-hex0 seeds;
- “any pre-generated configure scripts, or Makefile.in’s from autotools”;
- pre-generated bison and flex parsers;
- source or binaries downloaded by a package’s build system outside the project’s control to verify.
The README names Guix as “the furthest along” project but says Guix still uses many files of these kinds, and it admits a gap of its own: “there is no way to perform the bootstrap without external preparations”, and a user who downloads source tarballs from a public mirror is trusting the mirror’s operator to some extent.19 The rule against pre-generated autotools files covers the kind of file in which the XZ trigger would hide.
Seeds that remain
A full-source bootstrap replaces large opaque compiler seeds with smaller, auditable ones; it does not remove binary seeds altogether, and live-bootstrap’s README lists several, depending on the path used. It does not remove the kernel the bootstrap runs on, the firmware, or the processor. Guix’s post lists the Linux kernel as an open problem, and live-bootstrap’s minimal-kernel path addresses the kernel needed for the early stages.1819 Thompson’s remark about microcode marks the floor: below some level, trust rests on hardware, and Wheeler’s page treats the extension of DDC to hardware as a separate and harder problem.513
Reproducible builds
The definition and its purpose
The Reproducible Builds project’s definition is: “A build is reproducible if given the same source code, build environment and build instructions, any party can recreate bit-by-bit identical copies of all specified artifacts.” The relevant attributes of the environment and the artifacts to compare are “defined by the authors or distributors”, and verification is bit-for-bit, usually, the page says, by comparing cryptographic hashes.20
The project’s statement of purpose is explicit about the threat. Most free software “is distributed pre-compiled with no method to confirm whether they correspond” to the source, which makes developers and build infrastructure targets, because changing binaries instead of source leaves the change “essentially invisible to its original authors and users alike.” Identical results let several third parties agree on the correct output and treat any deviation as suspect.21 Lamb and Zacchiroli summarised the premise as “trusting code is not the same as trusting its executable counterparts.”22
Debian: from 24 percent to the archive
The project’s history page gives Debian’s starting point. A first large-scale rebuild by David Suárez in September 2013, varying time and build path, found 24 percent of 5,240 source packages reproducible. A second in January 2014 found 67 percent of 6,887. Continuous testing showed 13,213 of 21,448 packages (61.4 percent) reproducible in November 2014. Getting there needed toolchain changes, a .buildinfo file recording each build’s environment, and a post-processor, strip-nondeterminism, for archive formats that embed timestamps.23
Two kinds of measurement now run, and they answer different questions. The variance tests at tests.reproducible-builds.org build packages under deliberately varied conditions to find sources of non-determinism. When fetched at about 10:40 UTC on 4 December 2026, that service reported 38,487 of 40,103 source packages (96.0 percent) in Debian’s testing suite, forky, reproducible on amd64, and 39,821 of 42,005 (94.8 percent) in unstable.24 The rebuilder at reproduce.debian.net instead tries to rebuild each binary package actually in the archive, using the original .buildinfo file and the exact dependency versions from snapshot.debian.org. It does not hunt for variance. Its goal is “to replicate the same build process that is used by Debian during package publication”.25 Its own dashboard API, fetched the same morning, reported 19,122 good and 290 bad rebuilds for forky on amd64.26 The two sets of figures measure different populations (source packages under varied builds against binary packages rebuilt as published) and should not be compared directly.
The second measurement is the one a defender wants, because it is a check on the bytes users install. The site also says what it still lacks: “we also want independent rebuilders”, in “a diverse variety of setups”. It offers a tool, debian-repro-status, for evaluating a system against the rebuild results.25
What a match proves and what it does not
A matching rebuild shows that the rebuilder’s own path, under the stated inputs and assumptions, yields the published bytes. It does not by itself show what the original producer actually did. It is still a strong check on one failure: a build server or release engineer substituting a binary that does not follow from the inputs. It is weak against three others.
First, it inherits whatever the inputs contain. Reproducing a build from a malicious source archive reproduces the malicious binary.
Second, it inherits the tools. Cox’s demonstration with the Go toolchain spells this out. On a Mac, without any Ubuntu software, he rebuilt Go 1.21.0 with Ubuntu’s build setting (GO386=softfloat), stripped the binaries as Ubuntu does, and matched the corresponding toolchain executables bit for bit. That is not a reproduction of the package as shipped: Ubuntu’s package also carried two extra executables built during bootstrap, deleted and modified some files, and updated a timestamp in an image. He explains why that matters: an attacker who changed Ubuntu’s package-creation tools would get identical malicious packages from any rebuild that used those tools, an attack “invisible to that kind of rebuild, much like Ken Thompson’s compiler attack.” Verifying with no Ubuntu software at all “is a much stronger check.”6 A rebuilder that shares the distribution’s compiler binaries is a second witness to the same compiler.
Third, the specification of the environment is set by the party making the claim.20 Two rebuilds that agree on an environment both parties obtained from the same place are not independent.
As an analogy, a reproducible build resembles A1’s regenerate-and-compare discipline opened to outside parties and applied to the same release, and DDC is a variant in which the regenerating compiler is deliberately independent.
Rebuilding also helps after an incident. Debian’s build daemons run builds in unstable chroots that may have used or run a vulnerable xz-utils, so Vagrant Cascadian rebuilt a sample: bookworm security updates (cacti, samba, squid and others) and the xz-utils update in unstable. “So far, I have not found any reproducibility issues; everything I tested I was able to get to build bit-for-bit identical with what is in the Debian archive.” He listed caveats: some large builds were not attempted, the xz-utils rebuild may itself have pulled in a vulnerable xz as a build dependency, and his own machine might at some point have run the vulnerable code.2728 The result is evidence about those outputs under those rebuild assumptions. It shows how a reproducible archive turns “did the compromise touch our builds?” into a question that can be partly answered by rebuilding.
Go: reproducibility as a design property
In Cox’s August 2023 account, Go 1.21.0 was “the first Go toolchain with perfectly reproducible builds”; earlier toolchains could be reproduced “only with significant effort, and probably no one did”. For the toolchain binaries of a given target and build configuration, Cox writes, the only relevant input is the source: they are the same whether built on Linux, macOS or another host, and whichever compatible bootstrap compiler is used, including a chain going back to Go 1.4’s C implementation.6 The engineering list shows where non-determinism hides:6
- Map iteration order and work done by parallel goroutines were sorted before output.
- Library code whose correct output can vary between versions, such as the
sortandcompress/zlibpackages, was copied into the source tree given to the bootstrap compiler, so the same code runs whichever compiler builds it. - The host C toolchain was removed from the build, which meant building without cgo.
- The dynamic linker path written into the linker no longer depends on the build host, which had made a toolchain built on Alpine differ from one built on Ubuntu.
The project’s self-convergence test resembles DDC in shape but is not DDC, since every stage uses Go’s own lineage. Toolchain1 is built by an older Go, toolchain2 by toolchain1 and toolchain3 by toolchain2; toolchain2 and toolchain3 must be identical. The Go team runs a verifier, gorebuild, nightly and posts the results. Most archives must match bit for bit; the exceptions are the macOS archive and installer, checked file by file after stripping code signatures, and the Windows installer, whose extracted files are checked against the rebuilt zip.6
Three guarantees compared
| Technique | Question answered | Key assumption | Fails silently when |
|---|---|---|---|
| Reproducible build | Does this artifact follow from these inputs and this process? | Rebuilder’s tools and environment are honest and the specified inputs are the right ones | Rebuilder shares the compromised tool or the compromised input |
| Diverse double-compiling | Within the checked scope, does this compiler executable correspond to this compiler source? | DDC process, trusted compiler, environment and comparison are trusted; trusted compiler gives the parent source the semantics it requires; parent compiler is deterministic | Process or comparison is compromised, or trusted compiler shares the attacker’s subversion; scope leaves out assembler, linker or libraries |
| Full-source bootstrap | Can the toolchain be rebuilt from a much smaller seed? | Seed, kernel, driver and hardware are honest; sources fetched are the intended ones | Large drivers or pre-generated files remain; sources are altered upstream |
None of the three examines whether the source is benign. Each moves the trust to something smaller or more independent, and they complement each other. A bootstrapped toolchain is one candidate for the independent compiler in DDC. A DDC comparison needs deterministic output for the build being compared, and a bootstrap can produce a working toolchain without any artifact-equality check unless one is added.
XZ Utils: the gap moved upstream of the compiler
The XZ Utils backdoor (CVE-2024-3094)29 is usually told as a story about a maintainer under pressure, and the library’s article on open-source maintainers tells that part. Its build mechanics show the trusting-trust problem at a different layer: what was reviewed was not what was built.
Where the code was
Andres Freund’s disclosure on 29 March 2024 separates the pieces. One part, he wrote, was only in the distributed tarballs: a line in m4/build-to-host.m4 that was not in the upstream source of that file, in a file xz’s git repository did not use at all, present in the 5.6.0 and 5.6.1 release tarballs but not in the source archives GitHub generated from the repository. It injected an obfuscated script that runs at the end of configure. The bulk of the payload sat in two files committed to the repository, tests/files/bad-3-corrupt_lzma2.xz and tests/files/good-large_compressed.lzma, which, Freund noted, were not even used by any tests in 5.6.0.30
The conditions Freund listed for the injection included an x86-64 Linux build, GCC and the GNU linker, and a build running as part of a Debian or RPM package build. He remarked that the last “is likely aimed at making it harder to reproduce the issue for investigators”, and judged that the backdoor could probably work only on glibc-based systems.30 A build from a git checkout lacked the tarball-only activator, although the repository still held the malicious data. In Debian the affected packages reached unstable; the security tracker lists buster, bullseye and bookworm as not affected.29
Cox’s timeline adds why the pieces escaped notice. The test-file directory’s README, written long before the attacker arrived, already said many of the files were made by hand with a hex editor, “thus there is no better ‘source code’ than the files themselves.” And the extra .m4 file was one of many that are legitimately added when a release tarball is made, “so it’s not suspicious by itself.”31
Why this is trusting-trust shaped
Thompson’s compiler made the binary differ from what the source implied, through a stage of the build a source reviewer would not see. XZ did something similar one step earlier. Anyone who reviewed the git repository was not reviewing what distributions built: a release tarball whose generated build scripts, normally produced by autotools, kpcyrd later described as “25k lines of pre-generated shell-script”.32 The payload was carried in opaque binary test fixtures, in a directory whose README said such files generally had no better source than themselves.31 The injection did not require a compromised compiler or linker; the build translated a corrupted input.
That locates the defences. DDC does not address this case, because the attack did not depend on the compiler. Live-bootstrap’s documented rule against pre-generated configure scripts covers the kind of file that carried the trigger; its README does not say how it would treat binary test fixtures like these.19 Reproducible builds are the interesting case.
What reproducible builds would and would not have caught
Same-input reproducibility would not have caught it. Debian built xz-utils from the release tarball, so a rebuilder working from the same .buildinfo and the same tarball, under the packaging conditions the trigger checked for, would be expected to reproduce the backdoored binary.3025 An identical result would have verified that the published bytes followed from that tarball. It would not have shown that the bytes were safe or that the tarball matched the git snapshot. This follows from the definition: the tarball is a specified input. The sources cited here report no exact same-input rebuild of the affected Debian binary; the expected outcome is an inference from the definition and Freund’s description.
A reproducibility check with a different input could have. In a March 2025 analysis, after the incident, Julien Malka argued that NixOS could have caught it mechanically, and showed it with an experimental check on one library; no such detector ran during the incident. Nixpkgs builds xz during its bootstrap, before autoconf is available (autoconf itself depends on xz), so it must use the maintainer’s tarball with its pre-generated configure script. After the bootstrap, Malka rebuilt xz from GitHub’s automatically generated source archive, regenerating the configure script, and compared liblzma.so with the bootstrap build. On a normal build they were identical. With the backdoored version, and the RPM_ARCH variable set to satisfy the trigger, they differed, and the extra _get_cpuid symbol of the backdoor appeared in a symbol diff.33 It is an alternative-input artifact comparison: one library built from the release tarball and from a regenerated repository snapshot. It tests whether the difference in source preparation changes the output. It does not make either build independently trustworthy or prove which input is safe, and it borrows from DDC only the idea of requiring agreement between two routes.
Malka also explains why a plain diff of the release tarball against git is weak in practice. Release tarballs routinely differ from the repository by including generated files and documentation, and maintainers treat that as a feature.33 The other remedy is to stop consuming such tarballs. As the backdoor was being disclosed, Arch Linux switched xz to build from git, and Haiku moved to repository snapshots.31 In April 2024 kpcyrd argued that “a distribution that claims to build from source should operate on VCS snapshots instead of tarballs with 25k lines of pre-generated shell-script”, and the project’s monthly report expected the trend to “accelerate in response to the xz incident.”32
The limit is the part of the backdoor that was in git. In the debian-devel debate on validating tarballs, Theodore Ts’o quoted Vincent Bernat’s counterfactual judgment that “this part of the backdoor would have just been included in the git repository as well.” Ts’o’s own counterfactual was that if the exploit had always been active when built from the git tree, “perhaps someone might have noticed”, while saying he was not sure how likely that was for xz-utils specifically.34 Both judgments can hold for different attackers. Closing the tarball gap forces the trigger into the reviewed repository, where it is at least visible. It does nothing about a payload committed openly as an opaque binary file.
Verified compilers and where the proof ends
Formal verification attacks the compiler from another side: prove that its output preserves the meaning of its input. Leroy’s 2009 account of CompCert opens with “Can you trust your compiler?” The proof is about functions written in Coq. To get an executable, CompCert relies on Coq’s extraction to OCaml, combines the result with hand-written OCaml for the unverified parts such as the parser, and compiles the whole with the Caml compiler.35 The theorem relates CompCert C syntax “after preprocessing, parsing, type-checking and elaboration” to assembly syntax “before assembling and linking”.36
The theorem is conditional: it covers programs the compiler accepts without error, under the modelled semantics of CompCert C and of the assembly language, and its observable-behaviour guarantee covers the verified passes between those two syntax trees.36 Leroy listed extraction, the OCaml compiler and its runtime among the parts outside the proof.35 Within that boundary the verified passes rule out miscompilation of the kind Regehr exploited; the executable itself is still produced by an unverified OCaml compiler, and its output goes through an assembler and linker outside the proof. The trusting-trust question reappears one level down. The library’s article on what a verified kernel proves covers CompCert’s trusted base and its testing record.
CakeML goes further on this one point. Its compiler “has been bootstrapped inside HOL”: the verified compiler, combined with its parser and type-inference frontend, was compiled within the theorem prover, and “the result is a verified binary that provably implements the compiler itself (with frontend 2)”, that frontend being the parser and type inferencer.37 For that bootstrapped binary, the extraction step is replaced by an in-logic compilation whose result is covered by the proof. The result concerns that binary and those components, not every way the compiler might be packaged or installed. It moves trust to the logic, the prover’s kernel, the models of the target machines and the hardware those models describe.
Where experts disagree
How much the classic attack matters. Karger and Schell judged a compiler trap door practical and its cost “nominal to a foreign agent”.1 Cox, after running Thompson’s code, observes that “approximately no one checks that the distributed binaries match the source code” and that “no one needs Ken’s backdoor: there are far easier ways to mount a supply chain attack.”4 These are not strictly in conflict: one is a 1974 estimate of cost to a well-funded adversary, the other an observation about present incentives. The cases in this article fit Cox’s observation: Induc infected installed Delphi library units, XcodeGhost spread as a modified SDK, and XZ corrupted inputs, and none was a self-reproducing compiler. That says little about what a patient, well-resourced attacker would do once cheaper routes close.
Whether DDC “fully” counters the attack. Wheeler’s dissertation title says so. His page gives two separate explanations: that DDC “fully counters the problem that we lacked a practical independent verification process” for compilers, and that “fully” also distinguished the dissertation, which handles compilers whether or not they compile themselves, from the 2005 paper.13 His own conclusion calls the result with an unproven trusted compiler “more like a legal” proof, and his assessment of the Mes result is that similar checkers raise confidence only so far.1213 This is a scope distinction more than a disagreement: the theorem is conditional, and the open question is how much diversity is enough in practice.
What bootstrapping solves. Guix’s announcement calls trusting trust “only a symptom of an incomplete or missing bootstrap story.”18 Live-bootstrap, holding a stricter standard, says Guix still relies on non-auditable files, and admits its own process needs external preparation.19 Regehr’s compiler-bug backdoor shows a further limit: a perfectly bootstrapped compiler can still contain an honest bug an attacker exploits.11
Tarballs versus repositories. The concrete trade-off is source auditability against convenience for users who lack generation tools. kpcyrd (April 2024) and Malka (March 2025) argue for building from version-control snapshots or comparing tarball builds with snapshot builds.3332 Maintainers who ship pre-generated files, as Malka reports, see them as a feature: users can build without autotools, and nixpkgs itself needs them to build xz before autoconf exists. In the April 2024 debian-devel exchange, Bernat quoted by Ts’o, expected an attacker would simply have moved the trigger into git, while Ts’o suggested that if the exploit had always been active in git builds, “perhaps someone might have noticed”.3334
What a practitioner should do differently
- Record which evidence you hold for each critical component. Keep four entries apart: source review (who read which commit or tarball); provenance or attestation (what the producer states about how the artifact was built, and who signed that statement); artifact comparison (which independent rebuild matched which hash); and toolchain verification (bootstrap, DDC or none). Of the methods in this article, independent rebuilds and DDC test an artifact against an independently generated result, and only an independent compiler or a bootstrap tests the toolchain. A “reproducible” status is not evidence that the source is benign.
- Build from the reviewed object. Where a project offers both a version-control tag and a release tarball, build from the tag and regenerate generated build files with the project’s documented procedure, as Arch did for xz after the disclosure.3132 Where you must use the tarball, as nixpkgs must during bootstrap, also build from the repository and compare outputs.33 A normalised comparison of source trees tells you what was added to the tarball; an output comparison tells you whether the additions changed the build. Run both.
- Treat files with no source as code. Opaque test fixtures, pre-generated parsers, minified assets and vendored binaries should be flagged in review, tied to a generator where one exists, and checked for being read outside the tests. In XZ the README’s “no better ‘source code’ than the files themselves” was the hiding place.3130
- Make your own builds reproducible, then have a different party reproduce them. Pin the toolchain, set
SOURCE_DATE_EPOCH, which gives supporting tools a timestamp derived from the source instead of the clock,38 and record the build environment the way Debian’s.buildinfodoes. Then run a second build on infrastructure that shares as little as possible with the first: different machines, images and administrators. Keep that separate from changing relevant inputs; a different host operating system is a fair test only where, as with Go, the host has been shown not to be a relevant input. Cox’s Mac-built check of Ubuntu’s Go package shows what such a second build looks like.623
- Check what you install. On Debian systems, run
debian-repro-statusto compare installed packages with reproduce.debian.net’s rebuild results, and treat a failed rebuild of a security-critical package as a question for the maintainers. The rebuilder is operated within the Debian and Reproducible Builds community and is asking for more independent operators, so its results are one witness, not several.25 For Go, check downloads against the nightlygorebuildreport39 or run it yourself, remembering that macOS and Windows installers are compared after signature stripping or extraction, not byte for byte.6
- Verify the toolchain itself on every developer machine and build image. In the XcodeGhost installers Unit 42 examined, checking the code signature showed the extra files.9 Induc altered a compiled library unit in the compiler’s own directory and left a
.bakfile beside it.7 Get toolchains only from the vendor or the distribution, verify signatures at install, and alert on writes to compiler and SDK library directories outside updates.
- Keep your compilers buildable by someone else’s. If you maintain a self-hosting compiler or build tool, keep it buildable by an alternative implementation or a minimal one in another language, and publish how each bootstrap binary was made.16 For a compiler that matters enough to justify the cost, run DDC with a trusted compiler from a different lineage. Do the regeneration check first, since recording the exact recipe was the hard part even for Wheeler.12
- Do not let one compiler decide everything. Regehr’s advice to end users is to recompile critical software with a different compiler or compiler version.11 Building a few security-critical binaries with two compilers and running the same tests can expose a behaviour difference, from a trojan or an exploitable miscompilation, but only when the chosen versions, inputs and tests happen to distinguish them.
Conclusion
Karger and Schell saw in 1974 that recompiling from source is only a defence if the compiler is trustworthy, and that a compiler can keep a trap door alive through its own recompilation. Thompson’s implementation, dated by Cox to 1975, was 99 lines of textual pattern matching. By Thompson’s recollection, as Cox reports it, its spread was stopped after the build stopped reproducing, and the group never identified the implant; another participant’s account has them discovering it. Three answers now exist, and each is conditional. Diverse double-compiling ties a compiler executable to its source, within a stated scope, under assumptions a defender can make expensive to falsify. Full-source bootstrapping replaces large opaque compiler seeds with smaller, auditable ones (357 bytes plus a 25 MiB driver in Guix’s April 2023 configuration), while kernel and hardware are still taken on trust. Reproducible builds let anyone check that published artifacts follow from stated inputs, and on 4 December 2026 Debian’s rebuilder reported 19,122 good and 290 bad rebuilds for forky on amd64. The first answers “does this binary match this source?”; the third answers “does this artifact follow from these inputs?” Neither asks whether the inputs are the ones that were reviewed. The XZ backdoor sat there: a build-script change present only in the tarball and a payload in repository files with no source. Building from the reviewed repository, rebuilding by an independent path, and treating opaque files as code would have narrowed the gap it used. None of these techniques shows that source code is safe to run. Reading it remains the reviewer’s job.
Footnotes
- Paul A. Karger and Roger R. Schell, “Multics Security Evaluation: Vulnerability Analysis”, ESD-TR-74-193, Vol. II, Electronic Systems Division, US Air Force, June 1974, Section 3.4.5 (printed pp. 51-53), copy hosted by NIST. https://csrc.nist.gov/csrc/media/publications/conference-paper/1998/10/08/proceedings-of-the-21st-nissc-1998/documents/early-cs-papers/karg74.pdf (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6
- Paul A. Karger and Roger R. Schell, “Thirty Years Later: Lessons from the Multics Security Evaluation”, ACSAC 2002, Section 3.1 (the planted trap door) and Section 3.2.4 (compiler trap doors, the source-delivery contract, the A1 attribution and Thompson’s citation). https://www.acsac.org/2002/papers/classic-multics.pdf (opens in a new tab) ↩1 ↩2 ↩3
- US Department of Defense, “Trusted Computer System Evaluation Criteria”, DoD 5200.28-STD, December 1985, Sections 3.2.3.2.3 (B2), 3.3.3.2.3 (B3), 4.1.3.2.3 and 4.1.3.2.4 (A1), copy hosted by NIST. https://csrc.nist.gov/csrc/media/publications/conference-paper/1998/10/08/proceedings-of-the-21st-nissc-1998/documents/early-cs-papers/dod85.pdf (opens in a new tab) ↩
- Russ Cox, “Running the ‘Reflections on Trusting Trust’ Compiler”, research!rsc, 25 October 2023. https://research.swtch.com/nih (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10 ↩11
- Ken Thompson, “Reflections on Trusting Trust”, Communications of the ACM 27(8), August 1984, pp. 761-763 (DOI 10.1145/358198.358210). https://www.cs.cmu.edu/~rdriley/487/papers/Thompson_1984_ReflectionsonTrustingTrust.pdf (opens in a new tab) ↩1 ↩2 ↩3
- Russ Cox, “Perfectly Reproducible, Verified Go Toolchains”, The Go Blog, 28 August 2023. https://go.dev/blog/rebuild (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7
- Denis Nazarov, “Induc, the innovative file infector”, Securelist (Kaspersky), 17 August 2009. https://securelist.com/induc-the-innovative-file-infector/30553/ (opens in a new tab) ↩1 ↩2
- Alexander Gostev, “A short history of Induc”, Securelist (Kaspersky), 29 August 2009. https://securelist.com/a-short-history-of-induc/30555/ (opens in a new tab) ↩
- Claud Xiao, “Novel Malware XcodeGhost Modifies Xcode, Infects Apple iOS Apps and Hits App Store”, Palo Alto Networks Unit 42, 17 September 2015. https://unit42.paloaltonetworks.com/novel-malware-xcodeghost-modifies-xcode-infects-apple-ios-apps-and-hits-app-store/ (opens in a new tab) ↩1 ↩2
- Jeremy Scahill and Josh Begley, “The CIA Campaign to Steal Apple’s Secrets”, The Intercept, 10 March 2015. https://theintercept.com/2015/03/10/ispy-cia-campaign-steal-apples-secrets/ (opens in a new tab) ↩
- John Regehr, “Defending Against Compiler-Based Backdoors”, Embedded in Academia, 21 June 2015 (on Bauer, Cuoq and Regehr, “Deniable Backdoors Using Compiler Bugs”, PoC||GTFO 8:3). https://blog.regehr.org/archives/1241 (opens in a new tab) ↩1 ↩2 ↩3
- David A. Wheeler, “Fully Countering Trusting Trust through Diverse Double-Compiling”, PhD dissertation, George Mason University, 2009, arXiv:1004.5534, Sections 4 (introduction, on prior work), 4.2-4.3, 7.1-7.3, 8.1, 8.14 and 9. https://arxiv.org/abs/1004.5534 (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10 ↩11
- David A. Wheeler, “Fully Countering Trusting Trust through Diverse Double-Compiling (DDC)”, project page (dissertation and ACSAC 2005 details, misconceptions, GNU Mes application). https://dwheeler.com/trusting-trust/ (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7
- Reproducible Builds project, “Reproducible bootstrap of Mes C compiler”, 21 December 2019. https://reproducible-builds.org/news/2019/12/21/reproducible-bootstrap-of-mes-c-compiler/ (opens in a new tab) ↩
- Bootstrappable Builds, home page. https://bootstrappable.org/ (opens in a new tab) ↩
- Bootstrappable Builds, “Best Practices”. https://bootstrappable.org/best-practices.html (opens in a new tab) ↩1 ↩2 ↩3
- The Go project, “Installing Go from source”, bootstrap toolchain requirements. https://go.dev/doc/install/source (opens in a new tab) ↩
- Janneke Nieuwenhuizen and Ludovic Courtès, “The Full-Source Bootstrap: Building from source all the way down”, GNU Guix blog, 26 April 2023. https://guix.gnu.org/en/blog/2023/the-full-source-bootstrap-building-from-source-all-the-way-down/ (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6
- live-bootstrap project, README.rst, GitHub, at commit 57df049 (29 November 2026). https://github.com/fosslinux/live-bootstrap/blob/57df04984d8819170fafcd2afc1d51702dd38021/README.rst (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6
- Reproducible Builds project, “Definitions”. https://reproducible-builds.org/docs/definition/ (opens in a new tab) ↩1 ↩2
- Reproducible Builds project, “Which problems do Reproducible Builds Solve?”. https://reproducible-builds.org/docs/which-problems-do-reproducible-builds-solve/ (opens in a new tab) ↩
- Chris Lamb and Stefano Zacchiroli, “Reproducible Builds: Increasing the Integrity of Software Supply Chains”, arXiv:2104.06020, April 2021 (IEEE Software), abstract. https://arxiv.org/abs/2104.06020 (opens in a new tab) ↩
- Reproducible Builds project, “History”. https://reproducible-builds.org/docs/history/ (opens in a new tab) ↩1 ↩2
- Reproducible Builds, “Overview of various statistics about reproducible builds” for Debian, tests.reproducible-builds.org (figures as served about 10:40 UTC, 4 December 2026; the page is live and has no permanent snapshot). https://tests.reproducible-builds.org/debian/reproducible.html (opens in a new tab) ↩
- reproduce.debian.net, home page (method, aims, debian-repro-status). https://reproduce.debian.net/ (opens in a new tab) ↩1 ↩2 ↩3 ↩4
- reproduce.debian.net, rebuilderd dashboard API for forky on amd64 (JSON as served about 10:40 UTC, 4 December 2026: good 19,122, bad 290, fail 0; live endpoint, no permanent snapshot). https://reproduce.debian.net/amd64/api/v1/dashboard?distribution=debian&release=forky&architecture=amd64 (opens in a new tab) ↩
- Vagrant Cascadian, “Reproducible Builds for recent Debian security updates”, rb-general mailing list, 30 March 2024. https://lists.reproducible-builds.org/pipermail/rb-general/2024-March/003321.html (opens in a new tab) ↩
- Reproducible Builds project, “Reproducible Builds in March 2024”, section “Validating Debian’s build infrastructure after the XZ backdoor”. https://reproducible-builds.org/reports/2024-03/ (opens in a new tab) ↩
- Debian security tracker, CVE-2024-3094 (as served 4 December 2026). https://security-tracker.debian.org/tracker/CVE-2024-3094 (opens in a new tab) ↩1 ↩2
- Andres Freund, “backdoor in upstream xz/liblzma leading to ssh server compromise”, oss-security mailing list, 29 March 2024. https://www.openwall.com/lists/oss-security/2024/03/29/4 (opens in a new tab) ↩1 ↩2 ↩3 ↩4
- Russ Cox, “Timeline of the xz open source attack”, research!rsc, April 2024. https://research.swtch.com/xz-timeline (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5
- Reproducible Builds project, “Reproducible Builds in April 2024”, section on kpcyrd’s backseat-signed. https://reproducible-builds.org/reports/2024-04/ (opens in a new tab) ↩1 ↩2 ↩3 ↩4
- Julien Malka, “How NixOS and reproducible builds could have detected the xz backdoor for the benefit of all”, blog post, 20 March 2025. https://luj.fr/blog/how-nixos-could-have-detected-xz.html (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5
- Theodore Ts’o, “Re: Validating tarballs against git repositories”, debian-devel mailing list, 1 April 2024 (quoting Vincent Bernat). https://lists.debian.org/debian-devel/2024/04/msg00033.html (opens in a new tab) ↩1 ↩2
- Xavier Leroy, “Formal verification of a realistic compiler”, Communications of the ACM 52(7), July 2009, Sections 1, 3.4 and 5 (the list of trusted parts). https://xavierleroy.org/publi/compcert-CACM.pdf (opens in a new tab) ↩1 ↩2
- Xavier Leroy, “The CompCert C verified compiler: documentation and user’s manual”, chapter 1. https://compcert.org/man/manual001.html (opens in a new tab) ↩1 ↩2
- CakeML project, home page (“Compiler bootstrapping”). https://cakeml.org/ (opens in a new tab) ↩
- Reproducible Builds project, “SOURCE_DATE_EPOCH”. https://reproducible-builds.org/docs/source-date-epoch/ (opens in a new tab) ↩
- The Go project, “Go Reproducible Build Report” (nightly). https://go.dev/rebuild (opens in a new tab) ↩

SecSIG