@kytta This is not a new problem. Here's Ken Thompson classic paper on trust from 1984(!)

cs.cmu.edu/~rdriley/487/papers