Skip to content
WETNav
AppLockerApplication Control

Event ID 8006: MSI or script was allowed but would have been blocked (audit)

Written in audit mode when an installer or script ran but would have been blocked under enforcement.

Channel
Microsoft-Windows-AppLocker/MSI and Script
Logged by default
No
Written on
Any host
Volume
Moderate
Provider
Microsoft-Windows-AppLocker
Needs a SACL
No

To have this event

  • An AppLocker policy with script/installer rules in audit mode and the AppIDSvc service running

Key fields

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

FilePathFull path of the MSI or script that would be blocked under enforcement
FileHashHash of the file
FqbnFully qualified binary name; '-' for unsigned files
TargetUserSID of the user that ran the file
Have one of these events? Paste it into the decoder

Analyst notes

  • 018006 is the script/installer hunting signal: untrusted .ps1, .vbs, .js, .bat and .msi that executed outside policy.
  • 02A script running from a user-writable path that would be blocked is a common malware delivery pattern; pivot on FileHash and the running user.

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-AppLocker/MSI and Script' -FilterXPath "*[System[(EventID=8006)]]" -MaxEvents 50 |
  Select-Object TimeCreated, Id, MachineName, Message

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

ATT&CK mapping

Techniques this event can help detect. Most of these depend on specific field values; the event alone does not mean the technique happened.

Also relevant, depending on field values

Common questions

What does Windows event ID 8006 mean?
Written in audit mode when an installer or script ran but would have been blocked under enforcement. It is written to the AppLocker log (Microsoft-Windows-AppLocker/MSI and Script).
Is event 8006 logged by default?
No. It must be enabled before it is recorded.
Where is event 8006 recorded?
In the Microsoft-Windows-AppLocker/MSI and Script channel on the any host.

Written in audit mode when an installer or script ran but would have been blocked under enforcement. Key fields, logging requirements, ATT&CK mapping and ready-to-run queries.