Skip to main content
Mallory
Malware2 associated actors3 associated CVEs

BUGHATCH

Tracked since Nov 25, 2025 · Updated 3 months ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
Vulns3Associated
Actors2Associated
ATT&CK29Techniques
IOCs16Tracked
Type
Backdoor
Capabilities
ExfiltrationPrivilege escalationPost exploitationDefense evasionReconnaissanceProcess injection
Delivery
Phishing
Platforms
Windows

BUGHATCH is a custom Windows command-and-control implant and backdoor associated with Cuba ransomware operations, which Mandiant tracks as UNC2596. First observed in Cuba campaigns during February 2022, it is used for staging, payload delivery, host profiling, and operator-directed execution before ransomware deployment and data-extortion activity. It has been deployed through the memory-only TERMITE PowerShell dropper, which retrieves shellcode and an encrypted implant that is reflectively loaded into memory.

BUGHATCH profiles compromised hosts by collecting system, network-interface, user, token-group, process, and platform information. It communicates with command-and-control infrastructure over HTTP or HTTPS, using a custom protocol and a per-session XOR layer to protect transmitted profiling data and command output. The implant supports execution of command-shell and PowerShell commands, local and remote shellcode, payloads stored on disk, and reflectively loaded PE files and DLLs. It can create suspended processes, inject and execute payloads within them, impersonate or duplicate access tokens, spawn additional agents, terminate processes, migrate command-and-control, and remove itself.

Cuba operators have used BUGHATCH alongside commodity post-exploitation tooling and other bespoke components in intrusions affecting organizations including retailers and manufacturers in North America and Europe. Cuba activity has also targeted critical-infrastructure sectors. Initial compromise in associated operations has commonly involved exploitation of public-facing services, particularly Microsoft Exchange vulnerabilities; BUGHATCH is a post-compromise implant rather than the demonstrated initial-access mechanism.

Is this in your environment?See whether this family's indicators match your telemetry and which of your assets are exposed to the CVEs associated with it.
Check your exposure
Associated CVEs

Associated vulnerabilities

3 CVEs Mallory has correlated with this family across public research and vendor advisories. Each card links to the full Mallory page for that vulnerability.

CVE-2023-27532via securityscorecard researchExploited in the wildUnauthenticated Credential Disclosure in Veeam Backup & ReplicationThe report highlighted a novel feature of the Cuba group’s operations, exploitation of CVE-2023-27532, a vulnerability affecting Veeam Backup & Replication software.View vulnerability →Source ↗
CVE-2021-26855via elastic security labsExploited in the wildProxyLogon SSRF in Microsoft Exchange ServerWe observed the execution of the ProxyLogon exploit. Previous research has observed this threat group leveraging ProxyLogon and ProxyShell vulnerabilities to gain initial access.View vulnerability →Source ↗
CVE-2021-34473via elastic security labsExploited in the wildProxyShell: Microsoft Exchange Server Pre-authentication Path ConfusionPrevious research has observed this threat group leveraging ProxyLogon and ProxyShell vulnerabilities to gain initial access.View vulnerability →Source ↗
Threat actors

Associated threat actors

2 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.

View more details →
RomCom

"BUGHATCH is the name given to a Cuba Ransomware associated downloader" and Elastic assessed Agent32.bin to be BUGHATCH malware.

via elastic security labselastic.co
REF9019

"BUGHATCH is the name given to a Cuba Ransomware associated downloader" and Elastic assessed Agent32.bin to be BUGHATCH malware.

via elastic security labselastic.co
MITRE ATT&CK

Techniques & procedures

29 distinct techniques documented for this family, organized by ATT&CK tactic.

Initial Access

1 technique
T1190Exploit Public-Facing ApplicationEvidence2

The report highlighted a novel feature of the Cuba group’s operations, exploitation of CVE-2023-27532, a vulnerability affecting Veeam Backup & Replication software.

Execution

3 techniques
T1059.001PowerShellEvidence5

"BUGHATCH was launched via PowerShell script stagers" including agsyst82.ps1 and komar2.ps1, which downloaded Agent32.bin and attempted injection into svchost.exe.

T1059.003Windows Command ShellEvidence2

ExecuteCmd executes a CMD script/command; SelfDeleteExitProcess invokes "cmd.exe /c del FILEPATH >> NUL".

T1106Native APIEvidence2

The loader and implant use Windows APIs including VirtualAlloc, CreateThread, VirtualAllocEx, WriteProcessMemory, SetThreadContext, ResumeThread, and CreateRemoteThread.

Persistence

1 technique
T1543.003Windows ServiceEvidence1

the malware creates a suspended svchost.exe process with CreateProcessA API

Privilege Escalation

10 techniques
T1055Process InjectionEvidence2

BUGHATCH creates suspended cmd.exe or svchost.exe processes, writes shellcode and encrypted PE payloads into their memory, sets thread context, and resumes execution.

T1055.001Dynamic-link Library InjectionEvidence1

ReflectivelyLoadDllRemote allocates memory with VirtualAllocEx, writes a DLL with WriteProcessMemory, and creates a remote thread using CreateRemoteThread.

T1055.002Portable Executable InjectionEvidence1

ReflectivelyExecutePERemote and Command 3 load PE binaries in the memory space of a created suspended process.

T1055.003Thread Execution HijackingEvidence1

The malware creates a suspended process, sets the suspended thread instruction pointer with SetThreadContext, then calls ResumeThread to execute injected shellcode.

T1055.012Process HollowingEvidence2

For Command 3, BUGHATCH creates a suspended cmd.exe or svchost.exe process, allocates remote memory, writes a loader and encrypted PE, redirects execution, and resumes the process.

T1134Access Token ManipulationEvidence1

ImpersonateToken ... an attacker can either impersonate the explorer.exe token or create a token from credentials (Domain\Username, Password) sent by the C2 to spawn another instance of the current process.

T1134.001Token Impersonation/TheftEvidence2

ImpersonateToken can duplicate the explorer.exe token with DuplicateTokenEx and spawn another instance of the current process with the duplicated token.

T1134.002Create Process with TokenEvidence1

The malware calls LogonUserW with C2-supplied Domain\User credentials and password to create a token, then spawns another instance of itself with that token.

T1134.003Make and Impersonate TokenEvidence1

The implant starts by enabling SeDebugPrivilege, allowing it to access and read memory from other processes.

T1543.003Windows ServiceEvidence1

the malware creates a suspended svchost.exe process with CreateProcessA API

Stealth

13 techniques
T1027Obfuscated Files or InformationEvidence2

The PowerShell loader is obfuscated and stores shellcode in reverse-Base64 format; BUGHATCH XOR-encrypts embedded PE payloads and C2 data.

T1055Process InjectionEvidence2

BUGHATCH creates suspended cmd.exe or svchost.exe processes, writes shellcode and encrypted PE payloads into their memory, sets thread context, and resumes execution.

T1055.001Dynamic-link Library InjectionEvidence1

ReflectivelyLoadDllRemote allocates memory with VirtualAllocEx, writes a DLL with WriteProcessMemory, and creates a remote thread using CreateRemoteThread.

T1055.002Portable Executable InjectionEvidence1

ReflectivelyExecutePERemote and Command 3 load PE binaries in the memory space of a created suspended process.

T1055.003Thread Execution HijackingEvidence1

The malware creates a suspended process, sets the suspended thread instruction pointer with SetThreadContext, then calls ResumeThread to execute injected shellcode.

T1055.012Process HollowingEvidence2

For Command 3, BUGHATCH creates a suspended cmd.exe or svchost.exe process, allocates remote memory, writes a loader and encrypted PE, redirects execution, and resumes the process.

T1070.004File DeletionEvidence2

SelfDeleteExitProcess obtains its current executable path and runs "cmd.exe /c del FILEPATH >> NUL" before exiting.

T1134Access Token ManipulationEvidence1

ImpersonateToken ... an attacker can either impersonate the explorer.exe token or create a token from credentials (Domain\Username, Password) sent by the C2 to spawn another instance of the current process.

T1134.001Token Impersonation/TheftEvidence2

ImpersonateToken can duplicate the explorer.exe token with DuplicateTokenEx and spawn another instance of the current process with the duplicated token.

T1134.002Create Process with TokenEvidence1

The malware calls LogonUserW with C2-supplied Domain\User credentials and password to create a token, then spawns another instance of itself with that token.

T1134.003Make and Impersonate TokenEvidence1

The implant starts by enabling SeDebugPrivilege, allowing it to access and read memory from other processes.

T1564.003Hidden WindowEvidence1

The BUGHATCH YARA rule includes the PowerShell arguments "-windowstyle hidden -executionpolicy bypass -file," and the observed-techniques list includes "Hide Artifact - Hidden Window."

T1620Reflective Code LoadingEvidence6

The observed-techniques list includes Reflective Code Loading, and the BUGHATCH YARA rule contains the string "ReflectiveLoader."

Discovery

4 techniques
T1016System Network Configuration DiscoveryEvidence2

It collects the addresses of network interfaces connected to the infected machine using GetIpAddrTable.

T1033System Owner/User DiscoveryEvidence2

The implant retrieves the username and domain of the current process account with GetTokenInformation and LookupAccountSidW.

T1069.001Local GroupsEvidence2

The malware collects current-process token group membership using AllocateAndInitializeSid and CheckTokenMembership, concatenating SDDL SID strings for each group.

T1082System Information DiscoveryEvidence2

BUGHATCH collects Windows major/minor release and build number, processor architecture, computer name, and current process path.

Collection

1 technique
T1119Automated CollectionEvidence2

The malware collects performance-counter values, network-interface addresses, Windows version and build, processor architecture, computer name, token group membership, domain and username, and process path.

Command and Control

5 techniques
T1071Application Layer ProtocolEvidence1

the C2 then responds with the operator’s command if available, or else the agent sleeps for 60 seconds ... The main loop is made up of the following: Send POST request ... Sleep for 60 seconds

T1071.001Web ProtocolsEvidence2

The implant uses HTTP(S) for communications and sends victim information and command output in HTTP POST requests to the C2 server.

T1105Ingress Tool TransferEvidence5

The initial shellcode downloads another shellcode blob and the encrypted PE implant from C2; SpawnAgent32/64 downloads packed agent shellcode from /Agent32.bin or /Agent64.bin.

T1573.001Symmetric CryptographyEvidence2

The malware and C2 encrypt data with a 2-byte XOR key computed for each new C2 session.

T1573.002Asymmetric CryptographyEvidence2

The implant uses HTTP(S) for communications, on top of which it applies custom XOR encryption.

Exfiltration

1 technique
T1041Exfiltration Over C2 ChannelEvidence3

The group exfiltrates sensitive information for extortion; the report notes that BUGHATCH, Meterpreter, and Cobalt Strike all have data-movement capabilities, and SystemBC Tor communications could provide a clandestine exfiltration path.

Indicators of compromise

Observables

16 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.

View all in app →
Indicator values are available in Mallory. Pivot on every hash, domain, URL, and IP, or pipe them straight into your SIEM.View all in Mallory
Activity feed

Recent activity

11 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
+6 more in the timeline. Sign up to see them
Is this in your environment?See whether this family's indicators match your telemetry and which of your assets are exposed to the CVEs associated with it.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets match these IOCs, which detections are missing, which campaigns to expect next, and what to do in the next 30 minutes.
IOC matching16Match every observed IP, domain, and hash against your live telemetry.
Associated threat actors2Groups linked to this family, with evidence pinned to each claim.
Associated vulnerabilities3CVEs linked to this family, with the reporting behind each link.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
MITRE ATT&CK mapping29Every documented technique, ranked by evidence weight.
Researcher chatterReddit, Mastodon, and CTI community discussion around this family.