Sigma rule: Windows Defender Context Menu Removed

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-a34f24c651a8, updated 2025-07-09T00:00:00.000Z.

Rule

Title
Windows Defender Context Menu Removed
Status
experimental
Level
high
Author
Matt Anderson (Huntress)
Date
2025-07-09
File
rules/windows/process_creation/proc_creation_win_defender_remove_context_menu.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

Detects the use of reg.exe or PowerShell to delete the Windows Defender context menu handler registry keys.
This action removes the "Scan with Microsoft Defender" option from the right-click menu for files, directories, and drives.
Attackers may use this technique to hinder manual, on-demand scans and reduce the visibility of the security product.

Log source

product
windows
category
process_creation

Detection

selection_img:
    - Image|endswith:
          - '\powershell_ise.exe'
          - '\powershell.exe'
          - '\pwsh.exe'
          - '\reg.exe'
    - OriginalFileName:
          - 'powershell_ise.EXE'
          - 'PowerShell.EXE'
          - 'pwsh.dll'
          - 'reg.exe'
selection_action:
    CommandLine|contains:
        - 'del'
        - 'Remove-Item'
        - 'ri '
selection_reg_path:
    CommandLine|contains: '\shellex\ContextMenuHandlers\EPP'
condition: all of selection_*

False positives (as the rule lists them)

  • May be part of a system customization or "debloating" script, but this is highly unusual in a managed corporate environment.

Tags

  • attack.defense-impairment
  • attack.t1685

MITRE ATT&CK ids this rule names

Related rules

References

Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/process_creation/proc_creation_win_defender_remove_context_menu.yml

Sources and licences

  • SigmaHQ

    "Windows Defender Context Menu Removed" by Matt Anderson (Huntress) (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/process_creation/proc_creation_win_defender_remove_context_menu.yml.
    Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License

    Detection Rule License (DRL) 1.1

Cite this page

Dragons Eye Ransomware Tracker, "Sigma rule: Windows Defender Context Menu Removed",
entity page, dataset version ref-a34f24c651a8, updated 2025-07-09T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/b9e8c7d6-a5f4-4e3d-8b1a-9f0c8d7e6a5b (accessed 2026-11-03).
Underlying source: SigmaHQ rule b9e8c7d6-a5f4-4e3d-8b1a-9f0c8d7e6a5b, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.

Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.