The connection between code and installed binary is more fully specified in nixpkgs. You can of course still hide a malicious payload, but the hiding places are all worse than they'd be otherwise: a little more likely that the bad guys would get caught, because now they have to hide in the open.