CurrentVersion Autorun Keys Modification
Detects modification of autostart extensibility point (ASEP) in registry.
Sigma rule (View on GitHub)
1title: CurrentVersion Autorun Keys Modification
2id: 20f0ee37-5942-4e45-b7d5-c5b5db9df5cd
3related:
4 - id: 17f878b8-9968-4578-b814-c4217fc5768c
5 type: obsolete
6status: test
7description: Detects modification of autostart extensibility point (ASEP) in registry.
8references:
9 - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1547.001/T1547.001.md
10 - https://learn.microsoft.com/en-us/sysinternals/downloads/autoruns
11 - https://gist.github.com/GlebSukhodolskiy/0fc5fa5f482903064b448890db1eaf9d # a list with registry keys
12 - https://oddvar.moe/2018/03/21/persistence-using-runonceex-hidden-from-autoruns-exe/
13author: Victor Sergeev, Daniil Yugoslavskiy, Gleb Sukhodolskiy, Timur Zinniatullin, oscd.community, Tim Shelton, frack113 (split)
14date: 2019-10-25
15modified: 2025-06-16
16tags:
17 - attack.persistence
18 - attack.t1547.001
19logsource:
20 category: registry_set
21 product: windows
22detection:
23 current_version_base:
24 TargetObject|contains: '\SOFTWARE\Microsoft\Windows\CurrentVersion'
25 current_version_keys:
26 TargetObject|contains:
27 - '\ShellServiceObjectDelayLoad'
28 - '\Run\'
29 - '\RunOnce\'
30 - '\RunOnceEx\'
31 - '\RunServices\'
32 - '\RunServicesOnce\'
33 - '\Policies\System\Shell'
34 - '\Policies\Explorer\Run'
35 - '\Group Policy\Scripts\Startup'
36 - '\Group Policy\Scripts\Shutdown'
37 - '\Group Policy\Scripts\Logon'
38 - '\Group Policy\Scripts\Logoff'
39 - '\Explorer\ShellServiceObjects'
40 - '\Explorer\ShellIconOverlayIdentifiers'
41 - '\Explorer\ShellExecuteHooks'
42 - '\Explorer\SharedTaskScheduler'
43 - '\Explorer\Browser Helper Objects'
44 - '\Authentication\PLAP Providers'
45 - '\Authentication\Credential Providers'
46 - '\Authentication\Credential Provider Filters'
47 filter_all:
48 - Details: '(Empty)'
49 - TargetObject|endswith: '\NgcFirst\ConsecutiveSwitchCount'
50 - Image|endswith:
51 - '\AppData\Local\Microsoft\OneDrive\Update\OneDriveSetup.exe' # C:\Users\*\AppData\Local\Microsoft\OneDrive\Update\OneDriveSetup.exe
52 - '\AppData\Roaming\Spotify\Spotify.exe'
53 - '\AppData\Local\WebEx\WebexHost.exe'
54 - Image:
55 - 'C:\WINDOWS\system32\devicecensus.exe'
56 - 'C:\Windows\system32\winsat.exe'
57 - 'C:\Program Files\Microsoft OneDrive\StandaloneUpdater\OneDriveSetup.exe'
58 - 'C:\Program Files\Microsoft OneDrive\Update\OneDriveSetup.exe'
59 - 'C:\Program Files (x86)\Microsoft OneDrive\Update\OneDriveSetup.exe'
60 - 'C:\Program Files\KeePass Password Safe 2\ShInstUtil.exe'
61 - 'C:\Program Files\Everything\Everything.exe'
62 - 'C:\Program Files (x86)\Microsoft Office\root\integration\integrator.exe'
63 - 'C:\Program Files\Microsoft Office\root\integration\integrator.exe'
64 filter_logonui:
65 Image: 'C:\Windows\system32\LogonUI.exe'
66 TargetObject|contains:
67 - '\Authentication\Credential Providers\{D6886603-9D2F-4EB2-B667-1971041FA96B}\' # PIN
68 - '\Authentication\Credential Providers\{BEC09223-B018-416D-A0AC-523971B639F5}\' # fingerprint
69 - '\Authentication\Credential Providers\{8AF662BF-65A0-4D0A-A540-A338A999D36F}\' # facial recognizion
70 - '\Authentication\Credential Providers\{27FBDB57-B613-4AF2-9D7E-4FA7A66C21AD}\' # Trusted Signal (Phone proximity, Network location)
71 filter_edge:
72 Image|startswith:
73 - 'C:\Program Files (x86)\Microsoft\EdgeUpdate\Install\'
74 - 'C:\Program Files (x86)\Microsoft\EdgeWebView\'
75 - 'C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe'
76 filter_dropbox:
77 Image: 'C:\Windows\system32\regsvr32.exe'
78 TargetObject|contains: 'DropboxExt'
79 Details|endswith: 'A251-47B7-93E1-CDD82E34AF8B}'
80 filter_opera:
81 TargetObject|endswith: '\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\Opera Browser Assistant'
82 Details: 'C:\Program Files\Opera\assistant\browser_assistant.exe'
83 filter_itunes:
84 TargetObject|endswith: '\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\iTunesHelper'
85 Details: '"C:\Program Files\iTunes\iTunesHelper.exe"'
86 filter_zoom:
87 TargetObject|endswith: '\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce\zoommsirepair'
88 Details: '"C:\Program Files\Zoom\bin\installer.exe" /repair'
89 filter_greenshot:
90 TargetObject|endswith: '\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\Greenshot'
91 Details: 'C:\Program Files\Greenshot\Greenshot.exe'
92 filter_googledrive1:
93 TargetObject|endswith: '\Software\Microsoft\Windows\CurrentVersion\Run\GoogleDriveFS'
94 Details|startswith: 'C:\Program Files\Google\Drive File Stream\'
95 Details|contains: '\GoogleDriveFS.exe'
96 filter_googledrive2:
97 TargetObject|contains: 'GoogleDrive'
98 Details:
99 - '{CFE8B367-77A7-41D7-9C90-75D16D7DC6B6}'
100 - '{A8E52322-8734-481D-A7E2-27B309EF8D56}'
101 - '{C973DA94-CBDF-4E77-81D1-E5B794FBD146}'
102 - '{51EF1569-67EE-4AD6-9646-E726C3FFC8A2}'
103 filter_onedrive:
104 Details|startswith:
105 - 'C:\Windows\system32\cmd.exe /q /c rmdir /s /q "C:\Users\'
106 - 'C:\Windows\system32\cmd.exe /q /c del /q "C:\Users\'
107 Details|contains: '\AppData\Local\Microsoft\OneDrive\'
108 filter_python:
109 TargetObject|contains: '\Microsoft\Windows\CurrentVersion\RunOnce\{'
110 Details|contains|all:
111 - '\AppData\Local\Package Cache\{'
112 - '}\python-'
113 Details|endswith: '.exe" /burn.runonce'
114 filter_officeclicktorun:
115 Image|startswith:
116 - 'C:\Program Files\Common Files\Microsoft Shared\ClickToRun\'
117 - 'C:\Program Files\Common Files\Microsoft Shared\ClickToRun\Updates\'
118 Image|endswith: '\OfficeClickToRun.exe'
119 filter_defender:
120 Image: 'C:\Program Files\Windows Defender\MsMpEng.exe'
121 filter_teams:
122 Image|endswith: '\Microsoft\Teams\current\Teams.exe'
123 Details|contains: '\Microsoft\Teams\Update.exe --processStart '
124 filter_ctfmon:
125 Image: 'C:\Windows\system32\userinit.exe'
126 Details: 'ctfmon.exe /n'
127 filter_AVG:
128 Image|startswith: 'C:\Program Files\AVG\Antivirus\Setup\'
129 Details:
130 - '"C:\Program Files\AVG\Antivirus\AvLaunch.exe" /gui'
131 - '"C:\Program Files (x86)\AVG\Antivirus\AvLaunch.exe" /gui'
132 - '{472083B0-C522-11CF-8763-00608CC02F24}'
133 filter_aurora_dashboard:
134 Image|endswith:
135 - '\aurora-agent-64.exe'
136 - '\aurora-agent.exe'
137 TargetObject|endswith: '\Microsoft\Windows\CurrentVersion\Run\aurora-dashboard'
138 Details: 'C:\Program Files\Aurora-Agent\tools\aurora-dashboard.exe'
139 filter_everything:
140 TargetObject|endswith: '\Microsoft\Windows\CurrentVersion\Run\Everything'
141 Details|endswith: '\Everything\Everything.exe" -startup' # We remove the starting part as it could be installed in different locations
142 condition: all of current_version_* and not 1 of filter_*
143falsepositives:
144 - Legitimate software automatically (mostly, during installation) sets up autorun keys for legitimate reason
145 - Legitimate administrator sets up autorun keys for legitimate reason
146level: medium
References
Related rules
- Common Autorun Keys Modification
- Kapeka Backdoor Autorun Persistence
- Direct Autorun Keys Modification
- New RUN Key Pointing to Suspicious Folder
- Potential Persistence Attempt Via Run Keys Using Reg.EXE