
C# based tool which automates the process of discovering and exploiting DLL Hijacks in target binaries. The Hijacked paths discovered can later be weaponized during Red Team Operations to evade EDR's.
C# based tool which automates the process of discovering and exploiting DLL Hijacks in target binaries. The Hijacked paths discovered can later be weaponized during RedTeam Operations to evade EDR's.
The tool basically acts on automating following stages performed for DLL Hijacking:
Discovery Methodology :
Exploitation Methodology :
Parse Potentially Vulnerable DLL Hijack paths from CSV generated automatically via ProcMon.
Copy the Confirmatory DLL (as per the PE architecture) to the hijack paths one by one and execute the Target Binary for predefined time period simultaneously.
As the DLL hijacking process is in progress following are the outputs which can be gathered from the Hijack Scenario:
Entry Point Not Found Scenarios:
Note: The "Entry Point not found" Error is been handled by the code programmatically no need to close the MsgBox manually :) # Rather this would crash the code further****
Once the DLL Hijacking process is completed for every Potentially Vulnerable DLL Hijack path we get the final output on the console as well as in a text file (C:\DLLLogs\output_logs.txt) in the following format:
**These Confirmed DLL Hijackable paths can later be weaponized during a Red Team Engagement to load a Malicious DLL Implant via a legitimate executable (such as OneDrive,Firefox,MSEdge,"Bring your own LOLBINs" etc.) and bypass State of the art EDR's as most of them fail to detect DLL Hijacking as assessed by George Karantzas and Constantinos Patsakis as mentioned in there research paper: https://arxiv.org/abs/2108.10422
Note: i & ii prerequisites should be placed in the ImpulsiveDLLHijacks.exe's directory itself.
Build and Setup Information:
ImpulsiveDLLHijack
And for Confirmatory DLL's:
Setup: Copy the Confirmatory DLL's (maldll32 & maldll64) in the ImpulsiveDLLHijack.exe directory & then execute ImpulsiveDLLHijack.exe :))

Target Executable: OneDrive.exe
Stage: Discovery

Stage: Exploitation




Stage: Final Results and Logs

Thankyou, Feedback would be greatly appreciated! - knight!