Sysmon blocked file creation of an executable (requires Sysmon blocking configuration).
Active prevention of malicious executables being written to disk. Requires Sysmon 14.1+ with blocking rules configured. When triggered, it indicates an active attempt to drop an executable to a protected location.
Alert on all occurrences. Review Image and TargetFilename to understand the blocked drop attempt.
ImageCommandLineParentImageUserHashes | Tactic | Technique |
|---|---|
| Initial Access | User Execution (T1204) |
Starting points — adapt the log source, projected fields and thresholds for your environment.
Event
| where EventLog == "Microsoft-Windows-Sysmon/Operational" and EventID == 27 // File block executable
// EventData holds: Image, CommandLine, ParentImage, User, Hashes
| project TimeGenerated, Computer, RenderedDescription
| sort by TimeGenerated desc
index=* sourcetype="WinEventLog:Microsoft-Windows-Sysmon/Operational" EventCode=27
| stats count earliest(_time) as first_seen latest(_time) as last_seen by ComputerName
| sort - count `# File block executable — add EventData fields: Image, CommandLine, ParentImage, User`
File block executable. Sysmon blocked file creation of an executable (requires Sysmon blocking configuration).
Event 27 is written to the Microsoft-Windows-Sysmon/Operational channel by Microsoft-Windows-Sysmon. Requires Sysmon installed with a config that logs this event (e.g. SwiftOnSecurity / Olaf Hartong).
Event 27 is associated with: User Execution (T1204).
Alert on all occurrences. Review Image and TargetFilename to understand the blocked drop attempt.