Skip to content
WETNav
SysmonPolicy Change

Event ID 27: File Block Executable

Logs when Sysmon blocks the creation of executable files based on configuration.

Channel
Microsoft-Windows-Sysmon/Operational
Logged by default
No
Written on
Any host
Volume
Low
Provider
Microsoft-Windows-Sysmon
Needs a SACL
No

To have this event

  • Sysmon installed, with a configuration that includes this event type.
  • Commonly disabled or heavily filtered in public baseline configurations; check yours.

Key fields

Exact XML field names, as they appear in <Data Name="…"> and in SIEM field extractions.

UtcTimeUTC timestamp of file block event
ProcessGuidProcess GUID that attempted file operation
ProcessIdProcess ID
ImageProcess executable path
TargetFilenamePath of the blocked executable file
HashesHashes of the blocked file
Have one of these events? Paste it into the decoder

Pull this event

Retrieval queries for a live host, a collected .evtx file and common SIEMs. Filter further on the key fields above.

Get-WinEvent -LogName 'Microsoft-Windows-Sysmon/Operational' -FilterXPath "*[System[(EventID=27)]]" -MaxEvents 50 |
  Select-Object TimeCreated, Id, MachineName, Message

-FilterXPath supports exact matches only. For substring matching, filter in Where-Object.

Common questions

What does Windows event ID 27 mean?
Logs when Sysmon blocks the creation of executable files based on configuration. It is written to the Sysmon log (Microsoft-Windows-Sysmon/Operational).
Is event 27 logged by default?
No. It must be enabled before it is recorded.
Where is event 27 recorded?
In the Microsoft-Windows-Sysmon/Operational channel on the any host.

Logs when Sysmon blocks the creation of executable files based on configuration. Key fields, logging requirements, ATT&CK mapping and ready-to-run queries.