DLL
A dynamic-link library: a file of compiled code, named with the .dll extension, that programs load at run time.
In more detail
On Windows, native DLLs hold machine code shared between programs. In .NET, compiled assemblies also use the .dll extension on every operating system, whether they are applications or libraries.
Examples
dotnet Hello.dllNormal code in a process is image-mapped from its EXE and the DLLs it loads.Related terms
- assembly — The compiled unit of a .NET program: a file (usually a .dll) containing intermediate language plus metadata describing every type inside it.
- OutputType — The project property that says whether the build produces a runnable program (Exe) or a library (Library) for other projects to reference.
- Portable Executable — The file format of Windows programs and libraries (.exe and .dll files), with headers that describe code, data and imported functions.
- rundll32.exe — A Windows program that runs a function from a DLL, often misused by attackers to run malicious DLLs under a trusted name.
- import table — The part of a PE file that lists the DLLs and functions the program calls from Windows, such as VirtualAllocEx from kernel32.dll.
Taught in
- What is .NET? Runtime vs SDK, and LTS vs STS — Modern .NET Core, C# & Enterprise Microservices
- Memory Forensics: Process Trees & Injection — Security Operations & Threat Hunting (SOC)
- Indicators: Malware And Physical Attacks — CompTIA Security+ (SY0-801) Exam Prep