Cross-source coverage

T1055.001 / ATT&CK

Process Injection: Dynamic-link Library Injection

14 rules across 4 sources.

1 atomic-IOC hidden · include

From MITRE ATT&CK 19.2

Adversaries may inject dynamic-link libraries (DLLs) into processes in order to evade process-based defenses as well as possibly elevate privileges. DLL injection is a method of executing arbitrary code in the address space of a separate live process.

DLL injection is commonly performed by writing the path to a DLL in the virtual address space of the target process before loading the DLL by invoking a new thread. The write can be performed with native Windows API calls such as VirtualAllocEx and WriteProcessMemory, then invoked with CreateRemoteThread (which calls the LoadLibrary API responsible for loading the DLL).

Variations of this method such as reflective DLL injection (writing a self-mapping DLL into a process) and memory module (map DLL when writing into process) overcome the address relocation issue as well as the additional APIs to invoke execution (since these methods load and execute the files in memory by manually preforming the function of LoadLibrary).

Another variation of this method, often referred to as Module Stomping/Overloading or DLL Hollowing, may be leveraged to conceal injected code within a process. This method involves loading a legitimate DLL into a remote process then manually overwriting the module's AddressOfEntryPoint before starting a new thread in the target process. This variation allows attackers to hide malicious injected code by potentially backing its execution with a legitimate DLL file on disk.

Running code in the context of another process may allow access to the process's memory, system/network resources, and possibly elevated privileges. Execution via DLL injection may also evade detection from security products since the execution is masked under a legitimate process.

Platforms
Windows
Telemetry
WinEventLog:Sysmon

How MITRE says to detect it DET0389

Behavioral Detection of DLL Injection via Windows API

Windows Analytic 1095

Detects DLL injection through correlation of memory allocation and writing to remote process memory (e.g., VirtualAllocEx, WriteProcessMemory), followed by remote thread creation (e.g., CreateRemoteThread) that loads a suspicious or unsigned DLL using LoadLibrary or reflective loading.

  • WinEventLog:Sysmon EventCode=10
  • WinEventLog:Sysmon EventCode=1
  • WinEventLog:Sysmon EventCode=7
  • WinEventLog:Sysmon EventCode=17

SigmaHQ/sigma

7 rules
Detection Severity Format
HackTool - Potential CobaltStrike Process Injection High Sigma
ManageEngine Endpoint Central Dctask64.EXE Potential Abuse High Sigma
Mavinject Inject DLL Into Running Process High Sigma
Renamed Mavinject.EXE Execution High Sigma
TAIDOOR RAT DLL Load High Sigma
CreateRemoteThread API and LoadLibrary Medium Sigma
Potential DLL Injection Or Execution Using Tracker.exe Medium Sigma

splunk/security_content

4 rules
Detection Severity Format
Loading Of Dynwrapx Module Undefined SPL
PowerShell PInvoke Process Injection API Chain Undefined SPL
Windows Rasautou DLL Execution Undefined SPL
Windows Uncommon Remote Thread Creation In Browser Process Undefined SPL

elastic/detection-rules

2 rules
Detection Severity Format
Potential Process Injection via PowerShell High Elastic TOML
Suspicious .NET Reflection via PowerShell Medium Elastic TOML

elastic/protections-artifacts

1 rule
Detection Severity Format
Potential Privilege Escalation via SetWindowsHook DLL Injection Undefined Elastic TOML

Detection rules belong to the projects that publish them and remain under their own licenses. This site indexes and links to them; it claims no rights in them.