Hacker News new | ask | show | jobs
by nialv7 3224 days ago
You can not. The point is you cannot run the code of a compiler, you have to run the compiled binary. And there's no way to verify if the binary does the same thing as the code when the Ken Thompson Hack is implemented.
1 comments

Aren't there C interpreters still around?
How can you be sure there's no Ken Thompson Hack in the interpretor?
How would there be one? It's not like you can easily write a program that infiltrates a random program A that happens to interpret a language in which a random program B is written and infiltrates the B program afterwards. You'd probably need a general-artificial-intelligence-level in your malware.