DebTrace: Tracing, Verifying, and Revisiting a Decade of Debian Reproducibility
Abstract
Modern software development requires the collaboration of multiple stakeholders carrying out multiple activities across different projects, organizations, geographical regions, and jurisdictions to form a software supply chain. These activities include operations such as writing source code, building and packaging as well as publication and installation of the resulting packages. A compromise in any of these activities often results in the complete subversion of the installed software with dire consequences. For example, the recent compromise of the xz-utils library demonstrated how a single malicious commit, introduced through a years-long social engineering campaign, could threaten the security of millions of systems downstream. Preventing such attacks requires end-to-end transparency and reproducibility across the supply chain - tracing artifacts from source commit through build infrastructure to published binaries. However, existing approaches to supply chain transparency have largely focused on individual steps in isolation, leaving the rest of the chain opaque. As one of the oldest and most widely adopted Linux distributions, Debian offers a uniquely valuable vantage point to study transparency: its artifacts span kernel drivers to end-user applications, and its ecosystem exposes a rich set of metadata. Since 2016, Debian began exposing intermediate metadata called .buildinfo, which provides a snapshot of the build environment, including toolchain versions, dependency manifests, and compiler flags.In this paper, we introduce full-path traceability, a notion that goes beyond the build step to assess whether an artifact can be traced and verified end-to-end. We leverage full-path traceability to assess risk in the software supply chain by defining a set of risk markers, including metadata traceability, metadata consistency, build dependency provenance, and build environment integrity. To measure such full-path traceability across the Debian ecosystem, we built DebTrace to aggregate fragmented metadata signals across each stage of the supply chain, mining over 80,000 packages, terabytes of source code, 10 years of .buildinfo records, and archival package manifests. We found that only 70% of packages in the latest Debian distribution are traceable across the chain, compared to the 97% claimed by the Debian Reproducible Builds project (for the build stage). We further show that per-release traceability has grown considerably over the past decade, driven by .buildinfo adoption. Our results provide insights and recommendations for Debian maintainers, the Reproducible Builds community, and ecosystems in early stages of adopting build provenance practices.