Skip to content

Commit 8d3c3da

Browse files
Merge PR SigmaHQ#5487 from @swachchhanda000 - Update Registry Shell Open Related Rules
update: Registry Modification of MS-settings Protocol Handler - Update logic to be more clear new: Suspicious Shell Open Command Registry Modification --------- Co-authored-by: Nasreddine Bencherchali <monsteroffire2@gmail.com>
1 parent 942d7d6 commit 8d3c3da

4 files changed

Lines changed: 95 additions & 39 deletions

rules/windows/process_creation/proc_creation_win_reg_open_command.yml

Lines changed: 0 additions & 39 deletions
This file was deleted.
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
title: Registry Modification of MS-settings Protocol Handler
2+
id: dd3ee8cc-f751-41c9-ba53-5a32ed47e563
3+
related:
4+
- id: 152f3630-77c1-4284-bcc0-4cc68ab2f6e7
5+
type: similar
6+
status: test
7+
description: |
8+
Detects registry modifications to the 'ms-settings' protocol handler, which is frequently targeted for UAC bypass or persistence.
9+
Attackers can modify this registry to execute malicious code with elevated privileges by hijacking the command execution path.
10+
references:
11+
- https://thedfirreport.com/2021/12/13/diavol-ransomware/
12+
- https://www.trendmicro.com/en_us/research/25/f/water-curse.html
13+
author: frack113, Swachchhanda Shrawan Poudel (Nextron Systems)
14+
date: 2021-12-20
15+
modified: 2026-01-24
16+
tags:
17+
- attack.defense-evasion
18+
- attack.privilege-escalation
19+
- attack.persistence
20+
- attack.t1548.002
21+
- attack.t1546.001
22+
- attack.t1112
23+
logsource:
24+
category: process_creation
25+
product: windows
26+
detection:
27+
selection_reg_img:
28+
- Image|endswith: '\reg.exe'
29+
- OriginalFileName: 'reg.exe'
30+
selection_pwsh_img:
31+
- Image|endswith:
32+
- '\powershell.exe'
33+
- '\pwsh.exe'
34+
- OriginalFileName:
35+
- 'powershell.exe'
36+
- 'pwsh.dll'
37+
selection_reg_cli:
38+
CommandLine|contains: 'add'
39+
selection_pwsh_cli:
40+
CommandLine|contains:
41+
- 'New-ItemProperty'
42+
- 'Set-ItemProperty'
43+
- 'ni '
44+
- 'sp '
45+
selection_cli_key:
46+
CommandLine|contains: '\ms-settings\shell\open\command'
47+
condition: (all of selection_reg_* or all of selection_pwsh_*) and selection_cli_key
48+
falsepositives:
49+
- Unknown
50+
level: medium

rules/windows/registry/registry_event/registry_event_shell_open_keys_manipulation.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
title: Shell Open Registry Keys Manipulation
22
id: 152f3630-77c1-4284-bcc0-4cc68ab2f6e7
3+
related:
4+
- id: dd3ee8cc-f751-41c9-ba53-5a32ed47e563
5+
type: similar
36
status: test
47
description: Detects the shell open key manipulation (exefile and ms-settings) used for persistence and the pattern of UAC Bypass using fodhelper.exe, computerdefaults.exe, slui.exe via registry keys (e.g. UACMe 33 or 62)
58
references:
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
title: Suspicious Shell Open Command Registry Modification
2+
id: 9e8894c0-0ae0-11ef-9d85-1f2942bec57c
3+
status: experimental
4+
description: |
5+
Detects modifications to shell open registry keys that point to suspicious locations typically used by malware for persistence.
6+
Generally, modifications to the `*\shell\open\command` registry key can indicate an attempt to change the default action for opening files,
7+
and various UAC bypass or persistence techniques involve modifying these keys to execute malicious scripts or binaries.
8+
references:
9+
- https://www.trendmicro.com/en_us/research/25/f/water-curse.html
10+
author: Swachchhanda Shrawan Poudel (Nextron Systems)
11+
date: 2026-01-24
12+
tags:
13+
- attack.defense-evasion
14+
- attack.privilege-escalation
15+
- attack.persistence
16+
- attack.t1548.002
17+
- attack.t1546.001
18+
logsource:
19+
category: registry_set
20+
product: windows
21+
detection:
22+
selection:
23+
TargetObject|contains: '\shell\open\command\'
24+
Details|contains:
25+
- '\$Recycle.Bin\'
26+
- '\AppData\Local\Temp\'
27+
- '\Contacts\'
28+
- '\Music\'
29+
- '\PerfLogs\'
30+
- '\Photos\'
31+
- '\Pictures\'
32+
- '\Users\Public\'
33+
- '\Videos\'
34+
- '\Windows\Temp\'
35+
- '%AppData%'
36+
- '%LocalAppData%'
37+
- '%Temp%'
38+
- '%tmp%'
39+
condition: selection
40+
falsepositives:
41+
- Legitimate software installations or updates that modify the shell open command registry keys to these locations.
42+
level: medium

0 commit comments

Comments
 (0)