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-10-22
 16tags:
 17    - attack.privilege-escalation
 18    - attack.persistence
 19    - attack.t1547.001
 20logsource:
 21    category: registry_set
 22    product: windows
 23detection:
 24    selection_current_version_base:
 25        TargetObject|contains: '\SOFTWARE\Microsoft\Windows\CurrentVersion'
 26    selection_current_version_keys:
 27        TargetObject|contains:
 28            - '\ShellServiceObjectDelayLoad'
 29            - '\Run\'
 30            - '\RunOnce\'
 31            - '\RunOnceEx\'
 32            - '\RunServices\'
 33            - '\RunServicesOnce\'
 34            - '\Policies\System\Shell'
 35            - '\Policies\Explorer\Run'
 36            - '\Group Policy\Scripts\Startup'
 37            - '\Group Policy\Scripts\Shutdown'
 38            - '\Group Policy\Scripts\Logon'
 39            - '\Group Policy\Scripts\Logoff'
 40            - '\Explorer\ShellServiceObjects'
 41            - '\Explorer\ShellIconOverlayIdentifiers'
 42            - '\Explorer\ShellExecuteHooks'
 43            - '\Explorer\SharedTaskScheduler'
 44            - '\Explorer\Browser Helper Objects'
 45            - '\Authentication\PLAP Providers'
 46            - '\Authentication\Credential Providers'
 47            - '\Authentication\Credential Provider Filters'
 48    filter_main_generic_all:
 49        - Details: '(Empty)'
 50        - TargetObject|endswith: '\NgcFirst\ConsecutiveSwitchCount'
 51        - Image|endswith:
 52              - '\AppData\Local\Microsoft\OneDrive\Update\OneDriveSetup.exe' # C:\Users\*\AppData\Local\Microsoft\OneDrive\Update\OneDriveSetup.exe
 53              - '\AppData\Roaming\Spotify\Spotify.exe'
 54              - '\AppData\Local\WebEx\WebexHost.exe'
 55        - Image:
 56              - 'C:\WINDOWS\system32\devicecensus.exe'
 57              - 'C:\Windows\system32\winsat.exe'
 58              - 'C:\Program Files\Microsoft OneDrive\StandaloneUpdater\OneDriveSetup.exe'
 59              - 'C:\Program Files (x86)\Microsoft OneDrive\StandaloneUpdater\OneDriveSetup.exe'
 60              - 'C:\Program Files\Microsoft OneDrive\Update\OneDriveSetup.exe'
 61              - 'C:\Program Files (x86)\Microsoft OneDrive\Update\OneDriveSetup.exe'
 62              - 'C:\Program Files\Microsoft Office\root\integration\Addons\OneDriveSetup.exe'
 63              - 'C:\Program Files (x86)\Microsoft Office\root\integration\Addons\OneDriveSetup.exe'
 64              - 'C:\Program Files\KeePass Password Safe 2\ShInstUtil.exe'
 65              - 'C:\Program Files\Everything\Everything.exe'
 66              - 'C:\Program Files (x86)\Microsoft Office\root\integration\integrator.exe'
 67              - 'C:\Program Files\Microsoft Office\root\integration\integrator.exe'
 68    filter_main_null:
 69        Details: null
 70    filter_main_logonui:
 71        Image: 'C:\Windows\system32\LogonUI.exe'
 72        TargetObject|contains:
 73            - '\Authentication\Credential Providers\{D6886603-9D2F-4EB2-B667-1971041FA96B}\'  # PIN
 74            - '\Authentication\Credential Providers\{BEC09223-B018-416D-A0AC-523971B639F5}\'  # fingerprint
 75            - '\Authentication\Credential Providers\{8AF662BF-65A0-4D0A-A540-A338A999D36F}\'  # facial recognizion
 76            - '\Authentication\Credential Providers\{27FBDB57-B613-4AF2-9D7E-4FA7A66C21AD}\'  # Trusted Signal (Phone proximity, Network location)
 77    filter_main_edge:
 78        Image|startswith:
 79            - 'C:\Program Files (x86)\Microsoft\EdgeUpdate\Install\'
 80            - 'C:\Program Files (x86)\Microsoft\EdgeWebView\'
 81            - 'C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe'
 82    filter_main_defender:
 83        Image: 'C:\Program Files\Windows Defender\MsMpEng.exe'
 84    filter_main_teams:
 85        Image|endswith: '\Microsoft\Teams\current\Teams.exe'
 86        Details|contains: '\Microsoft\Teams\Update.exe --processStart '
 87    filter_main_ctfmon:
 88        Image: 'C:\Windows\system32\userinit.exe'
 89        Details: 'ctfmon.exe /n'
 90    filter_optional_dropbox:
 91        Image: 'C:\Windows\system32\regsvr32.exe'
 92        TargetObject|contains: 'DropboxExt'
 93        Details|endswith: 'A251-47B7-93E1-CDD82E34AF8B}'
 94    filter_optional_opera_1:
 95        TargetObject|endswith: '\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\Opera Browser Assistant'
 96        Details: 'C:\Program Files\Opera\assistant\browser_assistant.exe'
 97    filter_optional_opera_2:
 98        TargetObject|endswith: '\Software\Microsoft\Windows\CurrentVersion\Run\Opera Stable'
 99        Details:
100            - 'C:\Program Files\Opera\launcher.exe'
101            - 'C:\Program Files (x86)\Opera\launcher.exe'
102    filter_optional_itunes:
103        TargetObject|endswith: '\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\iTunesHelper'
104        Details: '"C:\Program Files\iTunes\iTunesHelper.exe"'
105    filter_optional_zoom:
106        TargetObject|endswith: '\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce\zoommsirepair'
107        Details: '"C:\Program Files\Zoom\bin\installer.exe" /repair'
108    filter_optional_greenshot:
109        TargetObject|endswith: '\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\Greenshot'
110        Details: 'C:\Program Files\Greenshot\Greenshot.exe'
111    filter_optional_googledrive1:
112        TargetObject|endswith: '\Software\Microsoft\Windows\CurrentVersion\Run\GoogleDriveFS'
113        Details|startswith: 'C:\Program Files\Google\Drive File Stream\'
114        Details|contains: '\GoogleDriveFS.exe'
115    filter_optional_googledrive2:
116        TargetObject|contains: 'GoogleDrive'
117        Details:
118            - '{CFE8B367-77A7-41D7-9C90-75D16D7DC6B6}'
119            - '{A8E52322-8734-481D-A7E2-27B309EF8D56}'
120            - '{C973DA94-CBDF-4E77-81D1-E5B794FBD146}'
121            - '{51EF1569-67EE-4AD6-9646-E726C3FFC8A2}'
122    filter_optional_onedrive:
123        Details|startswith:
124            - 'C:\Windows\system32\cmd.exe /q /c rmdir /s /q "C:\Users\'
125            - 'C:\Windows\system32\cmd.exe /q /c del /q "C:\Users\'
126        Details|contains: '\AppData\Local\Microsoft\OneDrive\'
127    filter_optional_python:
128        TargetObject|contains: '\Microsoft\Windows\CurrentVersion\RunOnce\{'
129        Details|contains|all:
130            - '\AppData\Local\Package Cache\{'
131            - '}\python-'
132        Details|endswith: '.exe" /burn.runonce'
133    filter_optional_officeclicktorun:
134        Image|startswith:
135            - 'C:\Program Files\Common Files\Microsoft Shared\ClickToRun\'
136            - 'C:\Program Files (x86)\Common Files\Microsoft Shared\ClickToRun\'
137        Image|endswith: '\OfficeClickToRun.exe'
138    filter_optional_teams:
139        Image|endswith: '\Microsoft\Teams\current\Teams.exe'
140        Details|contains: '\Microsoft\Teams\Update.exe --processStart'
141    filter_optional_AVG_setup:
142        Image|contains:
143            - 'C:\Program Files\AVG\Antivirus\Setup\'
144            - 'C:\Program Files (x86)\AVG\Antivirus\Setup\'
145            - '\instup.exe'
146        Details:
147            - '"C:\Program Files\AVG\Antivirus\AvLaunch.exe" /gui'
148            - '"C:\Program Files (x86)\AVG\Antivirus\AvLaunch.exe" /gui'
149            - '{472083B0-C522-11CF-8763-00608CC02F24}'
150            - '{472083B1-C522-11CF-8763-00608CC02F24}'
151    filter_optional_Avast:
152        Image|contains:
153            - 'C:\Program Files\Avast Software\Avast\Setup\'
154            - 'C:\Program Files (x86)\Avast Software\Avast\Setup\'
155            - '\instup.exe'
156        Details:
157            - '"C:\Program Files\Avast Software\Avast\AvLaunch.exe" /gui'
158            - '"C:\Program Files (x86)\Avast Software\Avast\AvLaunch.exe" /gui'
159    filter_optional_AVG_avgtoolsvc:
160        Image:
161            - 'C:\Program Files\AVG\Antivirus\avgToolsSvc.exe'
162            - 'C:\Program Files (x86)\AVG\Antivirus\avgToolsSvc.exe'
163        TargetObject|contains: '\Software\Microsoft\Windows\CurrentVersion\Explorer\StartupApproved\Run\'
164        Details: 'Binary Data'
165    filter_optional_aurora_dashboard:
166        Image|endswith:
167            - '\aurora-agent-64.exe'
168            - '\aurora-agent.exe'
169        TargetObject|endswith: '\Microsoft\Windows\CurrentVersion\Run\aurora-dashboard'
170        Details: 'C:\Program Files\Aurora-Agent\tools\aurora-dashboard.exe'
171    filter_optional_everything:
172        TargetObject|endswith: '\Microsoft\Windows\CurrentVersion\Run\Everything'
173        Details|endswith: '\Everything\Everything.exe" -startup' # We remove the starting part as it could be installed in different locations
174    filter_optional_discord:
175        TargetObject|endswith: '\Software\Microsoft\Windows\CurrentVersion\Run\Discord'
176        Details|endswith: '\Discord\Update.exe --processStart Discord.exe'
177    condition: all of selection_* and not 1 of filter_main_* and not 1 of filter_optional_*
178falsepositives:
179    - Legitimate software automatically (mostly, during installation) sets up autorun keys for legitimate reason
180    - Legitimate administrator sets up autorun keys for legitimate reason
181level: medium

References

Related rules

to-top