Instrumenting Software Builds To Detect Stealth Backdoors And Other Curiosities
Where
Talks
hack.lu 2025
Duration
18 min
Shows how eBPF tracing of compiler and linker activity can expose hidden backdoors in software builds.
Summary
The talk addresses supply chain attacks, where a build can be altered in ways that never appear in the source code or the final binary. The speaker builds on an idea from a conference talk about Debian packaging and applies it at the level of the build itself. While a build runs, the approach records which processes read and write which files, then links those relationships into a graph that runs from the finished artifact back to its sources.
Using the GNU Hello package as an example, the talk shows how many compiler, assembler and archive steps even a trivial program goes through, which makes the graph messy quickly. Only a few kinds of events are needed: file opens for reading and writing, some renames, and process creation. eBPF probes make this practical with low overhead, whereas LD_PRELOAD fails on statically linked tools and strace is too costly. Applied to the XZ backdoor, the method would have flagged an object file that no compiler produced and a source file patched during the build. It also exposed race conditions in OCaml builds that compile bytecode and native variants in parallel.
The tooling is not yet published. Planned releases include a watcher tool, scripts with signatures for spotting anomalies in the graph, and possible CI integration. In questions, an audience member asked how this differs from nm, which lists symbols but not how files entered a build. The speaker noted that reproducible builds efforts could benefit, and described the work as still in its early stages.
Related talks
Talks·58 min
Jamon Camisso
Shows how the Wolfi distribution and its apko and melange tools build minimal container images with far fewer known CVEs.
Talks·19 min
Nicole Schwartz
Explains how SLSA supply chain requirements apply to build integrity, artifact verification, and vulnerability response in software teams.
The Linux Foundation·39 min
Build a More Sustainable World Through "Call for Code with the Linux Foundation" Open Source Project
Examines build a More Sustainable World Through Call for Code with the Linux Foundation Open Source Project and evaluates key implications for security practitioners.


