From 0x90 to 0xAF (up to the start of the 20 00 00 00.. constant) is a SHA-256 hash of the file
So there's the prevention. But do you put a sha1 hash of a file inside of the file? By adding the hash, the hash would no longer be valid. So what exactly is the hash of?