Relevant... [1]
> Ken describes how he injected a virus into a compiler. Not only did his compiler know it was compiling the login function and inject a backdoor, but it also knew when it was compiling itself and injected the backdoor generator into the compiler it was creating. The source code for the compiler thereafter contains no evidence of either virus.
This has always impressed me, I'd love to peek the code and try to read it but I highly doubt I'd be proficient enough to understand it.
Re:_NSAKEY
by Denvercoder9 on Tuesday January 14, 2020 @08:53AM
(#22044701)
Make sure you've also read, understood and recompiled the compiler. And the compiler used to compile the compiler.
Re:_NSAKEY
by colejohnson66 on Tuesday January 14, 2020 @11:40AM
(#22046478)
That reminds me of an answer on Quora where a compiler was infected and would insert white supremacy messages into the compiled program. And if you tried to recompile the compiler, it would inject its code into the new compiler[0].
[0]: http://www.quora.com/What-is-a-coders-worst-nightmare/answer...
Re:_NSAKEY
by supercommand on Tuesday January 14, 2020 @10:26AM
(#22045577)
Even then, assembly is too high level.
https://m.youtube.com/watch?v=eunYrrcxXfw
And then we get into hardware design...
Re:_NSAKEY
by colejohnson66 on Tuesday January 14, 2020 @11:41AM
(#22046490)
Because open source projects like OpenSSL never have bugs sitting wide open for years. cough Heartbleed
Everything for which you haven't read, fully understood, and compiled from the source can be compromised. Just because there's source for something somewhere doesn't mean the binary you downloaded is secure.