Powershell Disable Security Monitoring

Last updated on:

About the rule

Rule Type

Standard

Rule Description

Detects modification in registry to disable the Windows Defender real time behavior monitoring

Severity

Critical

Rule Requirement

Criteria

Action1: actionname = "Process started" AND (COMMANDLINE contains "set-mppreference" AND (COMMANDLINE contains "disablerealtimemonitoring" OR COMMANDLINE contains "disableioavprotection" OR COMMANDLINE contains "disableintrusionpreventionsystem" OR COMMANDLINE contains "disablescriptscanning" OR COMMANDLINE contains "disableblockatfirstseen" OR COMMANDLINE contains "DisableBehaviorMonitoring" OR COMMANDLINE contains "drtm" OR COMMANDLINE contains "dioavp" OR COMMANDLINE contains "dscrptsc" OR COMMANDLINE contains "dbaf" OR COMMANDLINE contains "dbm") AND (PROCESSNAME endswith "pwsh.exe" OR PROCESSNAME endswith "sqlps.exe" OR PROCESSNAME endswith "sqltoolsps.exe" OR PROCESSNAME endswith "powershell.exe" OR PROCESSNAME endswith "powershell_ise.exe")) select Action1.HOSTNAME,Action1.MESSAGE,Action1.COMMANDLINE,Action1.FILE_NAME,Action1.PROCESSNAME,Action1.USERNAME,Action1.PARENTPROCESSNAME

Detection

Execution Mode

realtime

Log Sources

Windows