Operator On The Wire
Join
← Back to Knowledge Base
BLUE TEAM / THREAT HUNT / WINDOWS / PARENT-CHILD

Suspicious Relationships

This note documents detection patterns related to suspicious parent-child process relationships within Windows environments.


Direct Indicators

LogEvent IDMeaningForensic ValueNotes
Security4688Process creationCriticalPrimary Windows audit source. Contains parent PID, child PID, creator SID, command line, and token context.
Sysmon1Process creationCriticalBest host telemetry. Includes parent image, child image, hashes, integrity level, GUID linkage.
EDR TelemetryN/AProcess tree lineageCriticalHighest-value source for full ancestry and lateral correlation across process generations.
Sysmon5Process terminatedMediumUseful when attacker launches short-lived shells or one-shot payloads.
Sysmon7Image loadedMediumSupports DLL sideloading, injection, and LOLBIN context when suspicious child appears.
Security4624Successful logonHighCorrelate interactive or remote logon immediately preceding suspicious chain.
Security4672Privileged logonHighElevated token often precedes service abuse or administrative shell spawn.
PowerShell4104Script block loggingCriticalIf PowerShell appears as child, often reveals exact payload.
WMI Activity5857 / 5858WMI provider activityHighCritical when wmiprvse.exe is parent.
Task Scheduler Operational106 / 140 / 200Task executionHighImportant when taskhostw.exe or schtasks.exe appears in chain.

Indirect Indicators

IndicatorWhat To Look ForForensic ValueNotes
Office spawning shellwinword.exe -> powershell.exeCriticalStrong macro or malicious document signal.
Browser spawning shellchrome.exe -> cmd.exeCriticalExploit chain or downloaded payload execution.
Service spawning shellservices.exe -> cmd.exeCriticalOften persistence or service abuse.
svchost spawning shellsvchost.exe -> powershell.exeCriticalRare and highly suspicious outside narrow service contexts.
WMI executionwmiprvse.exe -> cmd.exeCriticalCommon remote execution primitive.
Scheduled task payloadtaskhostw.exe -> powershell.exeHighPersistence or delayed execution.
Script engine chainwscript.exe -> powershell.exeHighFileless or staged execution.
LOLBIN proxy chainmshta.exe -> powershell.exeCriticalLiving-off-the-land execution chain.
High-risk system parentlsass.exe, winlogon.exe, smss.exe spawning childrenCriticalRare under legitimate operation.
Parent-child mismatch by integrityMedium integrity parent launching SYSTEM child unexpectedlyHighToken theft or abuse possible.

Common Tools

ToolUsage
PowerShellLaunches payloads, downloads, encodes commands, spawns child LOLBINs
cmd.exeCommon shell bridge between stages
WMICRemote execution and process spawn
schtasks.exeTask-triggered child execution
sc.exeService-based process spawn
mshta.exeProxy execution
rundll32.exeDLL execution
regsvr32.exeSquiblydoo / scriptlet execution
Office MacrosParent for malicious child shells
Cobalt StrikeCommon suspicious process trees
EmpireHeavy use of PowerShell child chains

Relevant Artifacts

  • Security Event ID 4688
  • Sysmon Event ID 1
  • Sysmon Event ID 5
  • Sysmon Event ID 7
  • PowerShell 4104
  • Security 4624 / 4672
  • Prefetch for parent + child binaries
  • Amcache execution evidence
  • ShimCache historical execution
  • EDR lineage graphs
  • WMI Activity logs if wmiprvse.exe
  • Scheduled Task logs if taskhostw.exe
  • Service Control Manager logs if services.exe
  • MFT / USN for payload dropped before spawn

MITRE ATT&CK References

  • T1059 Command and Scripting Interpreter
  • T1204 User Execution
  • T1047 Windows Management Instrumentation
  • T1053 Scheduled Task
  • T1547 Boot or Logon Autostart Execution
  • T1218 Signed Binary Proxy Execution
  • T1543 Create or Modify System Process

Decision Tree

  1. What process spawned the suspicious child?

    • Identify parent image
    • Check parent integrity
    • Check parent signer
  2. Is parent expected to spawn children?

    • Normal baseline?
    • Rare but legitimate?
    • Highly abnormal?
  3. Is child a shell or LOLBIN?

    • cmd.exe
    • powershell.exe
    • rundll32.exe
    • regsvr32.exe
    • mshta.exe
  4. Inspect command line

    • Encoded command
    • Network retrieval
    • Hidden window
    • Service creation
    • Credential access
  5. Pivot to execution source

    • Office?
    • Browser?
    • WMI?
    • Service?
    • Task?
  6. Expand scope

    • Additional children
    • Network connections
    • Persistence artifacts
    • User context

Example Detection Templates

KQL

SecurityEvent
| where EventID == 4688
| where ParentProcessName has_any ("winword.exe","excel.exe","outlook.exe","wmiprvse.exe","services.exe","svchost.exe","mshta.exe","regsvr32.exe")
| where NewProcessName has_any ("powershell.exe","cmd.exe","rundll32.exe","regsvr32.exe","bitsadmin.exe","certutil.exe")
| project TimeGenerated, Computer, Account, ParentProcessName, NewProcessName, CommandLine
Sysmon
| where EventID == 1
| where ParentImage has_any ("\\winword.exe","\\excel.exe","\\wmiprvse.exe","\\services.exe","\\svchost.exe")
| where Image has_any ("\\powershell.exe","\\cmd.exe","\\mshta.exe","\\rundll32.exe")
| project TimeGenerated, Computer, ParentImage, Image, CommandLine

EQL

process where
  process.parent.name in ("winword.exe","excel.exe","wmiprvse.exe","services.exe","svchost.exe")
  and process.name in ("powershell.exe","cmd.exe","mshta.exe","rundll32.exe")
sequence by host.name with maxspan=3m
  [ process where process.parent.name == "winword.exe" ]
  [ process where process.name == "powershell.exe" ]

Sigma

title: Suspicious Parent Child Process Relationship
id: 7d8c2f11-parent-child-anomaly
status: experimental
description: Detects suspicious parent-child process combinations frequently used during malware execution and persistence
references:
  - https://attack.mitre.org/
author: Vergil
date: 2026-03-07
logsource:
  product: windows
  service: sysmon
detection:
  parent_selection:
    ParentImage|endswith:
      - '\winword.exe'
      - '\excel.exe'
      - '\wmiprvse.exe'
      - '\services.exe'
      - '\svchost.exe'
  child_selection:
    Image|endswith:
      - '\powershell.exe'
      - '\cmd.exe'
      - '\mshta.exe'
      - '\rundll32.exe'
  condition: parent_selection and child_selection
fields:
  - ParentImage
  - Image
  - CommandLine
falsepositives:
  - Administrative scripting
  - Enterprise automation
level: high
tags:
  - attack.execution
  - attack.persistence

Mitigation & Hardening

Control AreaMitigationEffectivenessNotes
Sysmon coverageEnable Event 1 everywhereCriticalCore lineage visibility
PowerShell loggingEnable 4104CriticalEssential for child PowerShell analysis
Application ControlAppLocker / WDACCriticalRestricts LOLBIN abuse
Office macro controlsDisable unsigned macrosHighMajor reduction of malicious parent chains
Service monitoringAlert when services spawn shellsCriticalDetect persistence quickly
EDR lineage retentionPreserve long treesCriticalEnables ancestry reconstruction

Suspicious Parent → Child Patterns

Parent ProcessChild ProcessTypical Attack ScenarioMITRE TechniqueForensic Value
winword.exepowershell.exeMacro launching payloadT1059.001Critical
winword.execmd.exeMacro shellT1204Critical
winword.exemshta.exeHTA executionT1218.005Critical
excel.exepowershell.exeSpreadsheet macro payloadT1059Critical
outlook.execmd.exeAttachment executionT1204Critical
chrome.exepowershell.exeBrowser exploit / payloadT1203Critical
svchost.execmd.exeService abuseT1059Critical
services.exepowershell.exeService persistenceT1543Critical
spoolsv.execmd.exePrint spooler exploitationT1059Critical
lsass.execmd.exeCredential tooling anomalyT1003Critical
winlogon.exepowershell.exeLogon persistenceT1547Critical
taskhostw.exepowershell.exeScheduled task executionT1053High
wmiprvse.execmd.exeWMI remote executionT1047Critical
dllhost.exepowershell.exeCOM abuseT1546High
mshta.exepowershell.exeLOLBIN stagingT1218.005Critical
regsvr32.execmd.exeProxy executionT1218.010Critical
powershell.execertutil.exePayload retrieval / decodeT1105High
cmd.exenltest.exeDomain discoveryT1018High
wmic.exepowershell.exeRemote PowerShellT1047Critical
schtasks.execmd.exeTask persistenceT1053Critical
msiexec.exepowershell.exeInstaller abuseT1218.007High

Known Legitimate Baseline Relationships

Parent ProcessChild ProcessExecution PhasePurposeForensic Notes
System (PID 4)smss.exeBootSession managerFirst user-mode process
smss.execsrss.exeBootRuntime subsystemCore OS baseline
smss.exewininit.exeBootCore initializationNormal
smss.exewinlogon.exeLogonSession managerNormal
wininit.exeservices.exeBootSCMNormal
wininit.exelsass.exeBootAuthenticationNormal
services.exesvchost.exeRuntimeService hostingNormal
services.exespoolsv.exeRuntimePrint serviceNormal
services.exewmiprvse.exeRuntimeWMI hostNormal
winlogon.exeuserinit.exeLogonUser environmentNormal
userinit.exeexplorer.exeSessionDesktop shellNormal
explorer.exepowershell.exeUser sessionInteractive admin useContext dependent

Core Boot Chain

System (PID 4)
   └ smss.exe
        ├ csrss.exe
        ├ wininit.exe
        │     ├ services.exe
        │     │     └ svchost.exe
        │     ├ lsass.exe
        │     └ lsm.exe
        └ winlogon.exe
              └ userinit.exe
                    └ explorer.exe

High-Risk System Processes

ProcessWhy ImportantSuspicious If Spawns
lsass.exeCredential authoritycmd, powershell
winlogon.exeAuthenticationshells
services.exeService managerinteractive shells
svchost.exeService hostshell tools
spoolsv.exePrint serviceshells
csrss.exeCore subsystemalmost anything
smss.exeSession manageralmost anything