Windows DLL Search Order Hijacking: Suspicious DLL Writes to App Dependency Folders

Alerts on suspicious .dll file creation by Office/cmd/scripting processes in AppData and OneDrive/Teams/Slack/VS Code directories.

FreeReviewedSigma · Medium · v2
Product
windows
Category
file_event
Author
Tim Rauch (rule), Elastic (idea) (SigmaHQ), DRL 1.1
Published
2022-10-21
Updated
2026-07-31

ATT&CK techniques

Initial Access → Defense Evasion
  1. Recon

  2. Resource Dev

  3. Cred Access

  4. Discovery

  5. Lateral Movement

  6. Collection

  7. C2

  8. Exfiltration

  9. Impact

What it detects

This rule flags Windows file creation events where a process associated with Office and common script/download utilities writes a .dll into a Users\AppData directory under known application dependency locations (e.g., OneDrive, Teams, Slack, or VS Code). Writing a malicious DLL into such search paths can enable DLL search order hijacking when the target application loads modules. The detection relies on telemetry from Windows file events capturing the creating process image path and the target DLL filename and directory.

Related detections9 linkedT1574.001 — drag to rearrange
Suspicious Process Execution by Microsoft OneNote on Windows Child Programs
Windows Process Creation: Suspicious Children Spawned by HTML Help (hh.exe)
Windows: Alert on Suspicious HH.EXE Process Execution
Suspicious DLL Sideloading via msdtc oci.dll Install (via process_creation)
Suspicious wmicodegen.dll Sideload by inetinfo.exe (UAT-8099 Cobalt Strike)
Suspicious LucidRook DismCore.dll Side-Load into Browser Process
Suspicious Encrypted Implant File Creation for DLL Search Order Hijacking (RainyDay Turian PlugX)
Suspicious RoboForm Signed Binary Executed From Non-Standard Path (via process_creation)
Malicious dal_keepalives.dll Sideloaded By Signed Binary (via image_load)
Windows DLL Search Order Hijacking: Suspicious DLL Writes to App Dependency Folders
Pivot detection · T1574.001 · 9 related

Changelog

v2
  1. v2
    Candidate ingested via manual entry.2026-07-31
  2. v1
    No changelog recorded for this version.2026-07-30

Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.