New process created. Key fields: NewProcessName, ParentProcessName, CreatorSubjectUserName, CommandLine (requires 'Include command line in process creation events' policy — MUST enable).
Invaluable with command-line logging enabled. Detects: Office apps spawning cmd/PowerShell (phishing), LOLBins (certutil, mshta, regsvr32, wmic, msiexec), encoded PowerShell (-enc, -EncodedCommand), lateral movement tools (PsExec pattern), credential dumping (procdump, comsvcs.dll). Without command-line logging, value drops significantly.
MUST ENABLE: Computer Config > Policies > Admin Templates > System > Audit Process Creation > Include command line. Alert: Office apps spawning cmd/powershell/wscript/mshta. Alert: -enc or -EncodedCommand in CommandLine. Alert: certutil -urlcache or -decode. Alert: processes running from %TEMP%, %APPDATA%, or user profile paths.
NewProcessNameCommandLineParentProcessNameSubjectUserNameTokenElevationType | Tactic | Technique |
|---|---|
| Execution | Command and Scripting Interpreter (T1059) |
| Defense Evasion | System Binary Proxy Execution (T1218) |
Starting points — adapt the log source, projected fields and thresholds for your environment.
title: Office Application Spawning Suspicious Child Process
status: stable
description: Office app spawning command interpreter — phishing/macro indicator
author: theadminstack.com
date: 2026/05/16
logsource:
product: windows
service: security
definition: Requires command-line audit policy enabled
detection:
selection_parent:
EventID: 4688
ParentProcessName|endswith:
- '\\winword.exe'
- '\\excel.exe'
- '\\powerpnt.exe'
- '\\outlook.exe'
selection_child:
NewProcessName|endswith:
- '\\cmd.exe'
- '\\powershell.exe'
- '\\wscript.exe'
- '\\cscript.exe'
- '\\mshta.exe'
- '\\wmic.exe'
condition: selection_parent and selection_child
falsepositives:
- Legitimate macros and add-ins
level: high
tags:
- attack.execution
- attack.t1059
- attack.initial_access
SecurityEvent
| where EventID == 4688 // A new process has been created
| project TimeGenerated, Computer, NewProcessName, CommandLine, ParentProcessName, SubjectUserName, TokenElevationType
| sort by TimeGenerated desc
index=* sourcetype="WinEventLog:Security" EventCode=4688
| stats count earliest(_time) as first_seen latest(_time) as last_seen by ComputerName
| sort - count `# A new process has been created — add EventData fields: NewProcessName, CommandLine, ParentProcessName, SubjectUserName`
A new process has been created. New process created. Key fields: NewProcessName, ParentProcessName, CreatorSubjectUserName, CommandLine (requires 'Include command line in process creation events' policy — MUST enable).
Event 4688 is written to the Security channel by Microsoft-Windows-Security-Auditing. Advanced Audit Policy — enable the 'Detailed Tracking' subcategory (Success and/or Failure).
Event 4688 is associated with: Command and Scripting Interpreter (T1059), System Binary Proxy Execution (T1218).
MUST ENABLE: Computer Config > Policies > Admin Templates > System > Audit Process Creation > Include command line. Alert: Office apps spawning cmd/powershell/wscript/mshta. Alert: -enc or -EncodedCommand in CommandLine. Alert: certutil -urlcache or -decode. Alert: processes running from %TEMP%, %APPDATA%, or user profile paths.