Windows event log ยท Microsoft-Windows-AppLocker/MSI and Script8005 A script or MSI was allowed to run
- Defender and policy
- 6 fields
Microsoft-Windows-AppLocker%4MSI and Script.evtxMicrosoft-Windows-AppLocker
Fields EvtxECmd extracts
6 columns in the EvtxECmd CSV
- ExecutableInfo
%FilePath%- %FilePath% = /Event/UserData/RuleAndFileData/FilePath
- PayloadData1
%FileHash%- %FileHash% = /Event/UserData/RuleAndFileData/FileHash
- PayloadData2
%Fqbn%- %Fqbn% = /Event/UserData/RuleAndFileData/Fqbn
- PayloadData3
TargetUser- %TargetUser% = /Event/UserData/RuleAndFileData/TargetUser
- PayloadData4
%TargetLogonId%- %TargetLogonId% = /Event/UserData/RuleAndFileData/TargetLogonId
- PayloadData5
%FullFilePath%- %FullFilePath% = /Event/UserData/RuleAndFileData/FullFilePath
Sample event
Event XML from the map file
<Event>
<System>
<Provider Name="Microsoft-Windows-AppLocker" Guid="{cbda4dbf-8d5d-4f69-9578-be14aa540d22}"/>
<EventID>8005</EventID>
<Version>0</Version>
<Level>4</Level>
<Task>0</Task>
<Opcode>0</Opcode>
<Keywords>0x4000000000000000</Keywords>
<TimeCreated SystemTime="2019-12-03T01:37:17.856576200Z"/>
<EventRecordID>1</EventRecordID>
<Correlation ActivityID="{c8287304-a3c6-0001-fb01-37c8c6a3d501}"/>
<Execution ProcessID="19768" ThreadID="17140"/>
<Channel>Microsoft-Windows-AppLocker/MSI and Script</Channel>
<Computer>Thunder.cloud.corp.com</Computer>
<Security UserID="[SID]"/>
</System>
<UserData>
<RuleAndFileData xmlns="http://schemas.microsoft.com/schemas/event/Microsoft.Windows/1.0.0.0">
<PolicyNameLength>6</PolicyNameLength>
<PolicyName>SCRIPT</PolicyName>
<RuleId>{ed97d0cb-15ff-430f-b82c-8d7832957725}</RuleId>
<RuleNameLength>26</RuleNameLength>
<RuleName>(Default Rule) All scripts</RuleName>
<RuleSddlLength>53</RuleSddlLength>
<RuleSddl>D:(XA;;FX;;;S-1-5-32-544;(APPID://PATH Contains "*"))</RuleSddl>
<TargetUser>[SID]</TargetUser>
<TargetProcessId>19768</TargetProcessId>
<FilePathLength>71</FilePathLength>
<FilePath>%OSDRIVE%\USERS\THOR\DOCUMENTS\WINDOWSPOWERSHELL\SCRIPTS\GET-STUFF.PS1</FilePath>
<FileHashLength>32</FileHashLength>
<FileHash>EE805925E38BFAB69D49FCCE20382EB01804A8F7F9897D98D44C945861CAE9A8</FileHash>
<FqbnLength>1</FqbnLength>
<Fqbn>-</Fqbn>
<TargetLogonId>0x3b3057</TargetLogonId>
<FullFilePathLength>64</FullFilePathLength>
<FullFilePath>C:\Users\thor\Documents\WindowsPowerShell\Scripts\get-stuff.ps1</FullFilePath>
</RuleAndFileData>
</UserData>
</Event>References
2 links
Source: evtx/Maps/Microsoft-Windows-AppLocker-MSI-and-Script_Microsoft-Windows-AppLocker_8005.map(opens in new tab) by Phill Moore\Troy Larson and contributors(opens in new tab), MIT License(opens in new tab)