Cyber Risks · Trail of Bits Blog

What child is this?

Summary: Trail of Bits explains Windows process reparenting, a technique where a process creator sets the PROC_THREAD_ATTRIBUTE_PARENT_PROCESS attribute to assign a different parent than the calling process, which Windows uses legitimately for packaged apps but attackers can use to break process ancestry ties. The post shows ProcMon misattributing a Windows Terminal launch to explorer.exe when a kernel debugger revealed svchost.exe was the actual creator, and notes the Microsoft-Windows-Kernel-Process ETW channel (Event ID 1) exposes both creator and parent PIDs when they differ.

What's compelling: EDR and monitoring tools that trust the reported parent process can be shown the wrong origin for a process, and the ETW channel that would reveal the discrepancy is not enabled by default.

Read the original at Trail of Bits Blog ↗