In 1984 the Communications of the ACM published an article, Reflections on Trusting Trust. Which is an amazing, and disturbing read about software trust.
The article begins with the exercise, "create a program which can replicate itself."
This leads deftly to the idea of modifying a compiler such that every time code is compiled it adds a security vulnerability. The author points out that this kind of problem in a compiler could and would be found rather quickly.
However, it takes a compiler to compile a new compiler. With this in mind, and the techniques in place for writing self replicating code, one could write a compiler that detected when it was compiling a new compiler and inject its self replicating code into the new compiler.
Thompson certainly makes you question just how much you can trust your code - unless you fully control every aspect of your system.
Recent comments
44 min 19 sec ago
3 hours 39 min ago
3 hours 39 min ago
13 hours 53 min ago
15 hours 21 min ago
15 hours 21 min ago
15 hours 21 min ago
22 hours 38 min ago
2 weeks 3 days ago
4 weeks 4 days ago