title: Checking PE header integrity
body: <p>I have created a project on identifying malicious files using an artificial neural network. I am giving some selected features from PE structure as inputs to the neural network, and it is classifying files correctly. But referring to this answer : "<a href="https://security.stackexchange.com/questions/37921/windows-pe-file-and-malwares">https://security.stackexchange.com/questions/37921/windows-pe-file-and-malwares</a>";it said that code can be injected into PE and values in optional header can be changed! I wanted to know if there is any way to know if PE structure has been modified?
  One more link about injecting code into PE file: <a href="http://www.codeproject.com/Articles/12532/Inject-your-code-to-a-Portable-Executable-file" rel="nofollow noreferrer">http://www.codeproject.com/Articles/12532/Inject-your-code-to-a-Portable-Executable-file</a></p>