process injection
Running malicious code inside another, legitimate process, so it hides behind that process's name and permissions.
In more detail
The classic sequence is OpenProcess, VirtualAllocEx, WriteProcessMemory and CreateRemoteThread. In memory it leaves a private, executable region with no file behind it, which malfind looks for.
Related terms
- process hollowing — Starting a legitimate program suspended, replacing its code in memory with malicious code, then letting it run under the original name.
- windows.malfind — A Volatility plugin that looks for memory regions likely to hold injected code: private, executable and not backed by a file.
- VAD — Virtual address descriptor: the Windows kernel's record of each memory region in a process, with its protection and what backs it.
- Windows API — The set of functions Windows provides to programs, such as OpenProcess, VirtualAllocEx, WriteProcessMemory and CreateRemoteThread.
Taught in
- NIST SP 800-61 Incident Lifecycle & Management — Security Operations & Threat Hunting (SOC)
- Memory Forensics: Process Trees & Injection — Security Operations & Threat Hunting (SOC)
- Malware Triage: Hashes, Strings & Sandboxing — Security Operations & Threat Hunting (SOC)