Query Details
//This query detects attempts to disable Microsoft Defender's script scanning functionality //Monitors registry modifications to Real-Time Protection settings DeviceRegistryEvents | where Timestamp >= ago(7d) | where RegistryKey == "HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Microsoft Antimalware\\Real-Time Protection" | where RegistryValueName == "DisableScriptScanning" | where RegistryValueType == "Dword" | where RegistryValueData == 1 | where IsInitiatingProcessRemoteSession == true
This query is designed to identify any attempts to turn off the script scanning feature of Microsoft Defender within the last 7 days. It specifically looks for changes made to a particular registry key that controls real-time protection settings. The query filters for:

Emre Ay
Released: November 10, 2024
Tables
Keywords
Operators