Challenge 19: Parent PID Spoofing
Objective
Create a process with a spoofed parent PID to demonstrate that the EDR has no parent-child process chain analysis.
Scanner Behavior
The EDR records parentPid from PROCESSENTRY32W.th32ParentProcessID but never uses it for detection. There are no rules that check:
- Whether the parent process is legitimate
- Whether the parent-child relationship makes sense
- Whether the parent PID was spoofed
Rules
- Create a new process with a spoofed parent PID
- The parent should appear as a system process (e.g.,
explorer.exe,svchost.exe) - Show that the EDR does not flag the suspicious parent relationship
Hints
Hint 1
Windows allows setting a custom parent process viaPROC_THREAD_ATTRIBUTE_PARENT_PROCESS in CreateProcessW with EXTENDED_STARTUPINFO_PRESENT.
Hint 2
UseUpdateProcThreadAttribute with PROC_THREAD_ATTRIBUTE_PARENT_PROCESS to specify a handle to the desired parent process.
MostShittyEDR