Windows event log ยท Security4719 System audit policy was changed
- Security
- 4 fields
Security.evtxMicrosoft-Windows-Security-Auditing
Fields EvtxECmd extracts
4 columns in the EvtxECmd CSV
- UserName
%domain%\%user%- %domain% = /Event/EventData/Data[@Name="SubjectDomainName"]
- %user% = /Event/EventData/Data[@Name="SubjectUserName"]
- PayloadData1
CategoryId: %CategoryId% SubcategoryId: %SubcategoryId%- %CategoryId% = /Event/EventData/Data[@Name="CategoryId"]
- %SubcategoryId% = /Event/EventData/Data[@Name="SubcategoryId"]
- PayloadData2
SubcategoryGuid: %SubcategoryGuid%- %SubcategoryGuid% = /Event/EventData/Data[@Name="SubcategoryGuid"]
- PayloadData3
AuditPolicyChanges: %AuditPolicyChanges%- %AuditPolicyChanges% = /Event/EventData/Data[@Name="AuditPolicyChanges"]
Sample event
Event XML from the map file
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Microsoft-Windows-Security-Auditing" Guid="{54849625-5478-4994-A5BA-3E3B0328C30D}"/>
<EventID>4719</EventID>
<Version>0</Version>
<Level>0</Level>
<Task>13568</Task>
<Opcode>0</Opcode>
<Keywords>0x8020000000000000</Keywords>
<TimeCreated SystemTime="2015-09-30T19:57:09.668217100Z"/>
<EventRecordID>1049418</EventRecordID>
<Correlation/>
<Execution ProcessID="516" ThreadID="4668"/>
<Channel>Security</Channel>
<Computer>DC01.contoso.local</Computer>
<Security/>
</System>
<EventData>
<Data Name="SubjectUserSid">S-1-5-18</Data>
<Data Name="SubjectUserName">DC01$</Data>
<Data Name="SubjectDomainName">CONTOSO</Data>
<Data Name="SubjectLogonId">0x3e7</Data>
<Data Name="CategoryId">%%8274</Data>
<Data Name="SubcategoryId">%%12807</Data>
<Data Name="SubcategoryGuid">{0CCE9223-69AE-11D9-BED3-505054503030}</Data>
<Data Name="AuditPolicyChanges">%%8448, %%8450</Data>
</EventData>
</Event>References
4 links
- ultimatewindowssecurity.com/securitylog/encyclopedia/event.aspx?eventid=4719(opens in new tab)
- docs.microsoft.com/en-us/windows/security/threat-protection/auditing/event-4719(opens in new tab)
- github.com/nasbench/EVTX-ETW-Resources/blob/main/ETWProvidersCSVs/Internal/Microsoft-Windows-Security-Auditing.csv(opens in new tab)
- socinvestigation.com/threat-hunting-using-windows-security-log/(opens in new tab)
Source: evtx/Maps/Security_Microsoft-Windows-Security-Auditing_4719.map(opens in new tab) by Mike Pilkington and contributors(opens in new tab), MIT License(opens in new tab)