Trusting-Trust Attack against an Entire Linux Distribution (via the strip utility)

48 points by MarkMLl


"Ken Thompson's trusting-trust attack, in which a compromised compiler backdoors the programs it builds and reproduces the backdoor in subsequent rebuilds of itself, is widely regarded as a threat specific to compilers. We show that it is not."

A few weeks ago I came across this https://www.teamten.com/lawrence/writings/coding-machines/ : it's clearly fictional (and furthermore is "pre-AI" in that it was written in 2009) but is interesting in that it raises the question of whether one or more computers could- without "intention" embed code meeting the "trusting trust" criteria in GCC.

nelson

They actually built it! Neat. Thompson's attack is fun but I always understood it to be a thought experiment.

while strip is not a compiler it is a thing that manipulates executables. It's not too surprising it could be used to subvert the output. I imagine ld is similarly targetable, as is anything like cp which is copying data around.

The article gets to this in a later section: all this work on reproducible builds and hand-verifiable bootstraps seems practically useful. What's the status of this 2023 Guix bootstrapping now? Is anyone doing something similar for mainstream Linux systems?

altano

I highly recommend this podcast rendition: https://lobste.rs/s/oukekp/coding_machines_fiction