There is something nightmarish about this kind of exploit, and that is maybe why we've been collectively in denial for such a long time.
How many supply-chain generated backdoors in the wild today?
How many supply-chain generated backdoors in the wild today?
So yes, they're scary, but there are countermeasures.
Generally in these environments you build with optimizations off unless needed to ease this validation process as, obviously, you must validate the released/deployed version.
just is doing a lot of work there.