If it's a simple flag in the executable file header, what stops a cheat program setting the same flag and getting into the sandbox?
Or a cheat program combining itself with the game executable, and setting the flag so other processes can't interrogate whether it contains a cheat.