Friday 30 September 2011

"Strange Loops": C compiler backdoor, self-compilation

Hacker News | Ken Thompson's theoretical C compiler backdoor: "The gist if you don't want to read the article is you put code into your c compiler that checks to see if it's making the login command and then compiles in a backdoor. Nasty in its own right, but then you also put in code so if you recompile the compiler, it adds the code to do this (add the backdoor and add itself to the c compiler) back in. Then you take the code out of the source file and recompile.
Apparently it almost made it out into production Unix, accidentally. The only thing that stopped it was they had an error in their code that added an extra space each compile cycle and one of the QA guys caught it."

More on the same subject:

No comments:

Post a Comment