Event ID 8005: MSI or script was allowed to run
Written in the MSI and Script channel when AppLocker allows an installer (.msi), script (.ps1, .vbs, .js, .cmd, .bat) or packaged app to run.
- 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 and the AppIDSvc service running
Key fields
Exact XML field names, as they appear in <Data Name="…"> and in SIEM field extractions.
| Field | What it tells you |
|---|---|
| FilePath | Full path of the MSI or script that ran |
| FileHash | Hash of the file |
| Fqbn | Fully qualified binary name; '-' for unsigned files |
| TargetUser | SID of the user that ran the file |
Analyst notes
- 01This channel covers scripts and installers, which is where a lot of initial-access and tooling activity lives; an allowed .ps1 or .vbs from a user path still merits review.
- 02Correlate allowed scripts with PowerShell 4104 and with the launching process.
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=8005)]]" -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
Related events
Common questions
- What does Windows event ID 8005 mean?
- Written in the MSI and Script channel when AppLocker allows an installer (.msi), script (.ps1, .vbs, .js, .cmd, .bat) or packaged app to run. It is written to the AppLocker log (Microsoft-Windows-AppLocker/MSI and Script).
- Is event 8005 logged by default?
- No. It must be enabled before it is recorded.
- Where is event 8005 recorded?
- In the Microsoft-Windows-AppLocker/MSI and Script channel on the any host.
Decode a real event
Paste the XML and every value gets explained. Nothing leaves your browser.
Open decoderWritten in the MSI and Script channel when AppLocker allows an installer (.msi), script (.ps1, .vbs, .js, .cmd, .bat) or packaged app to run. Key fields, logging requirements, ATT&CK mapping and ready-to-run queries.