Potential Persistence Via MyComputer Registry Keys

Detects modification to the "Default" value of the "MyComputer" key and subkeys to point to a custom binary that will be launched whenever the associated action is executed (see reference section for example)

Sigma rule (View on GitHub)

 1title: Potential Persistence Via MyComputer Registry Keys
 2id: 8fbe98a8-8f9d-44f8-aa71-8c572e29ef06
 3status: test
 4description: Detects modification to the "Default" value of the "MyComputer" key and subkeys to point to a custom binary that will be launched whenever the associated action is executed (see reference section for example)
 5references:
 6    - https://www.hexacorn.com/blog/2017/01/18/beyond-good-ol-run-key-part-55/
 7author: Nasreddine Bencherchali (Nextron Systems)
 8date: 2022-08-09
 9modified: 2026-11-16
10tags:
11    - attack.persistence
12logsource:
13    category: registry_set
14    product: windows
15detection:
16    selection:
17        TargetObject|contains: '\Microsoft\Windows\CurrentVersion\Explorer\MyComputer'
18        TargetObject|endswith: 'path\(Default)'
19    filter_main_default:
20        Details|startswith:
21            - '%%SystemRoot%%\'
22            - '%%Windir%%\'
23            - '%SystemRoot%\'
24            - '%Windir%\'
25            - 'C:\Windows\'
26    filter_main_path_backup:
27        TargetObject|endswith: '\MyComputer\BackupPath\(Default)'
28        Details|endswith:
29            - '\System32\sdclt.exe'
30            - '\SysWOW64\sdclt.exe'
31    filter_main_path_cleanup:
32        TargetObject|endswith: '\MyComputer\cleanuppath\(Default)'
33        Details|endswith:
34            - '\System32\cleanmgr.exe /D %c'
35            - '\SysWOW64\cleanmgr.exe /D %c'
36            - '\System32\cleanmgr.exe /D %%c'
37            - '\SysWOW64\cleanmgr.exe /D %%c'
38    filter_main_path_defrag:
39        TargetObject|endswith: '\MyComputer\DefragPath\(Default)'
40        Details|endswith:
41            - '\System32\dfrgui.exe'
42            - '\SysWOW64\dfrgui.exe'
43    condition: selection and not (filter_main_default and 1 of filter_main_path_*)
44falsepositives:
45    - Unlikely but if you experience FPs add specific processes and locations you would like to monitor for
46level: high

References

Related rules

to-top