Sigma rule: Potential Initial Access via DLL Search Order Hijacking
A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-e3f98afd2cb5, updated 2022-10-21T00:00:00.000Z.
Rule
- Title
- Potential Initial Access via DLL Search Order Hijacking
- Status
- test
- Level
- medium
- Author
- Tim Rauch (rule), Elastic (idea)
- Date
- 2022-10-21
- File
- rules/windows/file/file_event/file_event_win_initial_access_dll_search_order_hijacking.yml
- Commit
- ccbb0369507f796db0b0ae6854c8a2be471b9d84
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.
Log source
- product
- windows
- category
- file_event
Detection
selection:
Image|endswith:
# add more processes when you find them
- '\winword.exe'
- '\excel.exe'
- '\powerpnt.exe'
- '\MSACCESS.EXE'
- '\MSPUB.EXE'
- '\fltldr.exe'
- '\cmd.exe'
- '\certutil.exe'
- '\mshta.exe'
- '\cscript.exe'
- '\wscript.exe'
- '\curl.exe'
- '\powershell.exe'
- '\pwsh.exe'
TargetFilename|endswith: '.dll'
TargetFilename|contains|all:
- '\Users\'
- '\AppData\'
TargetFilename|contains:
# add more suspicious paths when you find them
- '\Microsoft\OneDrive\'
- '\Microsoft OneDrive\'
- '\Microsoft\Teams\'
- '\Local\slack\app-'
- '\Local\Programs\Microsoft VS Code\'
filter:
Image|endswith: '\cmd.exe'
TargetFilename|contains|all:
- '\Users\'
- '\AppData\'
- '\Microsoft\OneDrive\'
- '\api-ms-win-core-'
condition: selection and not filterFalse positives (as the rule lists them)
- Unknown
Tags
- attack.privilege-escalation
- attack.persistence
- attack.execution
- attack.stealth
- attack.t1566
- attack.t1566.001
- attack.initial-access
- attack.t1574
- attack.t1574.001
MITRE ATT&CK ids this rule names
References
- https://github.com/elastic/protections-artifacts/commit/746086721fd385d9f5c6647cada1788db4aea95f#diff-5d46dd4ac6866b4337ec126be8cee0e115467b3e8703794ba6f6df6432c806bc
- https://posts.specterops.io/automating-dll-hijack-discovery-81c4295904b0
Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/file/file_event/file_event_win_initial_access_dll_search_order_hijacking.yml
Sources and licences
SigmaHQ
"Potential Initial Access via DLL Search Order Hijacking" by Tim Rauch (rule), Elastic (idea) (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/file/file_event/file_event_win_initial_access_dll_search_order_hijacking.yml.
Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License
Cite this page
Dragons Eye Ransomware Tracker, "Sigma rule: Potential Initial Access via DLL Search Order Hijacking",
entity page, dataset version ref-e3f98afd2cb5, updated 2022-10-21T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/dbbd9f66-2ed3-4ca2-98a4-6ea985dd1a1c (accessed 2026-11-03).
Underlying source: SigmaHQ rule dbbd9f66-2ed3-4ca2-98a4-6ea985dd1a1c, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.
Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.