Stealth Privilege Escalation

T1055.012: Process Hollowing

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...

T1055.012 · Sub-technique ·1 platforms ·8 groups

Description

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.(Citation: Leitch Hollowing)(Citation: Elastic Process Injection July 2017)

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.

Platforms

Windows

Mitigations (1)

Behavior Prevention on EndpointM1040

Some endpoint security solutions can be configured to block some types of process injection based on common sequences of behavior that occur during the injection process.

Threat Groups (8)

IDGroupContext
G0078Gorgon Group[Gorgon Group](https://attack.mitre.org/groups/G0078) malware can use process hollowing to inject one of its trojans into another process.(Citation: U...
G0027Threat Group-3390A [Threat Group-3390](https://attack.mitre.org/groups/G0027) tool can spawn `svchost.exe` and inject the payload into that process.(Citation: Nccgroup...
G0040PatchworkA [Patchwork](https://attack.mitre.org/groups/G0040) payload uses process hollowing to hide the UAC bypass vulnerability exploitation inside svchost.e...
G1043BlackByte[BlackByte](https://attack.mitre.org/groups/G1043) used process hollowing for defense evasion purposes.(Citation: Microsoft BlackByte 2023)
G1018TA2541[TA2541](https://attack.mitre.org/groups/G1018) has used process hollowing to execute CyberGate malware.(Citation: Cisco Operation Layover September 2...
G0045menuPass[menuPass](https://attack.mitre.org/groups/G0045) has used process hollowing in iexplore.exe to load the [RedLeaves](https://attack.mitre.org/software...
G0094Kimsuky[Kimsuky](https://attack.mitre.org/groups/G0094) has used a file injector DLL to spawn a benign process on the victim's system and inject the maliciou...
G0099APT-C-36[APT-C-36](https://attack.mitre.org/groups/G0099) has used process hollowing to execute malware in the memory of legitimate processes.(Citation: Kaspe...

Associated Software (35)

IDNameTypeContext
S0483IcedIDMalware[IcedID](https://attack.mitre.org/software/S0483) can inject a [Cobalt Strike](https://attack.mitre.org/software/S0154) beacon into cmd.exe via proces...
S1207XLoaderMalware[XLoader](https://attack.mitre.org/software/S1207) uses process hollowing by injecting itself into the `explorer.exe` process and other files ithin th...
S0662RCSessionMalware[RCSession](https://attack.mitre.org/software/S0662) can launch itself from a hollowed svchost.exe process.(Citation: Secureworks BRONZE PRESIDENT Dec...
S0354DenisMalware[Denis](https://attack.mitre.org/software/S0354) performed process hollowing through the API calls CreateRemoteThread, ResumeThread, and Wow64SetThrea...
S1065Woody RATMalware[Woody RAT](https://attack.mitre.org/software/S1065) can create a suspended notepad process and write shellcode to delete a file into the suspended pr...
S0344AzorultMalware[Azorult](https://attack.mitre.org/software/S0344) can decrypt the payload into memory, create a new suspended process of itself, then inject a decryp...
S0650QakBotMalware[QakBot](https://attack.mitre.org/software/S0650) can use process hollowing to execute its main payload.(Citation: ATT QakBot April 2021)
S0154Cobalt StrikeMalware[Cobalt Strike](https://attack.mitre.org/software/S0154) can use process hollowing for execution.(Citation: Cobalt Strike TTPs Dec 2017)(Citation: Cob...
S9018HeartCryptMalwareFor .NET payloads, [HeartCrypt](https://attack.mitre.org/software/S9018) can use process hollowing to inject into processes spawned by csc.exe or AppL...
S0447LokibotMalware[Lokibot](https://attack.mitre.org/software/S0447) has used process hollowing to inject itself into legitimate Windows process.(Citation: Infoblox Lok...
S1086Snip3Malware [Snip3](https://attack.mitre.org/software/S1086) can use RunPE to execute malicious payloads within a hollowed Windows process.(Citation: Morphisec S...
S0234BandookMalware[Bandook](https://attack.mitre.org/software/S0234) has been launched by starting iexplore.exe and replacing it with [Bandook](https://attack.mitre.org...
S1213Lumma StealerMalware[Lumma Stealer](https://attack.mitre.org/software/S1213) has used process hollowing leveraging a legitimate program such as “BitLockerToGo.exe” to inj...
S9016CaminhoMalware[Caminho](https://attack.mitre.org/software/S9016) has launched and hollowed out MSBuild.exe to host malicious code.(Citation: Zscaler BlindEagle DEC ...
S1130Raspberry RobinMalware[Raspberry Robin](https://attack.mitre.org/software/S1130) will execute a legitimate process, then suspend it to inject code for a [Tor](https://attac...
S0226Smoke LoaderMalware[Smoke Loader](https://attack.mitre.org/software/S0226) spawns a new copy of c:\windows\syswow64\explorer.exe and then replaces the executable code in...
S0373AstarothMalware[Astaroth](https://attack.mitre.org/software/S0373) can create a new process in a suspended state from a targeted legitimate process in order to unmap...
S0567DtrackMalware[Dtrack](https://attack.mitre.org/software/S0567) has used process hollowing shellcode to target a predefined list of processes from <code>%SYSTEM32%<...
S0689WhisperGateMalware[WhisperGate](https://attack.mitre.org/software/S0689) has the ability to inject its fourth stage into a suspended process created by the legitimate W...
S9012TRAILBLAZEMalware[TRAILBLAZE](https://attack.mitre.org/software/S9012) has injected a hook into an existing process to load [BRUSHFIRE](https://attack.mitre.org/softwa...

Related CWE Weaknesses

References

Frequently Asked Questions

What is T1055.012 (Process Hollowing)?

T1055.012 is a MITRE ATT&CK technique named 'Process Hollowing'. It belongs to the Stealth, Privilege Escalation tactic(s). 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...

How can T1055.012 be detected?

Detection of T1055.012 (Process Hollowing) typically involves monitoring system logs, network traffic, and endpoint telemetry. Use SIEM rules, EDR solutions, and behavioral analytics to identify suspicious activity associated with this technique.

What mitigations exist for T1055.012?

There are 1 documented mitigations for T1055.012. Key mitigations include: Behavior Prevention on Endpoint.

Which threat groups use T1055.012?

Known threat groups using T1055.012 include: Gorgon Group, Threat Group-3390, Patchwork, BlackByte, TA2541, menuPass, Kimsuky, APT-C-36.