Windows event log ยท Security4688 A new process has been created
- Security
- 7 fields
Security.evtxMicrosoft-Windows-Security-Auditing
Fields EvtxECmd extracts
7 columns in the EvtxECmd CSV
- UserName
%domain%\%user%- %domain% = /Event/EventData/Data[@Name="SubjectDomainName"]
- %user% = /Event/EventData/Data[@Name="SubjectUserName"]
- PayloadData1
Parent process: %ParentProcessName%- %ParentProcessName% = /Event/EventData/Data[@Name="ParentProcessName"]
- PayloadData2
PID: %ProcessId%- %ProcessId% = /Event/EventData/Data[@Name="NewProcessId"]
- PayloadData3
Parent PID: %ProcessId%- %ProcessId% = /Event/EventData/Data[@Name="ProcessId"]
- PayloadData4
Mandatory label: %MandatoryLabel%- %MandatoryLabel% = /Event/EventData/Data[@Name="MandatoryLabel"]
- PayloadData5
Target User: %targetDomain%\%targetUser%- %targetDomain% = /Event/EventData/Data[@Name="TargetDomainName"]
- %targetUser% = /Event/EventData/Data[@Name="TargetUserName"]
- ExecutableInfo
%NewProcessName% %CommandLine%- %NewProcessName% = /Event/EventData/Data[@Name="NewProcessName"]
- %CommandLine% = /Event/EventData/Data[@Name="CommandLine"]
Value lookups
Codes that EvtxECmd turns into text
MandatoryLabel
- S-1-16-0
- SECURITY_MANDATORY_UNTRUSTED_RID
- S-1-16-4096
- SECURITY_MANDATORY_LOW_RID
- S-1-16-8192
- SECURITY_MANDATORY_MEDIUM_RID
- S-1-16-8448
- SECURITY_MANDATORY_MEDIUM_PLUS_RID
- S-1-16-12288
- SECURITY_MANDATORY_HIGH_RID
- S-1-16-16384
- SECURITY_MANDATORY_SYSTEM_RID
- S-1-16-20480
- SECURITY_MANDATORY_PROTECTED_PROCESS_RID
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>4688</EventID>
<Version>2</Version>
<Level>0</Level>
<Task>13312</Task>
<Opcode>0</Opcode>
<Keywords>0x8020000000000000</Keywords>
<TimeCreated SystemTime="2015-11-12T02:24:52.377352500Z"/>
<EventRecordID>2814</EventRecordID>
<Correlation/>
<Execution ProcessID="4" ThreadID="400"/>
<Channel>Security</Channel>
<Computer>WIN-GG82ULGC9GO.contoso.local</Computer>
<Security/>
</System>
<EventData>
<Data Name="SubjectUserSid">S-1-5-18</Data>
<Data Name="SubjectUserName">WIN-GG82ULGC9GO$</Data>
<Data Name="SubjectDomainName">CONTOSO</Data>
<Data Name="SubjectLogonId">0x3e7</Data>
<Data Name="NewProcessId">0x2bc</Data>
<Data Name="NewProcessName">C:\\Windows\\System32\\rundll32.exe</Data>
<Data Name="TokenElevationType">%%1938</Data>
<Data Name="ProcessId">0xe74</Data>
<Data Name="CommandLine"/>
<Data Name="TargetUserSid">S-1-5-21-1377283216-344919071-3415362939-1104</Data>
<Data Name="TargetUserName">dadmin</Data>
<Data Name="TargetDomainName">CONTOSO</Data>
<Data Name="TargetLogonId">0x4a5af0</Data>
<Data Name="ParentProcessName">C:\\Windows\\explorer.exe</Data>
<Data Name="MandatoryLabel">S-1-16-8192</Data>
</EventData>
</Event>References
5 links
- ultimatewindowssecurity.com/securitylog/encyclopedia/event.aspx?eventid=4688(opens in new tab)
- docs.microsoft.com/en-us/windows/security/threat-protection/auditing/event-4688(opens in new tab)
- github.com/nasbench/EVTX-ETW-Resources/blob/main/ETWProvidersCSVs/Internal/Microsoft-Windows-Security-Auditing.csv(opens in new tab)
- jpcertcc.github.io/ToolAnalysisResultSheet/(opens in new tab)
- socinvestigation.com/threat-hunting-using-windows-security-log/(opens in new tab)
Source: evtx/Maps/Security_Microsoft-Windows-Security-Auditing_4688.map(opens in new tab) by Eric Zimmerman and Andrew Rathbun and contributors(opens in new tab), MIT License(opens in new tab)