Sigma rule: Shell Context Menu Command Tampering
A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-aae0c77b8722, updated 2024-03-06T00:00:00.000Z.
Rule
- Title
- Shell Context Menu Command Tampering
- Status
- test
- Level
- low
- Author
- Nasreddine Bencherchali (Nextron Systems)
- Date
- 2024-03-06
- File
- rules-threat-hunting/windows/registry/registry_set/registry_set_shell_context_menu_tampering.yml
- Commit
- ccbb0369507f796db0b0ae6854c8a2be471b9d84
Detects changes to shell context menu commands. Use this rule to hunt for potential anomalies and suspicious shell commands.
Log source
- product
- windows
- category
- registry_set
Detection
selection:
TargetObject|contains|all:
- '\Software\Classes\'
- '\shell\'
- '\command\'
condition: selectionFalse positives (as the rule lists them)
- Likely from new software installation suggesting to add context menu items. Such as "PowerShell", "Everything", "Git", etc.
Tags
- attack.persistence
- detection.threat-hunting
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-threat-hunting/windows/registry/registry_set/registry_set_shell_context_menu_tampering.yml
Sources and licences
SigmaHQ
"Shell Context Menu Command Tampering" by Nasreddine Bencherchali (Nextron Systems) (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules-threat-hunting/windows/registry/registry_set/registry_set_shell_context_menu_tampering.yml.
Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License
Cite this page
Dragons Eye Ransomware Tracker, "Sigma rule: Shell Context Menu Command Tampering",
entity page, dataset version ref-aae0c77b8722, updated 2024-03-06T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/868df2d1-0939-4562-83a7-27408c4a1ada (accessed 2026-11-03).
Underlying source: SigmaHQ rule 868df2d1-0939-4562-83a7-27408c4a1ada, 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.