HeartCrypt
- Type
- Crypter
- Capabilities
- Defense evasionProcess injectionPersistenceDLL sideloading
- Delivery
- PhishingLure
- Platforms
- Windows
HeartCrypt is a commercial Windows crypter and packer-as-a-service used by multiple threat actors to conceal and execute malicious payloads. Publicly reported in early 2024, it was used to pack more than 2,000 payloads spanning approximately 45 malware families during its first eight months of operation. Customers submit payloads and receive customized packed binaries. HeartCrypt supports commodity information stealers and remote access trojans, including Lumma Stealer, Rhadamanthys, AsyncRAT, Remcos, and XWorm, as well as tools that disable endpoint security.
HeartCrypt modifies legitimate executables and DLLs by inserting position-independent loader code, redirecting execution flow, and embedding encrypted payloads in resources disguised as bitmap images. Its protections include extensive junk code, convoluted control flow, dynamic API resolution, and sandbox and emulator checks, including checks for Windows Defender emulation artifacts. The loader decrypts embedded payloads in memory and uses process hollowing to execute native Windows and .NET payloads. Optional persistence copies the packed binary to a user-writable location and configures execution at logon. Some variants inflate these copies with substantial null-byte padding.
HeartCrypt-packed malware is distributed through phishing emails, software impersonation, legal-notice lures, password-protected archives, and multistage shortcut and script chains. Some campaigns use DLL sideloading. Activity has been observed internationally, including campaigns affecting Colombia and Italy. Users include APT-C-36, also known as Blind Eagle, and actors associated with Akira and other ransomware operations. HeartCrypt-packed loaders have also deployed the ABYSSWORKER malicious driver in MEDUSA ransomware intrusions. HeartCrypt is shared infrastructure rather than tooling attributable to a single threat actor; credential theft, remote control, and endpoint-security termination depend on the payload it carries.
Associated threat actors
11 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
Ransomware groups have been observed to utilise customised builds of the tool, all of which were packed using the subscription-based HeartCrypt packer-as-a-service.
Ransomware groups have been observed to utilise customised builds of the tool, all of which were packed using the subscription-based HeartCrypt packer-as-a-service.
Ransomware groups have been observed to utilise customised builds of the tool, all of which were packed using the subscription-based HeartCrypt packer-as-a-service.
Ransomware groups have been observed to utilise customised builds of the tool, all of which were packed using the subscription-based HeartCrypt packer-as-a-service.
Ransomware groups have been observed to utilise customised builds of the tool, all of which were packed using the subscription-based HeartCrypt packer-as-a-service.
Ransomware groups have been observed to utilise customised builds of the tool, all of which were packed using the subscription-based HeartCrypt packer-as-a-service.
+5 more in the app. View in Mallory
Techniques & procedures
40 distinct techniques documented for this family, organized by ATT&CK tactic.
Resource Development
1 technique
Resource Development
Adversaries may buy, steal, or download malware that can be used during targeting.
Initial Access
4 techniques
Initial Access
The process trace indicates that the initial infection could be related to the zero-day RCE exploits... which affected ConnectWise and BeyondTrust products.
This infection chain starts with a phishing email... This email claims to be from an Italian lawyer contacting the recipient about alleged copyright infringement... The malicious content was hosted on a Google Drive in a password-protected ZIP archive; the password was included in the phishing email.
The malicious content was hosted on a Google Drive in a password-protected ZIP archive; the password was included in the phishing email.
When clicked on the link to the PDF document, the following shortened URL is opened... This redirects to the following Dropbox download... The message also contains a well-hidden download link — in this case the dot at the end of the text.
Execution
5 techniques
Execution
This PowerShell command downloads and executes another PowerShell script... This script downloads two further files.
[HeartCrypt](https://attack.mitre.org/software/S9018) can use the `reg add` command via `cmd.exe` for Registry modification.(Citation: Palo Alto HeartCrypt DEC 2024)
The identified cases of these campaigns... feature a LNK shortcut file, PowerShell, and batch scripts in the infection chain... The second is a downloader batch file...
[HeartCrypt](https://attack.mitre.org/software/S9018) can use Windows API functions to modify the Registry and `FindResourceW`, `LoadResource`, and `LockResource` to acquire a pointer to corresponding code resources.(Citation: Palo Alto HeartCrypt DEC 2024)
Secondly, HeartCrypt hijacks the control flow within the original binary. This is most often achieved by altering the start() function, the entry point for many executables. The modification typically involves adding a call or jmp instruction which redirects execution to the newly added PIC.
Persistence
5 techniques
Persistence
To modify the registry, HeartCrypt uses either Windows API functions or the reg add command via cmd.exe.
the code uses API functions such as CreateProcessW... to load and execute the final payload.
The malicious.sys driver is installed and loaded as a kernel-mode service by the HEARTCRYPT loader.
[HeartCrypt](https://attack.mitre.org/software/S9018) can set the `CurrentVersion\Run` key to establish persistence.(Citation: Palo Alto HeartCrypt DEC 2024)
The identified cases of these campaigns were targeting Italian victims and feature a LNK shortcut file, PowerShell, and batch scripts in the infection chain... The shortcut file has the icon of a PDF file, but it really executes a PowerShell command.
Privilege Escalation
8 techniques
Privilege Escalation
the code uses API functions such as CreateProcessW, VirtualAlloc, GetThreadContext, NtCreateThreadEx, and CreateRemoteThread to load and execute the final payload.
While process hollowing is the primary method of injection, we have identified a sample that references NtQueueApcThread, suggesting that the developer has invested effort into diversifying the injection methods.
[HeartCrypt](https://attack.mitre.org/software/S9018) has the ability to use `NtQueueApcThread` as an alternate method for process injection.(Citation: Palo Alto HeartCrypt DEC 2024)
For .NET payloads, [HeartCrypt](https://attack.mitre.org/software/S9018) can use process hollowing to inject into processes spawned by csc.exe or AppLaunch.exe.(Citation: Palo Alto HeartCrypt DEC 2024)
the code uses API functions such as CreateProcessW... to load and execute the final payload.
The malicious.sys driver is installed and loaded as a kernel-mode service by the HEARTCRYPT loader.
[HeartCrypt](https://attack.mitre.org/software/S9018) can set the `CurrentVersion\Run` key to establish persistence.(Citation: Palo Alto HeartCrypt DEC 2024)
The identified cases of these campaigns were targeting Italian victims and feature a LNK shortcut file, PowerShell, and batch scripts in the infection chain... The shortcut file has the icon of a PDF file, but it really executes a PowerShell command.
Stealth
21 techniques
Stealth
The injected PIC leverages multiple control flow obfuscation methods to hinder analysis. These include: Stack strings Dynamic API resolution Hundreds of direct jmp instructions Non-returning functions Arithmetic operations that have no effect on program execution Junk bytes after jmp and call instructions, impeding disassembly and decompilation
[HeartCrypt](https://attack.mitre.org/software/S9018) can add several hundred thousand kilobytes of null padding to payloads before saving onto the file system.(Citation: Palo Alto HeartCrypt DEC 2024)
[HeartCrypt](https://attack.mitre.org/software/S9018) can pack malicious Windows x86 and .NET payloads in order to evade detection.(Citation: Palo Alto HeartCrypt DEC 2024)(Citation: Check Point Blind Eagle MAR 2025)
The injected PIC leverages multiple control flow obfuscation methods to hinder analysis. These include: Stack strings Dynamic API resolution...
Encrypted malicious payloads inserted as an additional resource... It also inserts a few additional Portable Executable (PE) resources. These resources are disguised as bitmap files and start with a BMP header, but afterwards the malicious content follows.
[HeartCrypt](https://attack.mitre.org/software/S9018) strings are encrypted via a single-byte XOR operation rotating over a hard-coded key, possibly provided by the PaaS customers. (Citation: Palo Alto HeartCrypt DEC 2024)
Malware impersonating, subverting, and embedding itself in legitimate software applications... The HeartCrypt packer takes legitimate executables and modifies them by injecting malicious code in the .text section.
[HeartCrypt](https://attack.mitre.org/software/S9018) can append a BMP header to encoded malicious payloads to masquerade them as BMP files.(Citation: Palo Alto HeartCrypt DEC 2024)
the code uses API functions such as CreateProcessW, VirtualAlloc, GetThreadContext, NtCreateThreadEx, and CreateRemoteThread to load and execute the final payload.
While process hollowing is the primary method of injection, we have identified a sample that references NtQueueApcThread, suggesting that the developer has invested effort into diversifying the injection methods.
[HeartCrypt](https://attack.mitre.org/software/S9018) has the ability to use `NtQueueApcThread` as an alternate method for process injection.(Citation: Palo Alto HeartCrypt DEC 2024)
For .NET payloads, [HeartCrypt](https://attack.mitre.org/software/S9018) can use process hollowing to inject into processes spawned by csc.exe or AppLaunch.exe.(Citation: Palo Alto HeartCrypt DEC 2024)
When it finds it, it loads the driver and terminates the processes and services from the target list... It also attempts to kill processes such as MsMpEng.exe, SophosHealth.exe, SAVService.exe, and sophosui.exe.
[HeartCrypt](https://attack.mitre.org/software/S9018) can decrypt payloads prior to execution.(Citation: Palo Alto HeartCrypt DEC 2024)(Citation: Check Point Blind Eagle MAR 2025)
the DLL file as a standalone component... is copied to C:\Users\{user}\OneDrive\Documents\AvivaUpdate_0001.dll... and registered for startup with the following command line: rundll32.exe C:\Users\{user}\OneDrive\Documents\AvivaUpdate_0001.dll,EntryPoint
Resource 1: Anti-Dependency Emulation... attempts to load non-existent DLLs via LoadLibraryW... If the sandbox responds by generating a dummy DLL... HeartCrypt will call ExitProcess... Resource 2: Sandbox Loop Emulation Check... If this flag is not set, the process will call ExitProcess. Resource 3: Windows Defender Evasion... If HeartCrypt can load this API from kernel32, it can assume the sample is running within the Defender emulator.
[HeartCrypt](https://attack.mitre.org/software/S9018) will attempt to load non-existent DLLs in attempt to detect sandbox creation of a dummy DLL to prevent the program from crashing.(Citation: Palo Alto HeartCrypt DEC 2024)
Secondly, HeartCrypt hijacks the control flow within the original binary. This is most often achieved by altering the start() function, the entry point for many executables. The modification typically involves adding a call or jmp instruction which redirects execution to the newly added PIC.
Here we see a DynamicShellcode alert... The process trace revealed that the malicious killer was executed from the JWrapper-Remote Access component of SimpleHelp
The resource enters a while loop that performs a large number of mathematical calculations on an initial hard-coded value... The resulting hash is checked against an expected value. If the two values match, the sample will set a flag value within memory to indicate the loop was not emulated or modified in any way. If this flag is not set, the process will call ExitProcess.
Once executed, 8776_6713.exe sits idle for an extended period of time, typically around four to nine minutes, which is a common tactic employed by malware to evade automated sandboxing and heuristic-based detection mechanisms.
Defense Impairment
2 techniques
Defense Impairment
To modify the registry, HeartCrypt uses either Windows API functions or the reg add command via cmd.exe.
ABYSSWORKER provides handlers to "terminate or permanently disable EDR systems," including removing notification callbacks, replacing driver major functions, detaching MiniFilter devices, killing system threads, and restoring NTFS/PNP driver functions.
Discovery
4 techniques
Discovery
It then proceeds to create a run key in the \SOFTWARE\Microsoft\Windows\CurrentVersion\Run registry location.
Resource 1: Anti-Dependency Emulation... attempts to load non-existent DLLs via LoadLibraryW... If the sandbox responds by generating a dummy DLL... HeartCrypt will call ExitProcess... Resource 2: Sandbox Loop Emulation Check... If this flag is not set, the process will call ExitProcess. Resource 3: Windows Defender Evasion... If HeartCrypt can load this API from kernel32, it can assume the sample is running within the Defender emulator.
[HeartCrypt](https://attack.mitre.org/software/S9018) will attempt to load non-existent DLLs in attempt to detect sandbox creation of a dummy DLL to prevent the program from crashing.(Citation: Palo Alto HeartCrypt DEC 2024)
The resource enters a while loop that performs a large number of mathematical calculations on an initial hard-coded value... The resulting hash is checked against an expected value. If the two values match, the sample will set a flag value within memory to indicate the loop was not emulated or modified in any way. If this flag is not set, the process will call ExitProcess.
Collection
1 technique
Collection
The malicious content was hosted on a Google Drive in a password-protected ZIP archive; the password was included in the phishing email... The file that was downloaded from this URL is a ZIP archive.
Command and Control
2 techniques
Command and Control
This PowerShell command downloads and executes another PowerShell script... The downloader batch file... downloads and executes the final payload from: hxxps://www.dropbox[.]com/.../runner.exe
The process trace indicates that the initial infection could be related to the zero-day RCE exploits... which affected ConnectWise and BeyondTrust products.
Observables
31 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
18 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.