-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
feat: Reg shell open command #5487
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
nasbench
merged 9 commits into
SigmaHQ:master
from
swachchhanda000:reg_shell_open_command
Jan 24, 2026
Merged
Changes from 5 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
0e0e25b
feat: Shell Open Registry Keys Manipulation
swachchhanda000 d2a5a4a
fix: Invalid Casing Error
swachchhanda000 ac04028
add marker
swachchhanda000 a3faf7d
change rulename
swachchhanda000 e27b441
add missing tactics
swachchhanda000 959965f
Apply suggestions from code review
nasbench ff1667b
Update rules/windows/process_creation/proc_creation_win_susp_registry…
nasbench 3ead585
Update rules/windows/process_creation/proc_creation_win_susp_registry…
nasbench 1c74e21
Merge branch 'master' into reg_shell_open_command
nasbench File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
39 changes: 0 additions & 39 deletions
39
rules/windows/process_creation/proc_creation_win_reg_open_command.yml
This file was deleted.
Oops, something went wrong.
52 changes: 52 additions & 0 deletions
52
..._creation/proc_creation_win_susp_registry_modification_of_ms_setting_protocol_handler.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| title: Registry Modification of MS-settings Protocol Handler | ||
| id: dd3ee8cc-f751-41c9-ba53-5a32ed47e563 | ||
| related: | ||
| - id: 152f3630-77c1-4284-bcc0-4cc68ab2f6e7 | ||
| type: similar | ||
| status: test | ||
| description: | | ||
| Detects registry modifications to the 'ms-settings' protocol handler, which is frequently targeted for UAC bypass or persistence. | ||
| Attackers can modify this registry to execute malicious code with elevated privileges by hijacking the command execution path. | ||
| references: | ||
| - https://thedfirreport.com/2021/12/13/diavol-ransomware/ | ||
| - https://www.trendmicro.com/en_us/research/25/f/water-curse.html | ||
| author: frack113, Swachchhanda Shrawan Poudel (Nextron Systems) | ||
| date: 2021-12-20 | ||
| modified: 2025-06-17 | ||
| tags: | ||
| - attack.defense-evasion | ||
| - attack.privilege-escalation | ||
| - attack.persistence | ||
| - attack.t1548.002 | ||
| - attack.t1546.001 | ||
| - attack.t1112 | ||
| logsource: | ||
| category: process_creation | ||
| product: windows | ||
| detection: | ||
| selection_reg_img: | ||
| - Image|endswith: '\reg.exe' | ||
| - OriginalFileName: 'reg.exe' | ||
| selection_pwsh_img: | ||
| - Image|endswith: | ||
| - '\powershell.exe' | ||
| - '\powershell_ise.exe' | ||
|
nasbench marked this conversation as resolved.
Outdated
|
||
| - '\pwsh.exe' | ||
| - OriginalFileName: | ||
| - 'powershell.exe' | ||
| - 'powershell_ise.exe' | ||
|
nasbench marked this conversation as resolved.
Outdated
|
||
| - 'pwsh.dll' | ||
|
swachchhanda000 marked this conversation as resolved.
|
||
| selection_reg_cli: | ||
| CommandLine|contains: 'add' | ||
| selection_pwsh_cli: | ||
| CommandLine|contains: | ||
| - 'New-ItemProperty' | ||
| - 'Set-ItemProperty' | ||
| - 'ni ' | ||
| - 'sp ' | ||
| selection_cli_key: | ||
| CommandLine|contains: '\ms-settings\shell\open\command' | ||
| condition: (all of selection_reg_* or all of selection_pwsh_*) and selection_cli_key | ||
| falsepositives: | ||
| - Unknown | ||
| level: medium | ||
3 changes: 3 additions & 0 deletions
3
rules/windows/registry/registry_event/registry_event_shell_open_keys_manipulation.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
...windows/registry/registry_set/registry_set_susp_shell_open_keys_modification_patterns.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| title: Suspicious Shell Open Command Registry Modification | ||
| id: 9e8894c0-0ae0-11ef-9d85-1f2942bec57c | ||
| status: experimental | ||
| description: | | ||
| Detects modifications to shell open registry keys that point to suspicious locations typically used by malware for persistence. | ||
| Generally, modifications to the `*\shell\open\command` registry key can indicate an attempt to change the default action for opening files, | ||
| and various UAC bypass or persistence techniques involve modifying these keys to execute malicious scripts or binaries. | ||
| references: | ||
| - https://www.trendmicro.com/en_us/research/25/f/water-curse.html | ||
| author: Swachchhanda Shrawan Poudel (Nextron Systems) | ||
| date: 2025-06-17 | ||
|
nasbench marked this conversation as resolved.
Outdated
|
||
| tags: | ||
| - attack.defense-evasion | ||
| - attack.privilege-escalation | ||
| - attack.persistence | ||
| - attack.t1548.002 | ||
| - attack.t1546.001 | ||
| logsource: | ||
| category: registry_set | ||
| product: windows | ||
| detection: | ||
| selection: | ||
| TargetObject|contains: '\shell\open\command\' | ||
| Details|contains: | ||
| - '\$Recycle.Bin\' | ||
| - '\AppData\Local\Temp\' | ||
| - '\Contacts\' | ||
| - '\Music\' | ||
| - '\PerfLogs\' | ||
| - '\Photos\' | ||
| - '\Pictures\' | ||
| - '\Users\Public\' | ||
| - '\Videos\' | ||
| - '\Windows\Temp\' | ||
| - '%AppData%' | ||
| - '%LocalAppData%' | ||
| - '%Temp%' | ||
| - '%tmp%' | ||
| condition: selection | ||
| falsepositives: | ||
| - Legitimate software installations or updates that modify the shell open command registry keys to these locations. | ||
| level: medium | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.