Cross-source coverage
T1038 / ATT&CK
DLL Search Order Hijacking
ATT&CK has retired this technique. Rules still tag it; the current id is T1574.001 Hijack Execution Flow: DLL.
10 rules · 8 families across 2 sources.
Showing deprecated rules · back to the default
From MITRE ATT&CK 19.2
Windows systems use a common method to look for required DLLs to load into a program. Adversaries may take advantage of the Windows DLL search order and programs that ambiguously specify DLLs to gain privilege escalation and persistence.
Adversaries may perform DLL preloading, also called binary planting attacks, by placing a malicious DLL with the same name as an ambiguously specified DLL in a location that Windows searches before the legitimate DLL. Often this location is the current working directory of the program. Remote DLL preloading attacks occur when a program sets its current directory to a remote location such as a Web share before loading a DLL. Adversaries may use this behavior to cause the program to load a malicious DLL.
Adversaries may also directly modify the way a program loads DLLs by replacing an existing DLL or modifying a.manifest or.local redirection file, directory, or junction to cause the program to load a different DLL to maintain persistence or privilege escalation.
If a search order-vulnerable program is configured to run at a higher privilege level, then the adversary-controlled DLL that is loaded will also be executed at the higher level. In this case, the technique could be used for privilege escalation from user to administrator or SYSTEM or from administrator to SYSTEM, depending on the program.
Programs that fall victim to path hijacking may appear to behave normally because malicious DLLs may be configured to also load the legitimate DLLs they were meant to replace.
- Tactics
- Persistence · Privilege Escalation · Stealth
- Platforms
- Windows
- Telemetry
- —
Emerging Threats Open
5 rules · 3 familieschronicle/detection-rules
5 rules| Detection | Severity | Format |
|---|---|---|
| acer_quick_access__dll_searchorder_hijacking_and_potential_abuses | Undefined | YARA-L |
| avg_antivirus__avast_antivirus_dll_search_order_hijacking_and_potential_abuses | Undefined | YARA-L |
| code42_server_dll_search_order_hijack | Undefined | YARA-L |
| notepadexe_dll_search_order_hijackingsysmon | Undefined | YARA-L |
| offensive_tool_maliciousdllgenerator_dll_side_loadingsysmon | Undefined | YARA-L |