A processor cannot execute encrypted instructions, it has to be decrypted at some point (and hence it’s detectable). Of course there are many many ways of making detection harder, but it’s never impossible.