Required reading: "Stealthy Dopant-Level Hardware Trojans" by George Becker et al
https://link.springer.com/content/pdf/10.1007/978-3-642-4034...
https://link.springer.com/content/pdf/10.1007/978-3-642-4034...
Holy crap wtf.. how is this even possible