modification_of_windows_defender_service_settings_sysmon
Description
Detects modifications on Windows Defender Settings via Registry keys/values License: https://github.com/Neo23x0/sigma/blob/master/LICENSE.Detection.Rules.md.
Query · yara_l
events:
(($selection1.metadata.product_event_type = "13" and (re.regex($selection1.target.registry.registry_key, `.*\\SYSTEM\\ControlSet001\\services\\WinDefend`) or re.regex($selection1.target.registry.registry_key, `.*SOFTWARE\\Policies\\Microsoft\\Windows Defender`)) and $selection1.metadata.event_type = "SetValue") or ($selection1.target.process.file.full_path = "powershell.exe" and re.regex($selection1.target.process.command_line, `.* .*/c powershell Set-MpPreference -DisableRealtimeMonitoring $true .*`)))
condition:
$selection1