Detection rules › Sigma

Disable Internal Tools or Feature in Registry

Status
test
Severity
medium
Log source
product windows, category registry_set
Author
frack113, Nasreddine Bencherchali (Nextron Systems), CrimpSec
Source
github.com/SigmaHQ/sigma

Detects registry modifications that change features of internal Windows tools (malware like Agent Tesla uses this technique)

MITRE ATT&CK coverage

TacticTechniques
PersistenceT1112 Modify Registry
Defense ImpairmentT1112 Modify Registry

Event coverage

ProviderEventTitle
SysmonEvent ID 13RegistryEvent (Value Set)

Rule body yaml

title: Disable Internal Tools or Feature in Registry
id: e2482f8d-3443-4237-b906-cc145d87a076
status: test
description: Detects registry modifications that change features of internal Windows tools (malware like Agent Tesla uses this technique)
references:
    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1112/T1112.md
    - https://www.mandiant.com/resources/unc2165-shifts-to-evade-sanctions
    - https://blogs.vmware.com/security/2022/11/batloader-the-evasive-downloader-malware.html
    - https://www.malwarebytes.com/blog/detections/pum-optional-nodispbackgroundpage
    - https://www.malwarebytes.com/blog/detections/pum-optional-nodispcpl
    - https://bazaar.abuse.ch/sample/7bde840c7e8c36dce4c3bac937bcf39f36a6f118001b406bfbbc25451ce44fb4/
author: frack113, Nasreddine Bencherchali (Nextron Systems), CrimpSec
date: 2022-03-18
modified: 2025-06-04
tags:
    - attack.persistence
    - attack.defense-impairment
    - attack.t1112
logsource:
    category: registry_set
    product: windows
detection:
    selection_set_1:
        TargetObject|endswith:
            - 'SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisableCMD'
            - 'SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoControlPanel'
            - 'SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoRun'
            - 'SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer\StartMenuLogOff'
            - 'SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\DisableChangePassword'
            - 'SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\DisableLockWorkstation'
            - 'SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\DisableRegistryTools'
            - 'SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\DisableTaskmgr'
            - 'SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\NoDispBackgroundPage'
            - 'SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\NoDispCPL'
            - 'SOFTWARE\Policies\Microsoft\Windows\Explorer\DisableNotificationCenter'
            - 'SOFTWARE\Policies\Microsoft\Windows\System\DisableCMD'
        Details: 'DWORD (0x00000001)'
    selection_set_0:
        TargetObject|endswith:
            - 'SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\ConsentPromptBehaviorAdmin'
            - 'Software\Microsoft\Windows\CurrentVersion\Policies\System\InactivityTimeoutSecs'
            - 'SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\shutdownwithoutlogon'
            - 'SOFTWARE\Microsoft\Windows\CurrentVersion\PushNotifications\ToastEnabled'
            - 'SYSTEM\CurrentControlSet\Control\Storage\Write Protection'
            - 'SYSTEM\CurrentControlSet\Control\StorageDevicePolicies\WriteProtect'
        Details: 'DWORD (0x00000000)'
    condition: 1 of selection_set_*
falsepositives:
    - Legitimate admin script
level: medium

Stages and Predicates

Stage 0: condition

1 of selection_set_*

Stage 1: selection_set_1

selection_set_1:
    TargetObject|endswith:
        - 'SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisableCMD'
        - 'SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoControlPanel'
        - 'SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoRun'
        - 'SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer\StartMenuLogOff'
        - 'SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\DisableChangePassword'
        - 'SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\DisableLockWorkstation'
        - 'SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\DisableRegistryTools'
        - 'SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\DisableTaskmgr'
        - 'SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\NoDispBackgroundPage'
        - 'SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\NoDispCPL'
        - 'SOFTWARE\Policies\Microsoft\Windows\Explorer\DisableNotificationCenter'
        - 'SOFTWARE\Policies\Microsoft\Windows\System\DisableCMD'
    Details: 'DWORD (0x00000001)'

Stage 2: selection_set_0

selection_set_0:
    TargetObject|endswith:
        - 'SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\ConsentPromptBehaviorAdmin'
        - 'Software\Microsoft\Windows\CurrentVersion\Policies\System\InactivityTimeoutSecs'
        - 'SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\shutdownwithoutlogon'
        - 'SOFTWARE\Microsoft\Windows\CurrentVersion\PushNotifications\ToastEnabled'
        - 'SYSTEM\CurrentControlSet\Control\Storage\Write Protection'
        - 'SYSTEM\CurrentControlSet\Control\StorageDevicePolicies\WriteProtect'
    Details: 'DWORD (0x00000000)'

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
Detailseq
  • DWORD (0x00000000) corpus 38 (sigma 36, chronicle 2)
  • DWORD (0x00000001) corpus 40 (sigma 36, chronicle 4)
TargetObjectends_with
  • SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisableCMD
  • SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoControlPanel corpus 2 (sigma 2)
  • SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoRun corpus 2 (sigma 2)
  • SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer\StartMenuLogOff
  • SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\ConsentPromptBehaviorAdmin
  • SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\DisableChangePassword
  • SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\DisableLockWorkstation
  • SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\DisableRegistryTools
  • SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\DisableTaskmgr
  • SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\NoDispBackgroundPage
  • SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\NoDispCPL
  • SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\shutdownwithoutlogon
  • SOFTWARE\Microsoft\Windows\CurrentVersion\PushNotifications\ToastEnabled
  • SOFTWARE\Policies\Microsoft\Windows\Explorer\DisableNotificationCenter
  • SOFTWARE\Policies\Microsoft\Windows\System\DisableCMD
  • SYSTEM\CurrentControlSet\Control\StorageDevicePolicies\WriteProtect
  • SYSTEM\CurrentControlSet\Control\Storage\Write Protection
  • Software\Microsoft\Windows\CurrentVersion\Policies\System\InactivityTimeoutSecs