Pcornel
Windows · Processes

Parent / Child Processes

Cheat sheet · https://pcornel.dk/topic.php?topic=3010

Back to the Topic

Answer

A child process is created by another process. Process trees are useful for understanding provenance, launch chains and inherited context, but the creation relationship is not the same as a permanent ownership or lifecycle dependency.

Remember

  • Parent/child primarily describes process creation provenance.
  • A child normally runs independently after creation; the parent exiting does not inherently terminate the child.
  • A child can inherit selected handles, environment and other context depending on creation settings.
  • Security context can be explicitly changed by creation APIs; do not assume child identity solely from the parent name.
  • Process trees are strong context for investigation but not proof of maliciousness or causation.

First checks

  • Get-Process | Sort CPU -Desc | Select -First 10 Name,Id,CPU,WS — top processes
  • Get-CimInstance Win32_Process -Filter "ProcessId=<pid>" | Select Name,ParentProcessId,CommandLine — command line and parent
  • tasklist /v — processes with user and status
  • taskkill /PID <pid> /T — stop a process tree

Verify in this order

parent creates child → child records ParentProcessId → tree

Where it usually breaks

First mismatch in definition/configuration → security context → service/task/process creation → runtime state → output/side effect → event/performance evidence; preserve identity/native error/pre-state before mutation.

Processes → Parent / Child Processes reference map

ItemMeaningEvidence boundary
Parent/creatorProcess that creates anotherprovenance at creation
ChildNew process instancemay continue after creator exits
Command lineLaunch argumentsstrong intent/context evidence when trustworthy
EnvironmentInherited or supplied blockcan explain child-specific behavior
Inherited handleSelected shared object referencerequires explicit inheritance semantics

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3010

Confirmation

Confirm action

Continue?