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: obsoletes
  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: 2023/08/17
 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    filter_logonui:
 64        Image: 'C:\Windows\system32\LogonUI.exe'
 65        TargetObject|contains:
 66            - '\Authentication\Credential Providers\{D6886603-9D2F-4EB2-B667-1971041FA96B}\'  # PIN
 67            - '\Authentication\Credential Providers\{BEC09223-B018-416D-A0AC-523971B639F5}\'  # fingerprint
 68            - '\Authentication\Credential Providers\{8AF662BF-65A0-4D0A-A540-A338A999D36F}\'  # facial recognizion
 69            - '\Authentication\Credential Providers\{27FBDB57-B613-4AF2-9D7E-4FA7A66C21AD}\'  # Trusted Signal (Phone proximity, Network location)
 70    filter_edge:
 71        Image|startswith:
 72            - 'C:\Program Files (x86)\Microsoft\EdgeUpdate\Install\'
 73            - 'C:\Program Files (x86)\Microsoft\EdgeWebView\'
 74            - 'C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe'
 75    filter_dropbox:
 76        Image: 'C:\Windows\system32\regsvr32.exe'
 77        TargetObject|contains: 'DropboxExt'
 78        Details|endswith: 'A251-47B7-93E1-CDD82E34AF8B}'
 79    filter_opera:
 80        TargetObject|endswith: '\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\Opera Browser Assistant'
 81        Details: 'C:\Program Files\Opera\assistant\browser_assistant.exe'
 82    filter_itunes:
 83        TargetObject|endswith: '\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\iTunesHelper'
 84        Details: '"C:\Program Files\iTunes\iTunesHelper.exe"'
 85    filter_zoom:
 86        TargetObject|endswith: '\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce\zoommsirepair'
 87        Details: '"C:\Program Files\Zoom\bin\installer.exe" /repair'
 88    filter_greenshot:
 89        TargetObject|endswith: '\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\Greenshot'
 90        Details: 'C:\Program Files\Greenshot\Greenshot.exe'
 91    filter_googledrive1:
 92        TargetObject|endswith: '\Software\Microsoft\Windows\CurrentVersion\Run\GoogleDriveFS'
 93        Details|startswith: 'C:\Program Files\Google\Drive File Stream\'
 94        Details|contains: '\GoogleDriveFS.exe'
 95    filter_googledrive2:
 96        TargetObject|contains: 'GoogleDrive'
 97        Details:
 98            - '{CFE8B367-77A7-41D7-9C90-75D16D7DC6B6}'
 99            - '{A8E52322-8734-481D-A7E2-27B309EF8D56}'
100            - '{C973DA94-CBDF-4E77-81D1-E5B794FBD146}'
101            - '{51EF1569-67EE-4AD6-9646-E726C3FFC8A2}'
102    filter_onedrive:
103        Details|startswith:
104            - 'C:\Windows\system32\cmd.exe /q /c rmdir /s /q "C:\Users\'
105            - 'C:\Windows\system32\cmd.exe /q /c del /q "C:\Users\'
106        Details|contains: '\AppData\Local\Microsoft\OneDrive\'
107    filter_python:
108        TargetObject|contains: '\Microsoft\Windows\CurrentVersion\RunOnce\{'
109        Details|contains|all:
110            - '\AppData\Local\Package Cache\{'
111            - '}\python-'
112        Details|endswith: '.exe" /burn.runonce'
113    filter_officeclicktorun:
114        Image|startswith:
115            - 'C:\Program Files\Common Files\Microsoft Shared\ClickToRun\'
116            - 'C:\Program Files\Common Files\Microsoft Shared\ClickToRun\Updates\'
117        Image|endswith: '\OfficeClickToRun.exe'
118    filter_defender:
119        Image: 'C:\Program Files\Windows Defender\MsMpEng.exe'
120    filter_teams:
121        Image|endswith: '\Microsoft\Teams\current\Teams.exe'
122        Details|contains: '\Microsoft\Teams\Update.exe --processStart '
123    filter_ctfmon:
124        Image: 'C:\Windows\system32\userinit.exe'
125        Details: 'ctfmon.exe /n'
126    filter_AVG:
127        Image|startswith: 'C:\Program Files\AVG\Antivirus\Setup\'
128        Details:
129            - '"C:\Program Files\AVG\Antivirus\AvLaunch.exe" /gui'
130            - '"C:\Program Files (x86)\AVG\Antivirus\AvLaunch.exe" /gui'
131            - '{472083B0-C522-11CF-8763-00608CC02F24}'
132    filter_aurora_dashboard:
133        Image|endswith:
134            - '\aurora-agent-64.exe'
135            - '\aurora-agent.exe'
136        TargetObject|endswith: '\Microsoft\Windows\CurrentVersion\Run\aurora-dashboard'
137        Details: 'C:\Program Files\Aurora-Agent\tools\aurora-dashboard.exe'
138    filter_everything:
139        TargetObject|endswith: '\Microsoft\Windows\CurrentVersion\Run\Everything'
140        Details|endswith: '\Everything\Everything.exe" -startup' # We remove the starting part as it could be installed in different locations
141    condition: all of current_version_* and not 1 of filter_*
142falsepositives:
143    - Legitimate software automatically (mostly, during installation) sets up autorun keys for legitimate reason
144    - Legitimate administrator sets up autorun keys for legitimate reason
145level: medium

References

Related rules

to-top