Detection rules › Sigma
Potential Initial Access via DLL Search Order Hijacking
Detects attempts to create a DLL file to a known desktop application dependencies folder such as Slack, Teams or OneDrive and by an unusual process. This may indicate an attempt to load a malicious module via DLL search order hijacking.
MITRE ATT&CK coverage
| Tactic | Techniques |
|---|---|
| Initial Access | T1566 Phishing, T1566.001 Phishing: Spearphishing Attachment |
| Persistence | T1574 Hijack Execution Flow, T1574.001 Hijack Execution Flow: DLL |
| Privilege Escalation | T1574 Hijack Execution Flow, T1574.001 Hijack Execution Flow: DLL |
| Defense Evasion | T1574 Hijack Execution Flow, T1574.001 Hijack Execution Flow: DLL |
Event coverage
| Provider | Event ID | Title |
|---|---|---|
| Sysmon | 11 | FileCreate |
Stages and Predicates
Stage 1: selection
or:
Image|endswith: '\MSACCESS.EXE'
Image|endswith: '\MSPUB.EXE'
Image|endswith: '\certutil.exe'
Image|endswith: '\cmd.exe'
Image|endswith: '\cscript.exe'
Image|endswith: '\curl.exe'
Image|endswith: '\excel.exe'
Image|endswith: '\fltldr.exe'
Image|endswith: '\mshta.exe'
Image|endswith: '\powerpnt.exe'
Image|endswith: '\powershell.exe'
Image|endswith: '\pwsh.exe'
Image|endswith: '\winword.exe'
Image|endswith: '\wscript.exe'
or:
TargetFilename|contains: '\Local\Programs\Microsoft VS Code\'
TargetFilename|contains: '\Local\slack\app-'
TargetFilename|contains: '\Microsoft OneDrive\'
TargetFilename|contains: '\Microsoft\OneDrive\'
TargetFilename|contains: '\Microsoft\Teams\'
TargetFilename|endswith: .dll
TargetFilename|contains: '\AppData\'
TargetFilename|contains: '\Users\'
Stage 2: not filter
Image|endswith: '\cmd.exe'
TargetFilename|contains: '\AppData\'
TargetFilename|contains: '\Microsoft\OneDrive\'
TargetFilename|contains: '\Users\'
TargetFilename|contains: '\api-ms-win-core-'
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 |
|---|---|---|
Image | ends_with |
|
TargetFilename | ends_with |
|
TargetFilename | match |
|