Detection rules › Sigma

Microsoft Defender Tamper Protection Trigger

Status
stable
Severity
high
Log source
product windows, service windefend
Author
Bhabesh Raj, Nasreddine Bencherchali
Source
github.com/SigmaHQ/sigma

Detects blocked attempts to change any of Defender's settings such as "Real Time Monitoring" and "Behavior Monitoring"

MITRE ATT&CK coverage

TacticTechniques
Defense ImpairmentT1685 Disable or Modify Tools

Event coverage

Rule body yaml

title: Microsoft Defender Tamper Protection Trigger
id: 49e5bc24-8b86-49f1-b743-535f332c2856
status: stable
description: Detects blocked attempts to change any of Defender's settings such as "Real Time Monitoring" and "Behavior Monitoring"
references:
    - https://bhabeshraj.com/post/tampering-with-microsoft-defenders-tamper-protection
    - https://learn.microsoft.com/en-us/defender-endpoint/troubleshoot-microsoft-defender-antivirus?view=o365-worldwide
author: Bhabesh Raj, Nasreddine Bencherchali
date: 2021-07-05
modified: 2022-12-06
tags:
    - attack.defense-impairment
    - attack.t1685
logsource:
    product: windows
    service: windefend
detection:
    selection:
        EventID: 5013 # Tamper protection blocked a change to Microsoft Defender Antivirus. If Tamper protection is enabled then, any attempt to change any of Defender's settings is blocked. Event ID 5013 is generated and states which setting change was blocked.
        Value|endswith:
            - '\Windows Defender\DisableAntiSpyware'
            - '\Windows Defender\DisableAntiVirus'
            - '\Windows Defender\Scan\DisableArchiveScanning'
            - '\Windows Defender\Scan\DisableScanningNetworkFiles'
            - '\Real-Time Protection\DisableRealtimeMonitoring'
            - '\Real-Time Protection\DisableBehaviorMonitoring'
            - '\Real-Time Protection\DisableIOAVProtection'
            - '\Real-Time Protection\DisableScriptScanning'
    condition: selection
falsepositives:
    - Administrator might try to disable defender features during testing (must be investigated)
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    EventID: 5013
    Value|endswith:
        - '\Windows Defender\DisableAntiSpyware'
        - '\Windows Defender\DisableAntiVirus'
        - '\Windows Defender\Scan\DisableArchiveScanning'
        - '\Windows Defender\Scan\DisableScanningNetworkFiles'
        - '\Real-Time Protection\DisableRealtimeMonitoring'
        - '\Real-Time Protection\DisableBehaviorMonitoring'
        - '\Real-Time Protection\DisableIOAVProtection'
        - '\Real-Time Protection\DisableScriptScanning'

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
Valueends_with
  • \Real-Time Protection\DisableBehaviorMonitoring
  • \Real-Time Protection\DisableIOAVProtection
  • \Real-Time Protection\DisableRealtimeMonitoring
  • \Real-Time Protection\DisableScriptScanning
  • \Windows Defender\DisableAntiSpyware
  • \Windows Defender\DisableAntiVirus
  • \Windows Defender\Scan\DisableArchiveScanning
  • \Windows Defender\Scan\DisableScanningNetworkFiles