Operator On The Wire
Join
← Back to Knowledge Base
BLUE TEAM / THREAT HUNT / WINDOWS / EXECUTION

DLL Attacks

This note documents detection patterns related to DLL Hijacking / DLL Proxying within Windows environments.


Direct Indicators

LogEvent IDMeaningForensic ValueNotes
Sysmon7Image loadedCriticalPrimary telemetry for suspicious DLL load path anomalies.
Sysmon1Process creationCriticalShows vulnerable executable launching before malicious DLL load.
Security4688Process creationHighCorrelates triggering binary and user context.
Sysmon11File createCriticalDetect malicious DLL placement in hijack path.
Sysmon23File deleteMediumCleanup after execution.
Sysmon13Registry value setHighRegistry redirection may support hijack path manipulation.
Sysmon12Registry object create/deleteMediumSide indicator if COM/DLL registration involved.
Sysmon10Process accessMediumSupports chained injection after load.

Indirect Indicators

IndicatorWhat To Look ForForensic ValueNotes
Unsigned DLL loaded from writable pathTemp, user profile, app folderCriticalStrong hijack signal.
Legitimate EXE loads DLL from local directoryLocal folder before system pathCriticalClassic search order abuse.
New DLL beside signed binarySame timestamp proximityCriticalVery common hijack pattern.
DLL name matches known dependencyVersion.dll, winmm.dll, dbghelp.dllHighFrequent attacker choice.
Process starts then outbound connection beginsDLL payload activates beaconHighCommon proxy DLL behavior.
Legitimate app crashes but child survivesProxy DLL exports partial functionsMediumOperational clue.
Rare DLL loaded by signed binaryBaseline deviationHighValuable in EDR hunts.

Common Tools

ToolUsage
rundll32.exeTrigger malicious DLL directly
regsvr32.exeRegister proxy DLL
custom loaderLaunch signed vulnerable EXE
ProcMonObserve DLL load order
Process ExplorerLoaded module inspection
PowerShellDrop DLL into target path
accesschk.exeVerify writable folders

Relevant Artifacts

  • Sysmon Event ID 7
  • Sysmon Event ID 11
  • Sysmon Event ID 1
  • Security Event ID 4688
  • Prefetch for triggering EXE
  • Amcache for dropped DLL
  • ShimCache for execution history
  • MFT / USN Journal for DLL creation
  • PE metadata of malicious DLL
  • Export table anomalies
  • EDR module load telemetry

MITRE ATT&CK References

  • T1574.001 DLL Search Order Hijacking
  • T1574.002 DLL Side-Loading
  • T1218 Signed Binary Proxy Execution

Decision Tree

  1. Which executable loaded suspicious DLL?

    • Parent process
    • Signed status
  2. DLL path expected?

    • System32?
    • App folder?
    • User-writable path?
  3. DLL signed?

    • Hash
    • Signature
    • Export table
  4. Was DLL recently dropped?

    • Check Sysmon 11
    • MFT timeline
  5. Expand:

    • Network activity
    • Child processes
    • Persistence
  6. Scope:

    • Single binary abuse
    • Multiple hosts
    • Shared payload

Example Detection Templates

KQL

Sysmon
| where EventID == 7
| where ImageLoaded !startswith @"C:\Windows\System32"
| project TimeGenerated, Computer, Image, ImageLoaded, Signed
Sysmon
| where EventID == 11
| where TargetFilename endswith ".dll"
| project TimeGenerated, Computer, User, TargetFilename

EQL

library where dll.path like "C:\\Users\\%\\*.dll"
sequence by host.name with maxspan=5m
  [ file where file.path like "*.dll" ]
  [ process where process.name != null ]

Sigma

title: DLL Hijacking Or Proxying Detection
id: a8d3c991-dll-hijack
status: experimental
description: Detects suspicious DLL load outside expected system paths
references:
  - https://attack.mitre.org/
author: Vergil
date: 2026-03-07
logsource:
  product: windows
  service: sysmon
detection:
  selection:
    EventID: 7
  filter:
    ImageLoaded|startswith: 'C:\Windows\System32'
  condition: selection and not filter
fields:
  - Image
  - ImageLoaded
falsepositives:
  - Portable applications
level: high
tags:
  - attack.persistence
  - attack.t1574.001

Mitigation & Hardening

Control AreaMitigationEffectivenessNotes
Safe DLL search modeKeep enabledCriticalReduces local hijack abuse
Folder ACLsRemove write access near signed binariesCriticalCore defense
Sysmon module loggingEnable Event 7 selectivelyHighRequired visibility
Application allowlistingWDAC / AppLockerHighRestrict rogue DLL load
Baseline signed modulesKnow expected modulesHighDetect drift quickly