Suspicious Uninstall of Windows Defender Feature via PowerShell

Last updated on:

About the rule

Rule Type

Standard

Rule Description

Detects the use of PowerShell with Uninstall-WindowsFeature or Remove-WindowsFeature cmdlets to disable or remove the Windows Defender GUI feature, a common technique used by adversaries to evade defenses.

Severity

Attention

Rule Requirement

Criteria

Action1: actionname = "Process started" AND (( PROCESSNAME endswith "\powershell_ise.exe,\powershell.exe,\pwsh.exe" OR ORIGINALFILENAME = "PowerShell_ISE.EXE,PowerShell.EXE,pwsh.dll" ) AND COMMANDLINE contains "Uninstall-WindowsFeature,Remove-WindowsFeature,Disable-WindowsOptionalFeature,Remove-WindowsCapability" AND COMMANDLINE contains "Windows-Defender,Windows Defender,Microsoft-Windows-Defender" ) select Action1.HOSTNAME,Action1.MESSAGE,Action1.COMMANDLINE,Action1.FILE_NAME,Action1.PROCESSNAME,Action1.USERNAME,Action1.PARENTPROCESSNAME,Action1.DOMAIN,Action1.ORIGINALFILENAME,Action1.PARENTPROCESSID,Action1.PROCESSID,Action1.PRODUCT_NAME,Action1.SECURITYID

Detection

Execution Mode

realtime

Log Sources

Windows

Author

@yxinmiracle