Skip to content
WETNav
SecurityProcess ExecutionIn-depth analysis

Event ID 4688: A new process has been created

Event 4688 logs every new process created on a Windows system, including the process name, command line arguments, parent process, and user account. This event is essential for detecting malware execution, living-off-the-land binary abuse, and suspicious command-line activity.

Channel
Security
Logged by default
No
Written on
Any host
Volume
Very high
Audit subcategory
Process Creation
Needs a SACL
No

To have this event

  • Enable Process Creation: auditpol /set /subcategory:"Process Creation" /success:enable /failure:enable
  • GPO: Administrative Templates > System > Audit Process Creation > Include command line in process creation events = Enabled. Without it CommandLine is empty.

Key fields

Exact XML field names, as they appear in <Data Name="…"> and in SIEM field extractions.

SubjectUserNameAccount that created the process
SubjectDomainNameDomain of the account
SubjectLogonIdLogon ID of the creating account; matches TargetLogonId in the 4624 that started the session
NewProcessNameFull path of the new process executable
NewProcessIdProcess ID (PID) of the new process
TokenElevationTypeToken elevation type (%%1936=Type 1/Default, %%1937=Type 2/Full, %%1938=Type 3/Limited)%%1936 Type 1 (Full token)%%1937 Type 2 (Elevated)All TokenElevationType values
ProcessIdPID of the creator (parent) process. The XML field is ProcessId; 'Creator Process ID' is only the rendered message label
ParentProcessNameFull path of the creator (parent) process (Windows 10/Server 2016+). The XML field is ParentProcessName; 'Creator Process Name' is only the rendered message label
CommandLineFull command line with arguments (requires audit policy configuration)
TargetUserNameAccount the new process runs as when it differs from the creator (Windows 10/Server 2016+); '-' when not applicable
TargetDomainNameDomain of the account the new process runs as (Windows 10/Server 2016+); '-' when not applicable
TargetLogonIdLogon ID of the account the new process runs as (Windows 10/Server 2016+); 0x0 when not applicable, otherwise pivot to the matching 4624 TargetLogonId
MandatoryLabelIntegrity level of the new process, logged as a SID (Windows 10/Server 2016+): S-1-16-4096 = Low, S-1-16-8192 = Medium, S-1-16-12288 = High, S-1-16-16384 = System. Query on the SID, not the words High or Low
Have one of these events? Paste it into the decoder

Analyst notes

  • 01Key Fields: NewProcessName/Image, CommandLine, ParentProcessName.
  • 02Look for suspicious parent-child relationships (e.g., Office apps spawning cmd.exe/powershell.exe, services spawning unexpected processes like whoami.exe).
  • 03Analyze CommandLine for obfuscated/encoded scripts, suspicious flags, network destinations, or sensitive file paths.
  • 04Enable 'Include command line in process creation events' group policy.
  • 05Can be noisy; requires baseline understanding and potentially filtering.

In an investigation

Event 4688 provides comprehensive visibility into process execution activity on Windows systems, making it invaluable for threat detection and incident response. This event captures the executable filename, full command line with all parameters, the parent process that spawned it, the user account context, process ID, and token elevation information. The command line logging capability must be explicitly enabled through Group Policy, but once activated it reveals exactly how attackers are executing their tools and living-off-the-land binaries. Security analysts use 4688 to detect malicious PowerShell execution, suspicious wscript or cscript usage, unusual parent-child process relationships, and command obfuscation techniques. For example, legitimate Microsoft Office applications should not spawn PowerShell or cmd.exe processes, making such combinations immediate red flags. The event also captures process integrity levels and privilege escalation attempts through token elevation information, helping identify attempts to bypass User Account Control or gain SYSTEM-level access.

What it can reveal

  • PowerShell with encoded commands (-EncodedCommand) often indicates malware or attack frameworks like Cobalt Strike
  • Office applications spawning scripting engines (powershell.exe, wscript.exe) suggest macro-based malware
  • Unusual parent-child relationships like explorer.exe spawning cmd.exe from suspicious directories indicate process injection
  • Remote execution tools (psexec.exe, winrm.exe) appearing outside maintenance windows may signal lateral movement
  • LOLBins (Living Off the Land Binaries) like certutil.exe, bitsadmin.exe used for file downloads are attack indicators

How to detect with it

Build a baseline of normal process execution patterns in your environment, focusing on parent-child relationships and typical command-line parameters. Alert on any process spawned from Office applications, especially scripting engines or network utilities. Monitor for PowerShell execution with suspicious parameters like -EncodedCommand, -WindowStyle Hidden, or IEX (Invoke-Expression). Track usage of LOLBins in unusual contexts, such as certutil.exe downloading files or regsvr32.exe executing remote scripts. Detect obfuscation techniques like excessive special characters, base64 encoding, or command concatenation. Correlate process creation with network connections (Sysmon Event 3) to identify command-and-control beaconing.

Attack patterns

  • Macro-based loader attack pattern: an Office process such as winword.exe spawns cmd.exe or powershell.exe to fetch the next stage, visible through 4688 NewProcessName and ParentProcessName; when the macro launches through WMI, the parent is WmiPrvSE.exe instead of the Office process
  • APT32 (OceanLotus) used certutil.exe to download second-stage payloads, captured in 4688 command line arguments
  • Lazarus Group executed encoded PowerShell commands through WMI, leaving distinctive 4688 event signatures

Compared withEvent 4688 is similar to Sysmon Event 1 but with less detail. Sysmon provides file hashes, signature status, and parent command lines that 4688 lacks.

Pull this event

Retrieval queries for a live host, a collected .evtx file and common SIEMs. Filter further on the key fields above.

Get-WinEvent -LogName 'Security' -FilterXPath "*[System[(EventID=4688)]]" -MaxEvents 50 |
  Select-Object TimeCreated, Id, MachineName, Message

-FilterXPath supports exact matches only. For substring matching, filter in Where-Object.

Where it shows up

Investigations, attack signals and lateral movement techniques that rely on this event.

ATT&CK mapping

Techniques this event can help detect. Most of these depend on specific field values; the event alone does not mean the technique happened.

Common questions

What does Windows event ID 4688 mean?
Event 4688 logs every new process created on a Windows system, including the process name, command line arguments, parent process, and user account. This event is essential for detecting malware execution, living-off-the-land binary abuse, and suspicious command-line activity.
Is event 4688 logged by default?
No. It must be enabled before it is recorded. It is controlled by the "Process Creation" Advanced Audit Policy subcategory (Detailed Tracking).
Where is event 4688 recorded?
In the Security channel on the any host.

Event 4688 logs every new process created on a Windows system, including the process name, command line arguments, parent process, and user account. This event is essential for detecting malware execution, living-off-the-land binary abuse, and suspicious command-line activity.