Babuk
- Type
- Ransomware
- Capabilities
- ExfiltrationExtortion
- Platforms
- WindowsLinuxEsxi
Babuk, also known as Babuk Locker and Babyk, is a ransomware family first observed in early 2021 in human-operated attacks against organizations worldwide. Its encryptors target Windows systems and Linux-based environments, including network-attached storage and VMware ESXi infrastructure. The associated criminal operation used double extortion, combining file encryption with data theft and threats to publish sensitive information. Targets included corporate organizations and the Washington, D.C., Metropolitan Police Department.
Babuk's Windows encryption implementation uses HC-128 and Curve25519-based key agreement. Its code includes service and process termination routines, shadow-copy deletion, and file-exclusion logic. The ESXi variant encrypts virtual-machine files, allowing attackers to disrupt multiple hosted systems through a compromised hypervisor. Data theft is an operator activity and should not be interpreted as an inherent capability of every Babuk encryptor.
Babuk's builder and source code became publicly available in 2021, with the September source-code leak including a working ESXi encryptor. These leaks enabled other actors to create custom ransomware and supported extensive reuse across subsequent families, including Cheerscrypt, RA World, and ransomware used by the Daixin Team. At least ten later ransomware families reused the ESXi codebase. The original operators also announced plans to move away from ransomware intrusions toward data theft and extortion; subsequent use of Babuk-derived code does not establish continuity with the original operation.
Associated vulnerabilities
10 CVEs Mallory has correlated with this family across public research and vendor advisories. Each card links to the full Mallory page for that vulnerability.
Associated threat actors
29 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
Ранее она использовала сторонние шифровальщики, включая RedAlert, LockBit и Babuk.
Tortilla is launching ProxyShell attacks on Microsoft Exchange servers to infect vulnerable servers with variants of the Babuk ransomware.
Competitor ransomware groups like “Bl00dy,” “Dragonforce,” and “RA World” rely on leaked “Babuk” or “LockBit” builders to launch attacks.
Competitor ransomware groups like “Bl00dy,” “Dragonforce,” and “RA World” rely on leaked “Babuk” or “LockBit” builders to launch attacks.
Competitor ransomware groups like “Bl00dy,” “Dragonforce,” and “RA World” rely on leaked “Babuk” or “LockBit” builders to launch attacks.
+23 more in the app. View in Mallory
Techniques & procedures
50 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
5 techniques
Initial Access
...threat actors leveraging a contractor's login credentials to connect to the internal systems via VPN... weaponizing trusted relationships.
As suspected, the Babuk team probably uses spear phishing attacks, VPN 0-days, and vulnerable RDP setup to target certain companies.
злоумышленники проникают в инфраструктуру жертв через уязвимые публичные сервисы, в т.ч. RDP-серверы
attackers may leverage these ransomware builder tools to target victims through various means such as social engineering campaigns and phishing attacks.
As suspected, the Babuk team probably uses spear phishing attacks, VPN 0-days, and vulnerable RDP setup to target certain companies.
Execution
5 techniques
Execution
The downloader runs an embedded obfuscated PowerShell command to connect and download a packed downloader module from the actor's infrastructure. The PowerShell command also executes an AMSI bypass to circumvent endpoint protection.
[Babuk](https://attack.mitre.org/software/S0638) has the ability to use the command line to control execution on compromised hosts.(Citation: Sogeti CERT ESEC Babuk March 2021)(Citation: McAfee Babuk February 2021)
Scheduled jobs downloaded tools, ran shell commands and used temporary folders for staging.
[Babuk](https://attack.mitre.org/software/S0638) can use multiple Windows API calls for actions on compromised hosts including discovery and execution.(Citation: Sogeti CERT ESEC Babuk March 2021)(Citation: McAfee Babuk February 2021)(Citation: Medium Babuk February 2021)
MITRE ATT&CK® Techniques Tactic Technique ID Technique Name Execution T1204 User Execution
Persistence
3 techniques
Persistence
...threat actors leveraging a contractor's login credentials to connect to the internal systems via VPN... weaponizing trusted relationships.
As suspected, the Babuk team probably uses spear phishing attacks, VPN 0-days, and vulnerable RDP setup to target certain companies.
The ransom note file is called How To Restore Your Files.txt and is dropped to every directory.
Privilege Escalation
5 techniques
Privilege Escalation
The unpacker module decrypts the embedded Babuk ransomware payload in memory and injects it into a newly created process AddInProcess32.
The .NET executable version of the initial downloader is a slightly modified variant of the EfsPotato exploit... EfsPotato is an exploit that attempts to escalate the process privileges using a vulnerability in the Encrypted File System (CVE-2021-36942).
...threat actors leveraging a contractor's login credentials to connect to the internal systems via VPN... weaponizing trusted relationships.
The exploit enumerates the current user privileges and access the user token and modifies the token access level to MaximumAllowed thereby enhances the privileges and calls CreateProcessAsUser function to run the stage 2 loader.
The ransom note file is called How To Restore Your Files.txt and is dropped to every directory.
Stealth
13 techniques
Stealth
The Gentlemen’s developers are systematically reverse-engineering samples from other groups, such as Babuk, Qilin, LockBit 5.0 and Medusa, to select the strongest encryption routines, code-obfuscation techniques and EDR evasion methods to incorporate into their own codebase.
Versions of [Babuk](https://attack.mitre.org/software/S0638) have been packed.(Citation: Sogeti CERT ESEC Babuk March 2021)(Citation: McAfee Babuk February 2021)(Citation: Medium Babuk February 2021)
Comparing the strings in both samples I found that Pandora removed the debug messages which are present in the Babuk source and the Rook sample.
Distribution Vector: Frequently encountered masquerading as a setup or launcher for pirated games (such as Grand Theft Auto or Left 4 Dead), distributed via torrent and download sites.
The unpacker module decrypts the embedded Babuk ransomware payload in memory and injects it into a newly created process AddInProcess32.
Its purpose is to delete the ransom Note “ How to Restore Your Files.txt ” ... it deletes using the “ DeleteFileW ” the file
...threat actors leveraging a contractor's login credentials to connect to the internal systems via VPN... weaponizing trusted relationships.
The exploit enumerates the current user privileges and access the user token and modifies the token access level to MaximumAllowed thereby enhances the privileges and calls CreateProcessAsUser function to run the stage 2 loader.
[Babuk](https://attack.mitre.org/software/S0638) has the ability to unpack itself into memory using XOR.(Citation: Sogeti CERT ESEC Babuk March 2021)(Citation: Medium Babuk February 2021)
The PowerShell command invokes a web request to connect to the malicious repository ... using the Invoke-WebRequest commandlet and certutil.exe to download the main loader module and save it as tortilla.exe.
By targeting virtual machines, ransomware operators can also encrypt multiple servers at once with a single command. In June, researchers spotted a new REvil ransomware Linux encryptor designed to target VMware ESXi virtual machines, a popular enterprise virtual machine platform.
After deleting the shadow copies, Babuk checks if the system is running under an 64-bit processor. If it is, then Wow64RevertWow64FsRedirection is called to enable file system redirection again.
Anti-debug проверки - Debugger Evasion (T1622, Defense Evasion / Discovery).
Defense Impairment
1 technique
Defense Impairment
[Babuk](https://attack.mitre.org/software/S0638) can stop anti-virus services on a compromised host.(Citation: Sogeti CERT ESEC Babuk March 2021)
Discovery
12 techniques
Discovery
[Babuk](https://attack.mitre.org/software/S0638) can enumerate all services running on a compromised host.(Citation: McAfee Babuk February 2021)
[Babuk](https://attack.mitre.org/software/S0638) can use “WNetOpenEnumW” and “WNetEnumResourceW” to enumerate files in network resources for encryption.(Citation: McAfee Babuk February 2021)
[Babuk](https://attack.mitre.org/software/S0638) has the ability to check running processes on a targeted system.(Citation: Sogeti CERT ESEC Babuk March 2021)(Citation: McAfee Babuk February 2021)(Citation: Trend Micro Ransomware February 2021)
After inventory discovery, the attackers created local administrator accounts on ESXi hosts
[Babuk](https://attack.mitre.org/software/S0638) has the ability to enumerate files on a targeted system.(Citation: McAfee Babuk February 2021)(Citation: Trend Micro Ransomware February 2021)
Numerous entries mention enumerating drives, logical disks, disk type, free space, or volume information; examples include 'Babuk can enumerate disk volumes,' 'Cuba can enumerate local drives,' and 'TAINTEDSCRIBE can use DriveList to retrieve drive information.'
[Babuk](https://attack.mitre.org/software/S0638) has the ability to enumerate network shares.(Citation: Sogeti CERT ESEC Babuk March 2021)
By targeting virtual machines, ransomware operators can also encrypt multiple servers at once with a single command. In June, researchers spotted a new REvil ransomware Linux encryptor designed to target VMware ESXi virtual machines, a popular enterprise virtual machine platform.
After deleting the shadow copies, Babuk checks if the system is running under an 64-bit processor. If it is, then Wow64RevertWow64FsRedirection is called to enable file system redirection again.
The Babuk ransomware module, running within the process AddInProcess32, enumerates the processes running on the victim's server and attempts to disable a number of processes related to backup products, such as Veeam backup service.
Anti-debug проверки - Debugger Evasion (T1622, Defense Evasion / Discovery).
[Babuk](https://attack.mitre.org/software/S0638) can enumerate disk volumes, get disk information, and query service status.(Citation: McAfee Babuk February 2021)
Lateral Movement
4 techniques
Lateral Movement
злоумышленники проникают в инфраструктуру жертв через уязвимые публичные сервисы, в т.ч. RDP-серверы
The new command line parameters are “lanfirst”, “nolan”, and “shares”... shares Encrypting shared drives and locally
Additionally, attackers targeted ESXi servers with the Babuk ransomware. They would connect to the ESXi server via SSH, upload Babuk, and initiate the encryption process.
the attackers created local administrator accounts on ESXi hosts and copied a ransomware executable, plus scripts, through the vSphere datastore browser.
Collection
2 techniques
Collection
Cybercriminals are embracing data-theft extortion by creating dark web marketplaces that exist solely to sell stolen data.
In total, the Babuk Locker gang claims it downloaded more than 250 GB of data from DC Police servers.
Command and Control
1 technique
Command and Control
The PowerShell command invokes a web request and downloads the payload loader module using certutil.exe from a URL hosted on the domains fbi[.]fund and xxxs[.]info, or the IP address 185[.]219[.]52[.]229.
Exfiltration
4 techniques
Exfiltration
Maze warned victims that they would publicly leak stolen data if victims did not pay a ransom.
If companies don't want to pay to have their data returned, the group says it will list it on their site, just like it did until now, exposing the victim's sensitive documents.
when it began targeting corporate victims and stealing their data in double-extortion attacks.
With double extortion, malicious actors go beyond just encryption by also exfiltrating ... and threatening to publicize an affected organization’s data.
Impact
5 techniques
Impact
[Babuk](https://attack.mitre.org/software/S0638) can use ChaCha8 and ECDH to encrypt data.(Citation: Sogeti CERT ESEC Babuk March 2021)(Citation: McAfee Babuk February 2021)(Citation: Medium Babuk February 2021)(Citation: Trend Micro Ransomware February 2021)
[Babuk](https://attack.mitre.org/software/S0638) can stop specific services related to backups.(Citation: Sogeti CERT ESEC Babuk March 2021)(Citation: McAfee Babuk February 2021)(Citation: Trend Micro Ransomware February 2021)
[Babuk](https://attack.mitre.org/software/S0638) has the ability to delete shadow volumes using <code>vssadmin.exe delete shadows /all /quiet</code>.(Citation: Sogeti CERT ESEC Babuk March 2021)(Citation: McAfee Babuk February 2021)
These groups focus on ESXi before other Linux variants, leveraging built-in tools for the ESXi hypervisor to kill guest machines, then encrypt crucial hypervisor files.
when organizations being held for ransom decline to cooperate or pay up, any data stolen from the victim should be published on the Russian cybercrime forums for all to plunder
Observables
124 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
200 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.