The Browser Spawned PowerShell
The browser wasn't supposed to launch PowerShell.
Users browse websites. Browsers render pages. PowerShell automates administrative tasks.
The two rarely belong together.
Yet buried inside Microsoft Defender XDR telemetry was a process chain that connected them.
Briefing summary
A browser process launched PowerShell on a workstation that otherwise looked healthy. Agent Foskett followed the parent-child process relationship, reviewed the command line and used Defender XDR telemetry to determine why trusted applications were suddenly connected.
What happened
The query that found the relationship
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
DeviceProcessEvents | where FileName =~ "powershell.exe" | where InitiatingProcessFileName in~ ("chrome.exe", "msedge.exe", "firefox.exe") | project Timestamp, DeviceName, InitiatingProcessFileName, ProcessCommandLine | order by Timestamp desc
Why a browser launching PowerShell matters
Agent Foskett moment
What most environments miss
How defenders can investigate it
Related investigations
Final thought
The browser looked trusted. PowerShell looked trusted. But when the browser spawned PowerShell, the relationship became the evidence. Explore related investigations including The Child Process Shouldn't Have Existed, The Process Tree Told The Real Story, and The EncodedCommand Was Buried In Noise.
Develop IT. Protect IT. GEMXIT PTY LTD | GEMXIT UK LTD