Reproducible Builds
Also known as: Deterministic builds
Practice of making software builds deterministic so anyone can rebuild published binaries from source and get bit-for-bit identical results.
A build is reproducible when the same source code, build environment and instructions always produce exactly the same binary output. That property lets independent parties rebuild a published program and check that it matches the official release bit for bit. If it does, users gain strong evidence that the binary was built from the published source and was not altered by a compromised build server or a malicious insider. Without reproducibility, users must simply trust whoever compiled the software.
Many small factors make ordinary builds differ: embedded timestamps, the order of files in archives, locale settings, build paths and random identifiers. Fixing them requires changes to compilers, packaging tools and individual projects. A shared convention, the SOURCE_DATE_EPOCH environment variable, gives tools a fixed timestamp to use. Work that began in Debian around 2013 grew into the cross-project Reproducible Builds effort, and projects such as Tor Browser, Bitcoin Core and functional package managers like NixOS's Nix have pursued reproducibility.
The practice is a defense against software supply chain attacks. The 2020 SolarWinds compromise inserted malicious code during the build process, and the 2024 xz Utils backdoor relied partly on files present in release archives but not in the project's version control. Reproducible builds verify only that a binary matches its source; they do not show that the source itself is safe. They complement code review, signed releases and a software bill of materials as part of software provenance.
Key points
- Reproducible builds let anyone check that a binary matches its published source code.
- Timestamps, file ordering and build paths are common sources of nondeterminism.
- The practice helps detect tampering in build systems and release processes.
- Matching a binary to its source does not prove the source is free of malicious code.
Related entries
Software Supply Chain Attack
Attack that compromises software by tampering with its dependencies, build systems or update channels, so trusted code delivers malicious changes to users.
Software Bill of Materials
Machine-readable inventory of the components, libraries and dependencies that make up a piece of software, used to track vulnerabilities and licenses.
Provenance
The documented origin and history of an object, artwork, dataset or piece of digital content, used to establish authenticity and trust.
NixOS
Linux distribution built on the Nix package manager that describes the whole system in declarative configuration and supports atomic upgrades and rollbacks.
Volunteer community, founded in 1993, that develops Debian, a free operating system and one of the oldest and most influential Linux distributions.
The Tor Project
Nonprofit organization that develops the Tor anonymity network and Tor Browser to help people protect their privacy and resist censorship online.
Compiler
Program that translates source code written in one programming language, usually a high-level one, into another form such as machine code.
Featured in guides
Referenced by
Other entries that discuss or point to Reproducible Builds.