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.
| Field | What it tells you |
|---|---|
| SubjectUserName | Account that created the process |
| SubjectDomainName | Domain of the account |
| SubjectLogonId | Logon ID of the creating account; matches TargetLogonId in the 4624 that started the session |
| NewProcessName | Full path of the new process executable |
| NewProcessId | Process ID (PID) of the new process |
| TokenElevationType | Token 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 |
| ProcessId | PID of the creator (parent) process. The XML field is ProcessId; 'Creator Process ID' is only the rendered message label |
| ParentProcessName | Full path of the creator (parent) process (Windows 10/Server 2016+). The XML field is ParentProcessName; 'Creator Process Name' is only the rendered message label |
| CommandLine | Full command line with arguments (requires audit policy configuration) |
| TargetUserName | Account the new process runs as when it differs from the creator (Windows 10/Server 2016+); '-' when not applicable |
| TargetDomainName | Domain of the account the new process runs as (Windows 10/Server 2016+); '-' when not applicable |
| TargetLogonId | Logon ID of the account the new process runs as (Windows 10/Server 2016+); 0x0 when not applicable, otherwise pivot to the matching 4624 TargetLogonId |
| MandatoryLabel | Integrity 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 |
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.
- Attack signalNTDS.dit TheftCreation of the tools used to snapshot or export the database on a domain controller.
- Attack signalAudit policy tamperingauditpol.exe executed with a disabling argument.
- Attack signalSysmon tamperingfltmc.exe unloading the Sysmon minifilter driver.
- Attack signalPowerShell downgradepowershell.exe launched with an explicit version 2 argument.
- Lateral movementWMI remote executionDestination: Same execution in the Security log, ParentProcessName WmiPrvSE.exe, with command line auditing on.
- Lateral movementWinRM and PowerShell RemotingDestination: The same execution in the Security log, ParentProcessName wsmprovhost.exe, with command-line auditing.
- Lateral movementDCOM executionDestination: The same execution in the Security log, ParentProcessName mmc.exe or explorer.exe.
- InvestigationWhat did PowerShell run on this host?Tie the activity to a process and parent
- InvestigationIs this a brute-force or password-spray attack, and did any attempt succeed?Scope the successful session
- InvestigationWhen did the attacker first get in? Building the initial access timelineFind the first execution
- InvestigationWere credentials stolen from LSASS or the domain controller?Find the dumping tooling by process
- InvestigationDid data leave, how much, and to where?Find transfer-tool artifacts (rclone, WinSCP, FileZilla)
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.
Also relevant, depending on field values
- T1059.001 PowerShell
- T1059.003 Windows Command Shell
- T1059.005 Visual Basic
- T1059.007 JavaScript
- T1053.002 At
- T1053.005 Scheduled Task
- T1204.001 Malicious Link
- T1204.002 Malicious File
- T1021 Remote Services
- T1569 System Services
- T1569.002 Service Execution
- T1218 System Binary Proxy Execution
- T1106 Native API
- T1055 Process Injection
- T1203 Exploitation for Client Execution
- T1105 Ingress Tool Transfer
- T1072 Software Deployment Tools
- T1197 BITS Jobs
Related events
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.
Decode a real event
Paste the XML and every value gets explained. Nothing leaves your browser.
Open decoderEvent 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.