Detection rules › Sigma
Microsoft Defender service components status disabled (Registry via Sysmon)
Detects scenarios where an attacker attempts to disable Defender security features by modifying service configuration in registry.
MITRE ATT&CK coverage
| Tactic | Techniques |
|---|---|
| Stealth | T1562.001 Impair Defenses: Disable or Modify Tools |
Event coverage
| Provider | Event | Title |
|---|---|---|
| Sysmon | Event ID 13 | RegistryEvent (Value Set) |
Rule body yaml
title: Microsoft Defender service components status disabled (Registry via Sysmon)
description: Detects scenarios where an attacker attempts to disable Defender security features by modifying service configuration in registry.
references:
- https://github.com/mdecrevoisier/EVTX-to-MITRE-Attack/tree/master/TA0005-Defense%20Evasion/T1562.001-Impair%20Defenses-Disable%20or%20Modify%20tool
- https://www.securityartwork.es/2021/09/27/trustedinstaller-parando-windows-defender/
- https://github.com/lab52io/StopDefender
- https://github.com/APTortellini/DefenderSwitch
- https://twitter.com/malwarelab_eu/status/1531536165458825219
- https://cloudbrothers.info/en/current-limits-defender-av-tamper-protection/
tags:
- attack.defense_evasion
- attack.t1562.001
author: mdecrevoisier
status: experimental
logsource:
product: windows
category: process_creation
detection:
selection:
EventID: 13 # registry value set
EventType: SetValue
TargetObject|endswith:
- '\SYSTEM\CurrentControlSet\Services\wscsvc\Start'
- '\SYSTEM\CurrentControlSet\Services\SecurityHealthService\Start'
- '\SYSTEM\CurrentControlSet\Services\Sense\Start'
- '\SYSTEM\CurrentControlSet\Services\WdBoot\Start'
- '\SYSTEM\CurrentControlSet\Services\WdFilter\Start'
- '\SYSTEM\CurrentControlSet\Services\WdNisDrv\Start'
- '\SYSTEM\CurrentControlSet\Services\WdNisSvc\Start'
- '\SYSTEM\CurrentControlSet\Services\WinDefend\Start'
Details|contains:
- '0x00000003' # Manual
- '0x00000004' # Disabled
condition: selection
falsepositives:
- None
level: high
Stages and Predicates
Stage 0: condition
selectionStage 1: selection
selection:
EventID: 13
EventType: SetValue
TargetObject|endswith:
- '\SYSTEM\CurrentControlSet\Services\wscsvc\Start'
- '\SYSTEM\CurrentControlSet\Services\SecurityHealthService\Start'
- '\SYSTEM\CurrentControlSet\Services\Sense\Start'
- '\SYSTEM\CurrentControlSet\Services\WdBoot\Start'
- '\SYSTEM\CurrentControlSet\Services\WdFilter\Start'
- '\SYSTEM\CurrentControlSet\Services\WdNisDrv\Start'
- '\SYSTEM\CurrentControlSet\Services\WdNisSvc\Start'
- '\SYSTEM\CurrentControlSet\Services\WinDefend\Start'
Details|contains:
- '0x00000003'
- '0x00000004'
Indicators
Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.
| Field | Kind | Values |
|---|---|---|
Details | match |
|
EventType | eq |
|
TargetObject | ends_with |
|