RegretLocker is a Windows ransomware family identified in 2020 that is notable for encrypting the contents of mounted virtual hard disks rather than only encrypting ordinary files on accessible volumes. It specifically searches for virtual disk image formats used in Windows and Hyper-V environments, mounts those images through the Windows Virtual Storage API, and then encrypts the files inside them individually. This approach improves speed and effectiveness against large virtual disk containers and can significantly impact virtualized workloads and backup media.
RegretLocker encrypts victim data with AES and protects the symmetric key with RSA. It retrieves an RSA public key from attacker-controlled infrastructure over Tor, while some observed samples also contain a hard-coded fallback RSA key used when command-and-control is unreachable. The malware appends a distinct extension to encrypted files and drops ransom notes in affected locations.
The ransomware is designed to maximize file access and hinder recovery. It deletes shadow copies and backup-related data, disables recovery options, and attempts to terminate processes or services that keep files open. Observed samples use the Windows Restart Manager API and command-line process termination to close locking applications while excluding certain system-critical or operator-useful processes. RegretLocker also mounts fixed, removable, and remote volumes, encrypts USB-accessible data, and includes functionality to enumerate SMB-accessible systems and folders for encryption of reachable network shares.
Persistence has been observed through both autorun configuration and a scheduled task. RegretLocker also checks for an existing instance of itself before proceeding. Some samples extract an auxiliary Tor communication component and use it to send host information, obtain cryptographic material, and signal encryption status.
RegretLocker is associated with financially motivated extortion activity rather than espionage. Its tradecraft shows emphasis on operational efficiency, recovery inhibition, and impact against enterprise environments that rely on virtual disks, shared storage, and backups.
Mallory pivots from this family to the IOCs, detections, and named campaigns that touch your stack, and pages you when something new lands.
16 distinct techniques documented for this family, organized by ATT&CK tactic.
Next, it also schedules the malware as a task every minite using this Schtasks.exe command... schtasks /Create /SC MINUTE /TN "Mouse Application" /TR "RegretLocker_path" /f
There is a class called smb_scanner . The SMB function tries SMB scanning to find Adapter names and address ranges on the adapter NetServers’s IP addresses and machine names on the server using NetServerEnum .
RegretLocker first check if there is only one version of itself running by looping through all of the running processes using CreateToolhelp32Snapshot, Process32First, and Process32Next.
RegretLocker contacts the C&C server... Sending information such as the computer's IP, name, volume of the disks,.. Before contacting C&C, it sends a GET request to http://api.ipify.org/ to retrieve the PC’s public IP address.
small_encrypt() calls a wrapper function to navigate around directories and files before encrypting them... If the file type is FILE_ATTRIBUTE_DIRECTORY, it will calls a recursive encrypting function to recursively go through every layer inside the folder.
RegretLocker is a new ransomware that has been found in the wild... it will particularly search for VHD files, mount them using Windows Virtual Storage API, and then encrypt all the files it finds inside of those VHD files.
4 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Full values are available in Mallory.
IPs, domains, and DNS infrastructure linked to this family.
File hashes (MD5, SHA-1, SHA-256) from samples and reports.
Other indicator types observed in public reporting.
3 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.
A ransomware family mentioned for comparison that targets virtual disk image files by mounting them and encrypting the data inside.
Ransomware that encrypts files with AES using an RSA-protected key, appends the .mouse extension, drops ransom notes, deletes backups and shadow copies, establishes persistence, scans SMB shares and removable drives, and uniquely mounts VHD virtual disks to encrypt files inside them for faster large-disk impact.
Ransomware that appends the .mouse extension, mounts VHD/VHDX virtual disks via the Windows Virtual Storage API so files inside can be encrypted individually, and uses the Windows Restart Manager API to terminate processes or services locking files during encryption while avoiding certain process names.
Match every observed IP, domain, and hash against your live telemetry.
Named campaigns wielding this family, with evidence pinned to each claim.
CVEs this family uses for access and lateral movement.
YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Every documented technique, ranked by evidence weight.
Reddit, Mastodon, and CTI community discussion around this family.