Common Autorun Keys Modification

Detects modification of autostart extensibility point (ASEP) in registry.

Sigma rule (View on GitHub)

 1title: Common Autorun Keys Modification
 2id: f59c3faf-50f3-464b-9f4c-1b67ab512d99
 3related:
 4    - id: 17f878b8-9968-4578-b814-c4217fc5768c
 5      type: obsoletes
 6status: experimental
 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://docs.microsoft.com/en-us/sysinternals/downloads/autoruns
11    - https://gist.github.com/GlebSukhodolskiy/0fc5fa5f482903064b448890db1eaf9d # a list with registry keys
12    - https://persistence-info.github.io/Data/userinitmprlogonscript.html # UserInitMprLogonScript
13author: Victor Sergeev, Daniil Yugoslavskiy, Gleb Sukhodolskiy, Timur Zinniatullin, oscd.community, Tim Shelton, frack113 (split), wagga (name)
14date: 2019/10/25
15modified: 2023/03/24
16tags:
17    - attack.persistence
18    - attack.t1547.001
19logsource:
20    category: registry_set
21    product: windows
22detection:
23    main_selection:
24        EventType: SetValue
25        TargetObject|contains:
26            - '\SOFTWARE\Wow6432Node\Microsoft\Windows CE Services\AutoStart'
27            - '\Software\Wow6432Node\Microsoft\Command Processor\Autorun'
28            - '\SOFTWARE\Wow6432Node\Microsoft\Active Setup\Installed Components'
29            - '\SOFTWARE\Microsoft\Windows CE Services\AutoStartOnDisconnect'
30            - '\SOFTWARE\Microsoft\Windows CE Services\AutoStartOnConnect'
31            - '\SYSTEM\Setup\CmdLine'
32            - '\Software\Microsoft\Ctf\LangBarAddin'
33            - '\Software\Microsoft\Command Processor\Autorun'
34            - '\SOFTWARE\Microsoft\Active Setup\Installed Components'
35            - '\SOFTWARE\Classes\Protocols\Handler'
36            - '\SOFTWARE\Classes\Protocols\Filter'
37            - '\SOFTWARE\Classes\Htmlfile\Shell\Open\Command\(Default)'
38            - '\Environment\UserInitMprLogonScript'
39            - '\SOFTWARE\Policies\Microsoft\Windows\Control Panel\Desktop\Scrnsave.exe'
40            - '\Software\Microsoft\Internet Explorer\UrlSearchHooks'
41            - '\SOFTWARE\Microsoft\Internet Explorer\Desktop\Components'
42            - '\Software\Classes\Clsid\{AB8902B4-09CA-4bb6-B78D-A8F59079A8D5}\Inprocserver32'
43            - '\Control Panel\Desktop\Scrnsave.exe'
44    filter_empty:
45        Details: '(Empty)'
46    filter_msoffice:
47        - TargetObject|contains:
48            - '\Office\ClickToRun\REGISTRY\MACHINE\Software\Classes\PROTOCOLS\Handler\'
49            - '\ClickToRunStore\HKMU\SOFTWARE\Classes\PROTOCOLS\Handler\'
50        - Details:
51            - '{314111c7-a502-11d2-bbca-00c04f8ec294}'
52            - '{3459B272-CC19-4448-86C9-DDC3B4B2FAD3}'
53            - '{42089D2D-912D-4018-9087-2B87803E93FB}'
54            - '{5504BE45-A83B-4808-900A-3A5C36E7F77A}'
55            - '{807583E5-5146-11D5-A672-00B0D022E945}'
56    filter_chrome:
57        TargetObject|contains: '\SOFTWARE\Microsoft\Active Setup\Installed Components\{8A69D345-D564-463c-AFF1-A69D9E530F96}'
58    filter_edge:
59        TargetObject|contains: '\SOFTWARE\Microsoft\Active Setup\Installed Components\{9459C573-B17A-45AE-9F64-1857B5D58CEE}'
60    filter_IE:
61        TargetObject|contains: '\Software\Microsoft\Active Setup\Installed Components\{89820200-ECBD-11cf-8B85-00AA005B4383}'
62    filter_image:
63        Image:
64            - 'C:\Windows\System32\poqexec.exe'
65            - 'C:\Program Files (x86)\Microsoft Office\root\integration\integrator.exe'
66    filter_office:
67        Image|startswith:
68            - 'C:\Program Files\Common Files\Microsoft Shared\ClickToRun\'
69            - 'C:\Program Files\Common Files\Microsoft Shared\ClickToRun\Updates\'
70        Image|endswith: '\OfficeClickToRun.exe'
71    condition: main_selection and not 1 of filter_*
72fields:
73    - SecurityID
74    - ObjectName
75    - OldValueType
76    - NewValueType
77falsepositives:
78    - Legitimate software automatically (mostly, during installation) sets up autorun keys for legitimate reason
79    - Legitimate administrator sets up autorun keys for legitimate reason
80level: medium

Related rules

to-top