Security · Process
4688 · A new process has been created
Event 4688 is logged every time a new process starts, recording the executable, its parent process and, if enabled, the full command line. It is the native Windows equivalent of an EDR process tree and is central to detecting malicious execution such as Office macros spawning PowerShell or LOLBins downloading payloads. Without the command-line setting it loses most of its value, so knowing that GPO is a classic interview point.
Where it is logged
CommandLine. ParentProcessName is available on Windows 10 / Server 2016 and later.Key fields to read
| Field | What it tells you |
|---|---|
| NewProcessName | Full path of the new executable. |
| CommandLine | Full command line, only present when the command-line GPO is enabled. |
| ParentProcessName | Full path of the parent process (Windows 10/2016+). |
| SubjectUserName | Account that started the process (with SubjectLogonId to tie it to a 4624). |
| NewProcessId | Hex PID of the new process; matches ProcessId in 4689. |
| ProcessId | Hex PID of the creator (parent) process. |
| TokenElevationType | %%1936 full token (UAC disabled/default admin), %%1937 elevated, %%1938 limited. |
| MandatoryLabel | Integrity level, e.g. S-1-16-12288 (High) or S-1-16-16384 (System). |
Sample event
EventID: 4688
TimeCreated: 2026-03-14T09:41:07.338Z
Computer: NW-FIN-WS07.northwind.local
SubjectUserName: m.okafor
SubjectDomainName: NORTHWIND
SubjectLogonId: 0x2A41C7
NewProcessId: 0x1f3c
NewProcessName: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
TokenElevationType: %%1938
ProcessId: 0x2b08
CommandLine: powershell.exe -nop -w hidden -enc SQBFAFgAIAAoAE4AZQB3AC0ATwBiAGoAZQBjAHQA...
ParentProcessName: C:\Program Files\Microsoft Office\root\Office16\EXCEL.EXE
MandatoryLabel: S-1-16-8192How to triage it
- 1Read the parent-child pair first: Office, browsers,
mshta.exeorwscript.exespawningcmd.exe/powershell.exeis a high-confidence red flag. - 2Decode and read the
CommandLine: Base64-encblobs,-w hidden,IEX,DownloadString,certutil -urlcache,rundll32with odd DLL paths. - 3Build the process tree by chaining
ProcessIdto earlierNewProcessIdvalues on the same host, and look at children of the suspicious process. - 4Pivot on
SubjectLogonIdto the 4624 to see how the user got there, and to Sysmon 3/22 or proxy logs for network activity right after the process started. - 5Check prevalence: how many hosts ran this exact command line or binary path in the last 30 days? Rare plus suspicious equals escalate.
- 6If malicious, isolate the host via EDR and collect the email or file that triggered the parent process.
Benign vs suspicious
Usually benign
- Software deployment and management agents (SCCM, Intune, RMM) launching PowerShell and
cmd.exescripts. - Admin and developer tooling legitimately using PowerShell,
certutilormsiexec. - Login scripts and scheduled maintenance tasks.
Red flags
- Office or PDF readers as
ParentProcessNamefor script interpreters or LOLBins. - Encoded or obfuscated PowerShell, or download cradles in
CommandLine. - Executables running from
AppData,Temp,ProgramDataorC:\Users\Public. - Recon bursts:
whoami,net group "domain admins" /domain,nltest /dclist,ipconfig /allwithin seconds of each other. - Renamed or misplaced system binaries, e.g.
svchost.exeoutsideSystem32.
Hunt for it: Splunk & KQL
index=wineventlog EventCode=4688
(Creator_Process_Name="*\\winword.exe" OR Creator_Process_Name="*\\excel.exe" OR Creator_Process_Name="*\\outlook.exe")
(New_Process_Name="*\\powershell.exe" OR New_Process_Name="*\\cmd.exe" OR New_Process_Name="*\\mshta.exe" OR New_Process_Name="*\\rundll32.exe")
| table _time, host, user, Creator_Process_Name, New_Process_Name, Process_Command_LineSecurityEvent
| where TimeGenerated > ago(7d)
| where EventID == 4688
| where ParentProcessName has_any ("winword.exe", "excel.exe", "outlook.exe", "powerpnt.exe")
| where NewProcessName has_any ("powershell.exe", "cmd.exe", "mshta.exe", "rundll32.exe", "wscript.exe")
| project TimeGenerated, Computer, SubjectUserName, ParentProcessName, NewProcessName, CommandLineField names depend on your add-on and table. More translations in the Splunk vs KQL cheat sheet.
Interview question
“You are looking at 4688 events but the CommandLine field is empty. Why, and what do you do?”
✓ Strong answer sketch
4688 only records the command line when the GPO "Include command line in process creation events" is enabled in addition to Audit Process Creation, so an empty field means that setting is off on that host. In the short term I lean on other sources: Sysmon Event 1 or EDR telemetry, which record command lines, and PowerShell 4104 script block logs for PowerShell content. I would still use the parent-child relationship and the process path from 4688, which remain useful. Then I would raise the logging gap with the engineering team so the GPO gets deployed, because it is a visibility hole attackers benefit from.
See it in a real investigation
Frequently asked questions
What does Event ID 4688 mean?
Event ID 4688 means a new process was created. It records the new executable (NewProcessName), the parent (ParentProcessName), the user, and optionally the full CommandLine.
How do I enable command line logging for Event ID 4688?
Enable Audit Process Creation under Advanced Audit Policy > Detailed Tracking, then enable the Group Policy setting "Include command line in process creation events" under Computer Configuration > Administrative Templates > System > Audit Process Creation.
Should I use 4688 or Sysmon Event ID 1?
Sysmon 1 is richer (hashes, parent command line, OriginalFileName, process GUIDs), but 4688 is built in and needs no agent. Many SOCs collect both, and 4688 with command lines is a solid baseline where Sysmon is not deployed.