Skip to content

Commit 7c7ab5f

Browse files
add marker
1 parent 670ac60 commit 7c7ab5f

1 file changed

Lines changed: 15 additions & 6 deletions

File tree

rules/windows/process_creation/proc_creation_win_reg_open_command.yml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ related:
55
type: similar
66
status: test
77
description: |
8-
Detects registry modifications to the `ms-settings` protocol handler, which is frequently targeted for UAC bypass or persistence.
8+
Detects registry modifications to the 'ms-settings' protocol handler, which is frequently targeted for UAC bypass or persistence.
99
Attackers can modify this registry to execute malicious code with elevated privileges by hijacking the command execution path.
1010
references:
1111
- https://thedfirreport.com/2021/12/13/diavol-ransomware/
@@ -23,20 +23,29 @@ logsource:
2323
category: process_creation
2424
product: windows
2525
detection:
26-
selection_img:
26+
selection_reg_img:
27+
- Image|endswith: '\reg.exe'
28+
- OriginalFileName: 'reg.exe'
29+
selection_pwsh_img:
2730
- Image|endswith:
28-
- '\reg.exe'
2931
- '\powershell.exe'
3032
- '\powershell_ise.exe'
3133
- '\pwsh.exe'
3234
- OriginalFileName:
33-
- 'reg.exe'
3435
- 'powershell.exe'
3536
- 'powershell_ise.exe'
3637
- 'pwsh.dll'
37-
selection_cmd:
38+
selection_reg_cli:
39+
CommandLine|contains: 'add'
40+
selection_pwsh_cli:
41+
CommandLine|contains:
42+
- 'New-ItemProperty'
43+
- 'Set-ItemProperty'
44+
- 'ni '
45+
- 'sp '
46+
selection_cli_key:
3847
CommandLine|contains: '\ms-settings\shell\open\command'
39-
condition: all of selection_*
48+
condition: (all of selection_reg_* or all of selection_pwsh_*) and selection_cli_key
4049
falsepositives:
4150
- Unknown
4251
level: medium

0 commit comments

Comments
 (0)