Detection rules › Sigma
Suspicious Autorun Registry Modified via WMI
Detects suspicious activity where the WMIC process is used to create an autorun registry entry via reg.exe, which is often indicative of persistence mechanisms employed by malware.
MITRE ATT&CK coverage
| Tactic | Techniques |
|---|---|
| Execution | T1047 Windows Management Instrumentation |
| Persistence | T1547.001 Boot or Logon Autostart Execution: Registry Run Keys / Startup Folder |
| Privilege Escalation | T1547.001 Boot or Logon Autostart Execution: Registry Run Keys / Startup Folder |
Event coverage
| Provider | Event ID | Title |
|---|---|---|
| Sysmon | 1 | Process creation |
Stages and Predicates
Stage 1: all of selection_execution_img
or:
Image|endswith: '\wmic.exe'
OriginalFileName: wmic.exe
ParentImage|endswith: '\wmiprvse.exe'
Stage 2: all of selection_execution_cmd
or:
CommandLine|contains: '\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\Run'
CommandLine|contains: '\Software\Microsoft\Windows\CurrentVersion\Run'
CommandLine|contains: '\Software\WOW6432Node\Microsoft\Windows\CurrentVersion\Run'
CommandLine|contains: ' add '
CommandLine|contains: reg
Stage 3: selection_suspicious_paths_1
or:
CommandLine|contains: '%AppData%'
CommandLine|contains: '%Public%'
CommandLine|contains: '%temp%'
CommandLine|contains: '%tmp%'
CommandLine|contains: ':\$Recycle.bin'
CommandLine|contains: ':\Perflogs'
CommandLine|contains: ':\ProgramData'''
CommandLine|contains: ':\Temp'
CommandLine|contains: ':\Users\Default'
CommandLine|contains: ':\Users\public'
CommandLine|contains: ':\Windows\Temp'
CommandLine|contains: '\AppData\Local\Temp'
CommandLine|contains: '\AppData\Roaming'
Stage 4: all of selection_suspicious_paths_user_1
CommandLine|contains: ':\Users\'
Stage 5: all of selection_suspicious_paths_user_2
or:
CommandLine|contains: '\Contacts'
CommandLine|contains: '\Documents'
CommandLine|contains: '\Favorites'
CommandLine|contains: '\Favourites'
CommandLine|contains: '\Music'
CommandLine|contains: '\Photos'
CommandLine|contains: '\Pictures'
Indicators
Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.
| Field | Kind | Values |
|---|---|---|
CommandLine | match |
|
Image | ends_with |
|
OriginalFileName | eq |
|
ParentImage | ends_with |
|