Detection rules › Sigma

Suspicious Windows Defender Registry Key Tampering Via Reg.EXE

Status
test
Severity
high
Log source
product windows, category process_creation
Author
Florian Roth (Nextron Systems), Swachchhanda Shrawan Poudel, Nasreddine Bencherchali (Nextron Systems)
Source
github.com/SigmaHQ/sigma

Detects the usage of "reg.exe" to tamper with different Windows Defender registry keys in order to disable some important features related to protection and detection

MITRE ATT&CK coverage

TacticTechniques
Defense ImpairmentT1685 Disable or Modify Tools

Event coverage

ProviderEventTitle
SysmonEvent ID 1Process creation

Rule body yaml

title: Suspicious Windows Defender Registry Key Tampering Via Reg.EXE
id: 452bce90-6fb0-43cc-97a5-affc283139b3
status: test
description: |
    Detects the usage of "reg.exe" to tamper with different Windows Defender registry keys in order to disable some important features related to protection and detection
references:
    - https://thedfirreport.com/2022/03/21/apt35-automates-initial-access-using-proxyshell/
    - https://github.com/swagkarna/Defeat-Defender-V1.2.0/tree/ae4059c4276da6f6303b8f53cdff085ecae88a91
    - https://www.elevenforum.com/t/video-guide-how-to-completely-disable-microsoft-defender-antivirus.14608/page-2
    - https://tria.ge/241231-j9yatstqbm/behavioral1
author: Florian Roth (Nextron Systems), Swachchhanda Shrawan Poudel, Nasreddine Bencherchali (Nextron Systems)
date: 2022-03-22
modified: 2025-06-04
tags:
    - attack.defense-impairment
    - attack.t1685
logsource:
    category: process_creation
    product: windows
detection:
    selection_root_img:
        - Image|endswith: '\reg.exe'
        - OriginalFileName: 'reg.exe'
    selection_root_path:
        CommandLine|contains:
            - 'SOFTWARE\Microsoft\Windows Defender\'
            - 'SOFTWARE\Policies\Microsoft\Windows Defender Security Center'
            - 'SOFTWARE\Policies\Microsoft\Windows Defender\'
    selection_dword_0:
        CommandLine|contains|all:
            - ' add '
            - 'd 0'
        CommandLine|contains:
            - 'DisallowExploitProtectionOverride'
            - 'EnableControlledFolderAccess'
            - 'MpEnablePus'
            - 'PUAProtection'
            - 'SpynetReporting'
            - 'SubmitSamplesConsent'
            - 'TamperProtection'
    selection_dword_1:
        CommandLine|contains|all:
            - ' add '
            - 'd 1'
        CommandLine|contains:
            - 'DisableAccess'
            - 'DisableAntiSpyware'
            - 'DisableAntiSpywareRealtimeProtection'
            - 'DisableAntiVirus'
            - 'DisableAntiVirusSignatures'
            - 'DisableArchiveScanning'
            - 'DisableBehaviorMonitoring'
            - 'DisableBlockAtFirstSeen'
            - 'DisableCloudProtection'
            - 'DisableConfig'
            - 'DisableEnhancedNotifications'
            - 'DisableIntrusionPreventionSystem'
            - 'DisableIOAVProtection'
            - 'DisableNetworkProtection'
            - 'DisableOnAccessProtection'
            - 'DisablePrivacyMode'
            - 'DisableRealtimeMonitoring'
            - 'DisableRoutinelyTakingAction'
            - 'DisableScanOnRealtimeEnable'
            - 'DisableScriptScanning'
            - 'DisableSecurityCenter'
            - 'Notification_Suppress'
            - 'SignatureDisableUpdateOnStartupWithoutEngine'
    condition: all of selection_root_* and 1 of selection_dword_*
falsepositives:
    - Rare legitimate use by administrators to test software (should always be investigated)
level: high

Stages and Predicates

Stage 0: condition

all of selection_root_* and 1 of selection_dword_*

Stage 1: selection_root_img

selection_root_img:
    - Image|endswith: '\reg.exe'
    - OriginalFileName: 'reg.exe'

Stage 2: selection_root_path

selection_root_path:
    CommandLine|contains:
        - 'SOFTWARE\Microsoft\Windows Defender\'
        - 'SOFTWARE\Policies\Microsoft\Windows Defender Security Center'
        - 'SOFTWARE\Policies\Microsoft\Windows Defender\'

Stage 3: selection_dword_0

selection_dword_0:
    CommandLine|contains|all:
        - ' add '
        - 'd 0'
    CommandLine|contains:
        - 'DisallowExploitProtectionOverride'
        - 'EnableControlledFolderAccess'
        - 'MpEnablePus'
        - 'PUAProtection'
        - 'SpynetReporting'
        - 'SubmitSamplesConsent'
        - 'TamperProtection'

Stage 4: selection_dword_1

selection_dword_1:
    CommandLine|contains|all:
        - ' add '
        - 'd 1'
    CommandLine|contains:
        - 'DisableAccess'
        - 'DisableAntiSpyware'
        - 'DisableAntiSpywareRealtimeProtection'
        - 'DisableAntiVirus'
        - 'DisableAntiVirusSignatures'
        - 'DisableArchiveScanning'
        - 'DisableBehaviorMonitoring'
        - 'DisableBlockAtFirstSeen'
        - 'DisableCloudProtection'
        - 'DisableConfig'
        - 'DisableEnhancedNotifications'
        - 'DisableIntrusionPreventionSystem'
        - 'DisableIOAVProtection'
        - 'DisableNetworkProtection'
        - 'DisableOnAccessProtection'
        - 'DisablePrivacyMode'
        - 'DisableRealtimeMonitoring'
        - 'DisableRoutinelyTakingAction'
        - 'DisableScanOnRealtimeEnable'
        - 'DisableScriptScanning'
        - 'DisableSecurityCenter'
        - 'Notification_Suppress'
        - '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
  • add corpus 14 (sigma 12, splunk 1, chronicle 1)
  • DisableAccess
  • DisableAntiSpyware corpus 3 (sigma 3)
  • DisableAntiSpywareRealtimeProtection
  • DisableAntiVirus
  • DisableAntiVirusSignatures
  • DisableArchiveScanning corpus 2 (sigma 2)
  • DisableBehaviorMonitoring corpus 2 (sigma 2)
  • DisableBlockAtFirstSeen corpus 2 (sigma 2)
  • DisableCloudProtection
  • DisableConfig corpus 2 (sigma 2)
  • DisableEnhancedNotifications
  • DisableIOAVProtection corpus 2 (sigma 2)
  • DisableIntrusionPreventionSystem corpus 2 (sigma 2)
  • DisableNetworkProtection
  • DisableOnAccessProtection
  • DisablePrivacyMode
  • DisableRealtimeMonitoring corpus 3 (sigma 2, kusto 1)
  • DisableRoutinelyTakingAction
  • DisableScanOnRealtimeEnable
  • DisableScriptScanning corpus 2 (sigma 2)
  • DisableSecurityCenter
  • DisallowExploitProtectionOverride
  • EnableControlledFolderAccess
  • MpEnablePus
  • Notification_Suppress
  • PUAProtection corpus 2 (sigma 1, splunk 1)
  • SOFTWARE\Microsoft\Windows Defender\
  • SOFTWARE\Policies\Microsoft\Windows Defender Security Center
  • SOFTWARE\Policies\Microsoft\Windows Defender\
  • SignatureDisableUpdateOnStartupWithoutEngine corpus 2 (sigma 2)
  • SpynetReporting
  • SubmitSamplesConsent
  • TamperProtection
  • d 0
  • d 1
Imageends_with
  • \reg.exe corpus 58 (sigma 58)
OriginalFileNameeq
  • reg.exe corpus 42 (sigma 32, splunk 8, elastic 2)