There was an example of this reposted here just last week:
https://www.benshoof.org/blog/case-cracked
The crack for The Colonel's Bequest worked by hardcoding the RNG in the interpreter to always return the same number. This broke every random element of the game, which is undetectable on a single playthrough.