PowerShell adding exclusion path for Microsoft Defender of ProgramData
Description
Identify PowerShell creating an exclusion path of ProgramData directory for Microsoft Defender to not monitor.
Query · kql
DeviceProcessEvents
| where FileName =~ "powershell.exe" and ProcessCommandLine has_all("try", "Add-MpPreference", "-ExclusionPath", "ProgramData", "catch")