Event ID 5038-Code integrity determined that the image hash of a file is not valid.
|Description||Code integrity determined that the image hash of a file is not valid. A code integrity feature is generated if the signature of a file is invalid.|
- Code Integrity is a feature that improves the security of the operating system by validating the integrity of a driver or system file each time it is loaded into memory.
- Code Integrity detects whether an unsigned driver or system file is being loaded into the kernel, or whether a system file has been modified by malicious software that is being run by a user account with administrative permissions.
- On x64-based versions of the operating system, kernel-mode drivers must be digitally signed.
The event logs the following information:
File name: %filepath\filename%
Reasons to monitor event:
- The file could be corrupt due to unauthorized modification or the invalid hash could indicate a potential disk device error.
- We recommend monitoring this event, especially on high value assets or computers, because it can be a sign of a software or configuration issue, or a malicious action.
Event 5038 applies to the following operating systems:
- Windows Server 2008 R2 and 7
- Windows Server 2012 R2 and 8.1
- Windows Server 2016 and 10