One of my favorite Ken Thompson hacks is one where he demonstrated how a backdoor could be introduced into a compiler in such a way that it would be difficult to notice https://wiki.c2.com/?TheKenThompsonHack
https://www.cs.cmu.edu/~rdriley/487/papers/Thompson_1984_Ref...