Disable Windows Defender AV Security Monitoring

Last updated on:

About the rule

Rule Type

Standard

Rule Description

Detects attackers attempting to disable Windows Defender using Powershell

Severity

Trouble

Rule Requirement

Criteria

Action1: actionname = "Process started" AND ((PROCESSNAME endswith "\powershell.exe,\pwsh.exe" OR ORIGINALFILENAME = "PowerShell.EXE,pwsh.dll") AND COMMANDLINE contains "-DisableBehaviorMonitoring $true,-DisableRuntimeMonitoring $true") OR ((PROCESSNAME endswith "\sc.exe" OR ORIGINALFILENAME = "sc.exe") AND ((COMMANDLINE contains "stop" AND COMMANDLINE contains "WinDefend") OR (COMMANDLINE contains "delete" AND COMMANDLINE contains "WinDefend") OR (COMMANDLINE contains "config" AND COMMANDLINE contains "WinDefend" AND COMMANDLINE contains "start=disabled"))) select Action1.HOSTNAME,Action1.MESSAGE,Action1.COMMANDLINE,Action1.FILE_NAME,Action1.PROCESSNAME,Action1.USERNAME,Action1.PARENTPROCESSNAME

Detection

Execution Mode

realtime

Log Sources

Windows

Author

ok @securonix invrep-de, oscd.community, frack113