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: 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://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-08-17
16tags:
17    - attack.persistence
18    - attack.t1547.001
19logsource:
20    category: registry_set
21    product: windows
22detection:
23    main_selection:
24        TargetObject|contains:
25            - '\SOFTWARE\Wow6432Node\Microsoft\Windows CE Services\AutoStart'
26            - '\Software\Wow6432Node\Microsoft\Command Processor\Autorun'
27            - '\SOFTWARE\Wow6432Node\Microsoft\Active Setup\Installed Components'
28            - '\SOFTWARE\Microsoft\Windows CE Services\AutoStartOnDisconnect'
29            - '\SOFTWARE\Microsoft\Windows CE Services\AutoStartOnConnect'
30            - '\SYSTEM\Setup\CmdLine'
31            - '\Software\Microsoft\Ctf\LangBarAddin'
32            - '\Software\Microsoft\Command Processor\Autorun'
33            - '\SOFTWARE\Microsoft\Active Setup\Installed Components'
34            - '\SOFTWARE\Classes\Protocols\Handler'
35            - '\SOFTWARE\Classes\Protocols\Filter'
36            - '\SOFTWARE\Classes\Htmlfile\Shell\Open\Command\(Default)'
37            - '\Environment\UserInitMprLogonScript'
38            - '\SOFTWARE\Policies\Microsoft\Windows\Control Panel\Desktop\Scrnsave.exe'
39            - '\Software\Microsoft\Internet Explorer\UrlSearchHooks'
40            - '\SOFTWARE\Microsoft\Internet Explorer\Desktop\Components'
41            - '\Software\Classes\Clsid\{AB8902B4-09CA-4bb6-B78D-A8F59079A8D5}\Inprocserver32'
42            - '\Control Panel\Desktop\Scrnsave.exe'
43    filter_empty:
44        Details: '(Empty)'
45    filter_msoffice:
46        - TargetObject|contains:
47              - '\Office\ClickToRun\REGISTRY\MACHINE\Software\Classes\PROTOCOLS\Handler\'
48              - '\ClickToRunStore\HKMU\SOFTWARE\Classes\PROTOCOLS\Handler\'
49        - Details:
50              - '{314111c7-a502-11d2-bbca-00c04f8ec294}'
51              - '{3459B272-CC19-4448-86C9-DDC3B4B2FAD3}'
52              - '{42089D2D-912D-4018-9087-2B87803E93FB}'
53              - '{5504BE45-A83B-4808-900A-3A5C36E7F77A}'
54              - '{807583E5-5146-11D5-A672-00B0D022E945}'
55    filter_chrome:
56        TargetObject|contains: '\SOFTWARE\Microsoft\Active Setup\Installed Components\{8A69D345-D564-463c-AFF1-A69D9E530F96}'
57    filter_edge:
58        TargetObject|contains: '\SOFTWARE\Microsoft\Active Setup\Installed Components\{9459C573-B17A-45AE-9F64-1857B5D58CEE}'
59    filter_IE:
60        TargetObject|contains: '\Software\Microsoft\Active Setup\Installed Components\{89820200-ECBD-11cf-8B85-00AA005B4383}'
61    filter_image:
62        Image:
63            - 'C:\Windows\System32\poqexec.exe'
64            - 'C:\Program Files (x86)\Microsoft Office\root\integration\integrator.exe'
65    filter_office:
66        Image|startswith:
67            - 'C:\Program Files\Common Files\Microsoft Shared\ClickToRun\'
68            - 'C:\Program Files\Common Files\Microsoft Shared\ClickToRun\Updates\'
69        Image|endswith: '\OfficeClickToRun.exe'
70    condition: main_selection and not 1 of filter_*
71falsepositives:
72    - Legitimate software automatically (mostly, during installation) sets up autorun keys for legitimate reason
73    - Legitimate administrator sets up autorun keys for legitimate reason
74level: medium

References

Related rules

to-top