Skip to content
SOC Analyst Role
  • Loading index…

↑↓ navigate · ↵ open · Esc close

en

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.

medium prioritySecurity logProcessMITRE T1059

Where it is logged

Security log on the endpoint or server where the process ran. Requires Audit Process Creation (Detailed Tracking) for Success, plus the GPO "Include command line in process creation events" (Administrative Templates > System > Audit Process Creation) to populate CommandLine. ParentProcessName is available on Windows 10 / Server 2016 and later.

Key fields to read

FieldWhat it tells you
NewProcessNameFull path of the new executable.
CommandLineFull command line, only present when the command-line GPO is enabled.
ParentProcessNameFull path of the parent process (Windows 10/2016+).
SubjectUserNameAccount that started the process (with SubjectLogonId to tie it to a 4624).
NewProcessIdHex PID of the new process; matches ProcessId in 4689.
ProcessIdHex PID of the creator (parent) process.
TokenElevationType%%1936 full token (UAC disabled/default admin), %%1937 elevated, %%1938 limited.
MandatoryLabelIntegrity level, e.g. S-1-16-12288 (High) or S-1-16-16384 (System).

Sample event

4688 — synthetic example
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-8192

How to triage it

  1. 1Read the parent-child pair first: Office, browsers, mshta.exe or wscript.exe spawning cmd.exe/powershell.exe is a high-confidence red flag.
  2. 2Decode and read the CommandLine: Base64 -enc blobs, -w hidden, IEX, DownloadString, certutil -urlcache, rundll32 with odd DLL paths.
  3. 3Build the process tree by chaining ProcessId to earlier NewProcessId values on the same host, and look at children of the suspicious process.
  4. 4Pivot on SubjectLogonId to 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.
  5. 5Check prevalence: how many hosts ran this exact command line or binary path in the last 30 days? Rare plus suspicious equals escalate.
  6. 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.exe scripts.
  • Admin and developer tooling legitimately using PowerShell, certutil or msiexec.
  • Login scripts and scheduled maintenance tasks.

Red flags

  • Office or PDF readers as ParentProcessName for script interpreters or LOLBins.
  • Encoded or obfuscated PowerShell, or download cradles in CommandLine.
  • Executables running from AppData, Temp, ProgramData or C:\Users\Public.
  • Recon bursts: whoami, net group "domain admins" /domain, nltest /dclist, ipconfig /all within seconds of each other.
  • Renamed or misplaced system binaries, e.g. svchost.exe outside System32.

Hunt for it: Splunk & KQL

Splunk SPL
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_Line
Sentinel KQL
SecurityEvent
| 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, CommandLine

Field 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.

More SOC interview questions

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.