Windows Security: Failed Code Integrity Checks (Event 5038/6281)

Alerts on Windows Security code integrity failures (Event 5038/6281) that may indicate modified or corrupted binaries.

FreeReviewedSigma · Informational · v2
Product
windows
Service
security
Author
Thomas Patzke (SigmaHQ), DRL 1.1
Published
2019-12-03
Updated
2026-07-31

ATT&CK techniques

Defense Evasion
  1. Recon

  2. Resource Dev

  3. Initial Access

  4. Execution

  5. Persistence

  6. Priv Esc

  7. Cred Access

  8. Discovery

  9. Lateral Movement

  10. Collection

  11. C2

  12. Exfiltration

  13. Impact

What it detects

This rule flags Windows Security events indicating code integrity verification failures, such as missing page hashes or corrupted drivers, which can result from unauthorized modification. Attackers may trigger these failures when tampering with binaries or drivers to evade security controls or persist. It relies on Windows Security log telemetry for EventID 5038 and 6281 and uses optional vendor-path exclusions to reduce noise from specific environments.

Related detections2 linkedT1027.001 — drag to rearrange
macOS Process Execution: dd and truncate used for binary padding
Linux: Detect dd and truncate used to pad binaries and alter file contents
Windows Security: Failed Code Integrity Checks (Event 5038/6281)
Pivot detection · T1027.001 · 2 related

Changelog

v2
  1. v2
    Candidate ingested via manual entry.2026-07-31
  2. v1
    No changelog recorded for this version.2026-07-30

Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.