Process Hollowing

T1055.012

Sub-technique of T1055 Process Injection.View on attack.mitre.org

About this technique

Adversaries may inject malicious code into suspended and hollowed processes in order to evade process-based defenses. Process hollowing is a method of executing arbitrary code in the address space of a separate live process.

Process hollowing is commonly performed by creating a process in a suspended state then unmapping/hollowing its memory, which can then be replaced with malicious code. A victim process can be created with native Windows API calls such as CreateProcess, which includes a flag to suspend the processes primary thread. At this point the process can be unmapped using APIs calls such as ZwUnmapViewOfSection or NtUnmapViewOfSection before being written to, realigned to the injected code, and resumed via VirtualAllocEx, WriteProcessMemory, SetThreadContext, then ResumeThread respectively.

This is very similar to Thread Local Storage but creates a new process rather than targeting an existing process. This behavior will likely not result in elevated privileges since the injected process was spawned from (and thus inherits the security context) of the injecting process. However, execution via process hollowing may also evade detection from security products since the execution is masked under a legitimate process.

Detection rules5

Rules on DetectionCode tagged with T1055.012.

Sigma4

RuleLevelLog source
HackTool - CACTUSTORCH Remote Thread Creationhighwindows / create_remote_thread
HackTool - HollowReaper Executionhighwindows / process_creation
Uncommon Svchost Command Line Parameterhighwindows / process_creation
Potential Process Hollowing Activitymediumwindows / process_tampering

Splunk1

RuleTypeRiskData source
PowerShell PInvoke Process Injection API ChainTTPNULLPowershell Script Block Logging 4104

Groups8

Software35

Show 11 more

Campaigns0

None recorded.

Procedure examples43

Groups8

Used byProcedure example
GroupAPT-C-36

APT-C-36 has used process hollowing to execute malware in the memory of legitimate processes.

GroupBlackByte

BlackByte used process hollowing for defense evasion purposes.

GroupGorgon Group

Gorgon Group malware can use process hollowing to inject one of its trojans into another process.

GroupKimsuky

Kimsuky has used a file injector DLL to spawn a benign process on the victim's system and inject the malicious payload into it via process hollowing.

GroupmenuPass

menuPass has used process hollowing in iexplore.exe to load the RedLeaves implant.

GroupPatchwork

A Patchwork payload uses process hollowing to hide the UAC bypass vulnerability exploitation inside svchost.exe.

GroupTA2541

TA2541 has used process hollowing to execute CyberGate malware.

GroupThreat Group-3390

A Threat Group-3390 tool can spawn `svchost.exe` and inject the payload into that process.

Software35

Used byProcedure example
MalwareAgent Tesla

Agent Tesla has used process hollowing to create and manipulate processes through sections of unmapped memory by reallocating that space with its malicious code.

MalwareAstaroth

Astaroth can create a new process in a suspended state from a targeted legitimate process in order to unmap its memory and replace it with malicious code.

MalwareAzorult

Azorult can decrypt the payload into memory, create a new suspended process of itself, then inject a decrypted payload to the new process and resume new process execution.

MalwareBADNEWS

BADNEWS has a command to download an .exe and use process hollowing to inject it into a new process.

MalwareBandook

Bandook has been launched by starting iexplore.exe and replacing it with Bandook's payload.

MalwareBazar

Bazar can inject into a target process including Svchost, Explorer, and cmd using process hollowing.

MalwareBBSRAT

BBSRAT has been seen loaded into msiexec.exe through process hollowing to hide its execution.

MalwareCaminho

Caminho has launched and hollowed out MSBuild.exe to host malicious code.

View all 35 software examples

References2

  1. Elastic Process Injection July 2017 Open source
    Hosseini, A. (2017, July 18). Ten Process Injection Techniques: A Technical Survey Of Common And Trending Process Injection Techniques. Retrieved December 7, 2017.
  2. Leitch Hollowing Open source
    Leitch, J. (n.d.). Process Hollowing. Retrieved September 12, 2024.

Data from MITRE ATT&CK® (Enterprise). ATT&CK® is a registered trademark of The MITRE Corporation.