Shell Context Menu Command Tampering
Detects changes to shell context menu commands. Use this rule to hunt for potential anomalies and suspicious shell commands.
Detection logic
selection
TargetObject|contains|all:
- \Software\Classes\
- \shell\
- \command\Condition
selectionRaw YAML
title: Shell Context Menu Command Tampering
id: 868df2d1-0939-4562-83a7-27408c4a1ada
status: test
description: Detects changes to shell context menu commands. Use this rule to hunt for potential anomalies and suspicious shell commands.
references:
- https://mrd0x.com/sentinelone-persistence-via-menu-context/
author: Nasreddine Bencherchali (Nextron Systems)
date: 2024-03-06
tags:
- attack.persistence
- detection.threat-hunting
logsource:
category: registry_set
product: windows
detection:
selection:
TargetObject|contains|all:
- '\Software\Classes\'
- '\shell\'
- '\command\'
condition: selection
falsepositives:
- Likely from new software installation suggesting to add context menu items. Such as "PowerShell", "Everything", "Git", etc.
level: lowFalse positives
- Likely from new software installation suggesting to add context menu items. Such as "PowerShell", "Everything", "Git", etc.
References
Similar rules
Microsoft Office Trusted Location Updated
mediumwindows · Same logsource category (registry_set)
Registry Set With Crypto-Classes From The "Cryptography" PowerShell Namespace
mediumwindows · Same logsource category (registry_set)
Service Binary in User Controlled Folder
mediumwindows · Same logsource category (registry_set)
Activate Suppression of Windows Security Center Notifications
mediumwindows · Same logsource category (registry_set)