Shell Context Menu Command Tampering


Description

Detects changes to shell context menu commands. Use this rule to hunt for potential anomalies and suspicious shell commands.

Query · sigma

selection:
  TargetObject|contains|all:
  - \Software\Classes\
  - \shell\
  - \command\
condition: selection

Known false positives

  • Likely from new software installation suggesting to add context menu items. Such as "PowerShell", "Everything", "Git", etc.
Raw source Shell Context Menu Command Tampering · Sigma
Esc
Published by SigmaHQ/sigma ↗, licensed under Detection Rule License 1.1 ↗. Reproduced here unmodified.
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: low

Detection rules belong to the projects that publish them and remain under their own licenses. This site indexes and links to them; it claims no rights in them.