HavanaCrypt is a .NET ransomware family that masquerades as a Google software update component to reduce suspicion during execution. It employs anti-virtualization and anti-analysis checks, including inspection for VMware- and VirtualBox-related artifacts, and may terminate when it detects a virtualized environment. The malware is obfuscated and hides its execution window, indicating an emphasis on defense evasion.
After launch, HavanaCrypt weakens host defenses by downloading and executing a batch script that modifies Microsoft Defender preferences. It also terminates a range of running processes, including business and database-related applications, to increase the number of files available for encryption. To inhibit recovery, it deletes shadow copies and removes restore points.
The ransomware establishes persistence by copying itself into startup-related locations and creating additional startup artifacts. Before encryption, it fingerprints the victim system using hardware information to derive a unique identifier, then communicates with command-and-control infrastructure to obtain encryption-related material. It also stores locally generated RSA key material for use in its workflow.
HavanaCrypt encrypts files and appends a dedicated extension to affected data while excluding some directories and file types. Reported samples did not drop a ransom note, suggesting the family may have been immature or still under development at the time it was observed. The malware is associated with Windows environments and demonstrates a conventional ransomware playbook centered on defense evasion, persistence, host profiling, and file encryption.
18 distinct techniques documented for this family, organized by ATT&CK tactic.
It also checks for system restore instances via Windows Management Instrumentation (WMI) and proceeds to delete them by using the SRRemoveRestorePoint function.
It then proceeds to execute the batch file using cmd.exe with a “/c start” parameter.
It then drops copies of itself in the %ProgramData% and %StartUp% folders in the form of executable (.exe) files... HavanaCrypt also drops a file named “vallo.bat” onto %User Startup%
It then drops copies of itself in the %ProgramData% and %StartUp% folders in the form of executable (.exe) files... HavanaCrypt also drops a file named “vallo.bat” onto %User Startup%
HavanaCrypt arrives as a fake Google Software Update application.
After it terminates all relevant processes, HavanaCrypt queries all available disk drives and proceeds to delete the shadow copies
HavanaCrypt has four stages of checking whether the infected machine is running in a virtualized environment.
First, it checks for services used by virtual machines such as VMWare Tools and vmmouse.
Their attributes are then set to “Hidden” and “System File.”
Upon execution, HavanaCrypt hides its window by using the ShowWindow function with parameter 0 (SW_HIDE).
The batch file contains commands that are used to configure Windows Defender scan preferences to allow any detected threat in the “%Windows%” and “%User%” directories.
HavanaCrypt then checks the AutoRun registry to see whether the “GoogleUpdate” registry is present.
HavanaCrypt also terminates certain processes that are found running in the machine
Before it proceeds with its encryption routine, HavanaCrypt gathers certain pieces of information and sends them to its C&C server... The pieces of machine information that HavanaCrypt gathers include: The number of processor cores, The processor ID, The processor name, The socket designation, The motherboard manufacturer, The motherboard name, The BIOS version, The product number
HavanaCrypt has four stages of checking whether the infected machine is running in a virtualized environment.
First, it checks for services used by virtual machines such as VMWare Tools and vmmouse.
HavanaCrypt replaces the string “index.php” with “ham.php” to send a GET request to its C&C server ... using “Havana/1.0” as the user agent... After gathering all the necessary machine information, HavanaCrypt sends it via a POST request to hxxp://20[.]227[.]128[.]33/index.php
After verifying that the victim machine is not running in a virtual machine, HavanaCrypt downloads a file named “2.txt” from 20[.]227[.]128[.]33, a Microsoft web hosting service IP address, and saves it as a batch (.bat) file
HavanaCrypt encrypts files and appends “.Havana” as a file name extension.
HavanaCrypt queries all available disk drives and proceeds to delete the shadow copies and resize the maximum amount of storage space to 401 MB. It also checks for system restore instances via Windows Management Instrumentation (WMI) and proceeds to delete them by using the SRRemoveRestorePoint function.
HavanaCrypt also drops a file named “vallo.bat” onto %User Startup%, which contains functions that can disable the Task Manager.
6 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
3 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.