Direct Autorun Keys Modification
Detects direct modification of autostart extensibility point (ASEP) in registry using reg.exe.
Sigma rule (View on GitHub)
1title: Direct Autorun Keys Modification
2id: 24357373-078f-44ed-9ac4-6d334a668a11
3status: test
4description: Detects direct modification of autostart extensibility point (ASEP) in registry using reg.exe.
5references:
6 - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1547.001/T1547.001.md
7 - https://github.com/HackTricks-wiki/hacktricks/blob/e4c7b21b8f36c97c35b7c622732b38a189ce18f7/src/windows-hardening/windows-local-privilege-escalation/privilege-escalation-with-autorun-binaries.md
8author: Victor Sergeev, Daniil Yugoslavskiy, oscd.community, Swachchhanda Shrawan Poudel (Nextron Systems)
9date: 2019-10-25
10modified: 2025-02-17
11tags:
12 - attack.persistence
13 - attack.t1547.001
14logsource:
15 category: process_creation
16 product: windows
17detection:
18 selection_img:
19 - Image|endswith: '\reg.exe'
20 - OriginalFileName: 'reg.exe'
21 selection_cli_add:
22 CommandLine|contains: 'add' # to avoid intersection with discovery tactic rules
23 selection_cli_keys:
24 CommandLine|contains: # need to improve this list, there are plenty of ASEP reg keys
25 - '\software\Microsoft\Windows\CurrentVersion\Run' # Also covers the strings "RunOnce", "RunOnceEx", "RunServices", "RunServicesOnce"
26 - '\software\WOW6432Node\Microsoft\Windows\CurrentVersion\Run'
27 - '\software\Microsoft\Windows\CurrentVersion\Policies\Explorer\Run'
28 - '\software\Microsoft\Windows NT\CurrentVersion\Winlogon\Userinit'
29 - '\software\Microsoft\Windows NT\CurrentVersion\Winlogon\Shell'
30 - '\software\Microsoft\Windows NT\CurrentVersion\Windows'
31 - '\software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders'
32 - '\system\CurrentControlSet\Control\SafeBoot\AlternateShell'
33 condition: all of selection_*
34fields:
35 - CommandLine
36 - ParentCommandLine
37falsepositives:
38 - Legitimate software automatically (mostly, during installation) sets up autorun keys for legitimate reasons.
39 - Legitimate administrator sets up autorun keys for legitimate reasons.
40 - Discord
41level: medium
References
Related rules
- CurrentVersion Autorun Keys Modification
- CurrentVersion NT Autorun Keys Modification
- New RUN Key Pointing to Suspicious Folder
- Office Autorun Keys Modification
- Wow6432Node CurrentVersion Autorun Keys Modification