Detection rules › Sigma

Microsoft Defender service components status disabled (Registry via Sysmon)

Status
experimental
Severity
high
Log source
product windows, category process_creation
Author
mdecrevoisier
Source
github.com/mdecrevoisier/SIGMA-detection-rules

Detects scenarios where an attacker attempts to disable Defender security features by modifying service configuration in registry.

MITRE ATT&CK coverage

Event coverage

ProviderEventTitle
SysmonEvent ID 13RegistryEvent (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

selection

Stage 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.

FieldKindValues
Detailsmatch
  • 0x00000003
  • 0x00000004
EventTypeeq
  • SetValue corpus 6 (sigma 6)
TargetObjectends_with
  • \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
  • \SYSTEM\CurrentControlSet\Services\wscsvc\Start