Detection rules › Sigma

Microsoft Defender security components disabled (command)

Status
experimental
Severity
medium
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

MITRE ATT&CK coverage

Event coverage

Rule body yaml

title: Microsoft Defender security components disabled (command)
description: Detects scenarios where an attacker attempts to disable Defender security features
references:
- https://github.com/mdecrevoisier/EVTX-to-MITRE-Attack/tree/master/TA0005-Defense%20Evasion/T1562.001-Impair%20Defenses-Disable%20or%20Modify%20tool
- https://github.com/swagkarna/Defeat-Defender-V1.2
- https://docs.microsoft.com/en-us/powershell/module/defender/set-mppreference?view=windowsserver2019-ps
- https://docs.microsoft.com/en-us/windows/client-management/mdm/defender-csp
- https://powershell.one/wmi/root/microsoft/windows/defender/msft_mppreference
- https://gist.github.com/pe3zx/7c5e0080c3b0869ccba1f1dc2ea0c5e0
- 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: # Set-MpPreference -DisableArchiveScanning $true
  selection:
    EventID: 4688
    EventData|contains|all:
      - Set-MpPreference
      - Add-MpPreference
    CommandLine|contains:
      - '1'
      - '$true'
    CommandLine|contains:
      # Scanning features
      - DisableArchiveScanning
      - DisableRemovableDriveScanning
      - DisableScanningMappedNetworkDrivesForFullScan
      - DisableScanningNetworkFiles
      - DisableRestorePoint
      - DisableScriptScanning
      - DisableEmailScanning
      # Parsing features
      - DisableDnsParsing
      - DisableDnsOverTcpParsing
      - DisableSshParsing
      - DisableTlsParsing
      - DisableHttpParsing
      - DisableRdpParsing
      # Misc features
      - DisableAutoExclusions
      - DisableBlockAtFirstSeen
      - DisableCpuThrottleOnIdleScans
      - DisableDatagramProcessing
      - SignatureDisableUpdateOnStartupWithoutEngine
  condition: selection
falsepositives:
- None
level: medium

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
  EventID: 4688
  EventData|contains|all:
    - Set-MpPreference
    - Add-MpPreference
  CommandLine|contains:
    - '1'
    - '$true'
  CommandLine|contains:
    - DisableArchiveScanning
    - DisableRemovableDriveScanning
    - DisableScanningMappedNetworkDrivesForFullScan
    - DisableScanningNetworkFiles
    - DisableRestorePoint
    - DisableScriptScanning
    - DisableEmailScanning
    - DisableDnsParsing
    - DisableDnsOverTcpParsing
    - DisableSshParsing
    - DisableTlsParsing
    - DisableHttpParsing
    - DisableRdpParsing
    - DisableAutoExclusions
    - DisableBlockAtFirstSeen
    - DisableCpuThrottleOnIdleScans
    - DisableDatagramProcessing
    - SignatureDisableUpdateOnStartupWithoutEngine

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
CommandLinematch
  • DisableArchiveScanning corpus 2 (sigma 2)
  • DisableAutoExclusions
  • DisableBlockAtFirstSeen corpus 2 (sigma 2)
  • DisableCpuThrottleOnIdleScans
  • DisableDatagramProcessing
  • DisableDnsOverTcpParsing
  • DisableDnsParsing
  • DisableEmailScanning
  • DisableHttpParsing
  • DisableRdpParsing
  • DisableRemovableDriveScanning
  • DisableRestorePoint
  • DisableScanningMappedNetworkDrivesForFullScan
  • DisableScanningNetworkFiles
  • DisableScriptScanning corpus 2 (sigma 2)
  • DisableSshParsing
  • DisableTlsParsing
  • SignatureDisableUpdateOnStartupWithoutEngine corpus 2 (sigma 2)
EventDatamatch
  • Add-MpPreference corpus 4 (sigma 4)
  • Set-MpPreference corpus 5 (sigma 5)