**1-MITRE ATT&CK**

2-MITRE ATT&CK

First What is a DLL (Dynamic-Link Library)?

A Dynamic-Link Library (DLL) is a shared code module used by Windows applications to perform functions without embedding the code in the main executable. DLLs contain code, data, and resources (icons, fonts, dialogs) that multiple programs can use simultaneously, reducing memory usage and redundancy.


Examples of common DLLs:


DLL (Dynamic-Link Library) hijacking

DLL Hijacking occurs when attackers place a malicious DLL in a location that is loaded instead of the legitimate one. Windows follows a search order to locate DLLs, which attackers exploit for code execution.

There are two main types:

1- Search Order Hijacking – Malicious DLL placed in a directory that Windows checks before the legitimate DLL.

2- DLL Side-Loading – Malicious DLL placed alongside a trusted executable that automatically loads it.

Screenshot 2025-02-23 084838.png


Examples

Example 1: Search Order Hijacking