Missing parent/creator process id for event 4688 with im_wseventing
Tags:
#1
TD_609646
For event 4688 I can only extract the parent process id out of the message body but there is no field in JSON containing only the parent process id. In im_msvistalog this field is properly added to JSON. Example in im_wseventing:
{
"EventTime":"2020-11-23 00:25:57",
"Hostname":"...",
"Keywords":-9214364837600034816,
"EventType":"AUDIT_SUCCESS",
"SeverityValue":2,
"Severity":"INFO",
"EventID":4688,
"SourceName":"Microsoft-Windows-Security-Auditing",
"ProviderGuid":"{ANONYMIZED}",
"Version":2,
"Task":13312,
"OpcodeValue":0,
"RecordNumber":14699970,
"ProcessID":4,
"ThreadID":7924,
"Channel":"Security",
"Message":"A new process has been created.\r\n\r\nCreator Subject:\r\n\tSecurity ID:\t\tS-1-5-18\r\n\tAccount Name:\t\ANON$\r\n\tAccount Domain:\t\ANON\r\n\tLogon ID:\t\tANON\r\n\r\nTarget Subject:\r\n\tSecurity ID:\t\tS-1-0-0\r\n\tAccount Name:\t\t-\r\n\tAccount Domain:\t\t-\r\n\tLogon ID:\t\t0x0\r\n\r\nProcess Information:\r\n\tNew Process ID:\t\t0x114c\r\n\tNew Process Name:\tC:\\Windows\\System32\\cmd.exe\r\n\tToken Elevation Type:\tTokenElevationTypeDefault (1)\r\n\tCreator Process ID:\t0x1f8c\r\n\tProcess Command Line:\t\r\n\r\nToken Elevation Type indicates the type of token that was assigned to the new process in accordance with User Account Control policy.\r\n\r\nType 1 is a full token with no privileges removed or groups disabled. A full token is only used if User Account Control is disabled or if the user is the built-in Administrator account or a service account.\r\n\r\nType 2 is an elevated token with no privileges removed or groups disabled. An elevated token is used when User Account Control is enabled and the user chooses to start the program using Run as administrator. An elevated token is also used when an application is configured to always require administrative privilege or to always require maximum privilege, and the user is a member of the Administrators group.\r\n\r\nType 3 is a limited token with administrative privileges removed and administrative groups disabled. The limited token is used when User Account Control is enabled, the application does not require administrative privilege, and the user does not choose to start the program using Run as administrator.",
"Category":"Process Creation",
"Opcode":"Info",
"SubjectUserSid":"ANON",
"SubjectUserName":"ANON",
"SubjectDomainName":"ANON",
"SubjectLogonId":"ANON",
"NewProcessId":"0x114c",
"NewProcessName":"C:\\Windows\\System32\\cmd.exe",
"TokenElevationType":"%%1936",
"TargetUserSid":"S-1-0-0",
"TargetUserName":"-",
"TargetDomainName":"-",
"TargetLogonId":"0x0",
"EventReceivedTime":"2020-11-23 02:13:00",
"SourceModuleName":"security_event_collect",
"SourceModuleType":"im_msvistalog"}
Please add the missing field.
Best regards Theo