BLACKMATTER
- Type
- Ransomware
- Capabilities
- ExtortionDefense evasionPrivilege escalationProcess injection
- Platforms
- Windows
BlackMatter is a ransomware family and ransomware-as-a-service operation active from July to November 2021. It targeted large corporate networks, recruiting affiliates and initial access brokers and seeking access to organizations with annual revenues exceeding $100 million. Despite publishing targeting restrictions, its operators attacked U.S. critical infrastructure organizations, including blood-testing facilities and businesses in the food and agriculture sector.
The Windows ransomware encrypts victim files for extortion and deletes volume shadow copies through Windows Management Instrumentation using COM objects to impede recovery. Its anti-analysis mechanisms include hash-based API resolution and hiding threads from debuggers. Privilege-escalation routines include COM-based User Account Control bypass, token duplication, and shellcode injection. BlackMatter shares substantial code with DarkSide; its earliest payloads were nearly identical to the final DarkSide versions. Several BlackMatter routines subsequently appeared in LockBit 3.0.
BlackMatter announced its shutdown in November 2021, citing pressure from local authorities, after which some affiliates moved victims to LockBit 2.0. The FBI also linked ALPHV/BlackCat developers and money launderers to DarkSide and BlackMatter. During BlackMatter's operation, Emsisoft privately exploited a flaw that enabled recovery of victims' files without ransom payments; a later ransomware update corrected that flaw.
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.
Associated threat actors
4 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
Pivot to ransomware affiliate operations (DarkSide / BlackMatter, ALPHV/BlackCat, Black Basta).
BlackMatter had significant overlaps with the DarkSide operation, including similarities in its malware code, public code of conduct, and affiliate structure.
At least one affiliate of the BlackMatter ransomware operation has begun using a custom data exfiltration tool in its attacks.
ELBRUS retired the DarkSide ransomware ecosystem in May 2021 and released its successor, BlackMatter, in July 2021.
Techniques & procedures
70 distinct techniques documented for this family, organized by ATT&CK tactic.
Resource Development
2 techniques
Resource Development
You are actively buying access to the networks... We do not work with VPN and other time-consuming types of initial access but are focused on getting direct access to the network immediately.
The advertiser was looking to recruit parties who could provide access to corporate networks of companies with more than $100,000,000 yearly revenue. This is a common practice for ransomware-as-a-service operations... In this particular case, the BlackMatter user was looking to recruit initial access providers and brokers.
Initial Access
5 techniques
Initial Access
Attempts to log in using credentials from its configuration list to determine if the compromised system is a part of the domain admin that it will use for later routines
When servers’ URLs are provided in the configuration, the malware encrypts informations about the victim’s machine and encryption stats using a hard-coded AES key and sends them to the remote servers.
BlackMatter appears to gain initial access primarily via the compromise of vulnerable edge devices... exploiting infrastructure vulnerabilities, such as those found in remote desktop, virtualization and VPN appliances or servers
Additionally, the group are thought to make use of credentials obtained from other sources, such as third-party credential leaks, broad phishing campaigns... While it is possible that some edge cases may see the use of spear-phishing campaigns and malicious document payloads... this has not been observed
it is possible that some edge cases may see the use of spear-phishing campaigns and malicious document payloads, leading to the compact ~80kb BlackMatter payload being dropped or downloaded, this has not been observed
Execution
5 techniques
Execution
Enumerates and deletes shadow copies using the Windows Management Instrumentation Command-Line (WMIC) utility
There were further similarities: for both the BlackMatter and BlackCat infections, the methods to achieve persistence – a reverse SSH tunnel and scheduled tasks – were the same
Terminating processes and services specified in the configuration
We also implemented the PowerShell version of the ransomware variant given the REvil implementation.
Kremez told us that each function would execute a different command using the esxcli command-line management tool, such as listing VMs, stopping the firewall, stopping a VM, and more.
Persistence
9 techniques
Persistence
There were further similarities: for both the BlackMatter and BlackCat infections, the methods to achieve persistence – a reverse SSH tunnel and scheduled tasks – were the same
Attempts to log in using credentials from its configuration list to determine if the compromised system is a part of the domain admin that it will use for later routines
the built-in local administrator account being enabled and set for automatic sign in
Like BlackMatter, LockBit 3.0 can also restart in safe mode and execute via the RunOnce registry... DISABLE_EVENTLOG_FLAG If set, EventLog will be disabled via registry and service.
When servers’ URLs are provided in the configuration, the malware encrypts informations about the victim’s machine and encryption stats using a hard-coded AES key and sends them to the remote servers.
If the account corresponding to this entry is disabled, the malware enables it manually... Next, BlackMatter generates a new password for this account... calls NetUserSetInfo to update the user account
Change the default boot configuration to safe mode with networking, by running this command: bcdedit /set {current} safeboot network... When the ransomware has finished encrypting, it runs the following command... bcdedit /deletevalue {current} safeboot
Then, it calls DeleteService to completely delete the service.
Like BlackMatter, LockBit 3.0 can also restart in safe mode and execute via the RunOnce registry, as long as the -safe argument is provided.
Privilege Escalation
12 techniques
Privilege Escalation
There were further similarities: for both the BlackMatter and BlackCat infections, the methods to achieve persistence – a reverse SSH tunnel and scheduled tasks – were the same
Performs a 32-bit or 64-bit shellcode injection to elevate its token... LockBit 3.0 is capable of injecting a DLL into memory via reflective loading
Attempts to log in using credentials from its configuration list to determine if the compromised system is a part of the domain admin that it will use for later routines
the built-in local administrator account being enabled and set for automatic sign in
BlackMatter attempts to retrieve and duplicate the token of an elevated process running on the system... Finally, BlackMatter calls NtDuplicateToken to duplicate the Explorer’s token.
Duplicates the Explorer.exe token for its own use
On the day of the attack, the attacker logged in to the domain controller and opened the group policy management interface. The attackers then dropped and executed a file named 'apply.ps1.' We believe this script created and prepared the group policy to cause the execution of the ransomware throughout the domain.
Change the default boot configuration to safe mode with networking, by running this command: bcdedit /set {current} safeboot network... When the ransomware has finished encrypting, it runs the following command... bcdedit /deletevalue {current} safeboot
Then, it calls DeleteService to completely delete the service.
Like BlackMatter, LockBit 3.0 can also restart in safe mode and execute via the RunOnce registry, as long as the -safe argument is provided.
BlackMatter also attempts to elevate its privileges when it is limited by User Account Control (UAC). It does so via an elevated COM interface
LockBit 3.0 also retains these BlackMatter routines for privilege escalation: Uses UACMe’s method of bypassing user account control (UAC), which is to use the ICMLuaUtil COM interface under dllhost.exe
Stealth
16 techniques
Stealth
This specific sample is a PowerShell script containing two layers of obfuscated code... The strings it uses are decrypted using a simple bitwise-XOR routine, a bitwise-XOR and NOT routine, or a decryption routine involving a linear congruential generator (LCG) algorithm
BlackMatter... obfuscates its API calls from static analysis... Figure 3: Dynamic API resolve.
BlackMatter also has an encrypted configuration inside the binary, located in a fake PE resource section.
This communication was observed as impersonating the following user-agent strings that may be anomalous in some environments
Performs a 32-bit or 64-bit shellcode injection to elevate its token... LockBit 3.0 is capable of injecting a DLL into memory via reflective loading
Prior to file encryption, BlackMatter wipes the recycle bin folder of every drive on the system... Once found, the folders and their contents are recursively deleted using DeleteFileW.
Attempts to log in using credentials from its configuration list to determine if the compromised system is a part of the domain admin that it will use for later routines
BlackMatter attempts to retrieve and duplicate the token of an elevated process running on the system... Finally, BlackMatter calls NtDuplicateToken to duplicate the Explorer’s token.
Duplicates the Explorer.exe token for its own use
malware authors will hide important strings and only decrypt these strings during runtime... these malwares make it more difficult by saving the encrypted strings on the stack as stack strings. Then, strings are decrypted by XOR-ing with a key value
Elevation:Administrator!new:{3E5FC7F9-9A51-4367-9063-A120244FBEC7} is used for UAC (user account control) bypass
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.
LockBit 3.0 also checks the victim machine’s UI language to avoid infecting machines with these languages...
Both LockBit and BlackMatter hide threads using the NtSetInformationThread function, with the parameter ThreadHideFromDebugger
After deobfuscating the script, we found that LockBit 3.0 is capable of injecting a DLL into memory via reflective loading
LockBit 3.0 and BlackMatter also implement the same antidebugging technique: Both set the thread information to ThreadHideFromDebugger (0x11) via the NtSetThreadInformation API to cause any debuggers to crash if a breakpoint is placed on this thread.
Defense Impairment
4 techniques
Defense Impairment
Like BlackMatter, LockBit 3.0 can also restart in safe mode and execute via the RunOnce registry... DISABLE_EVENTLOG_FLAG If set, EventLog will be disabled via registry and service.
On the day of the attack, the attacker logged in to the domain controller and opened the group policy management interface. The attackers then dropped and executed a file named 'apply.ps1.' We believe this script created and prepared the group policy to cause the execution of the ransomware throughout the domain.
Terminates and deletes processes and services from its configuration list... DELETE_AV_SERVICE_FLAG If set, AV services matching the hashes will be terminated. DISABLE_EVENTLOG_FLAG If set, EventLog will be disabled via registry and service.
To avoid detection and allow file encryption without interference of security controls, BlackMatter supports the use of Windows 'safe-mode'
Credential Access
2 techniques
Credential Access
Technique OS Credential Dumping: LSASS Memory [T1003.001] Procedure BlackMatter harvests credentials from Local Security Authority Subsystem Service (LSASS) memory using procmon.
In order to work it needs a file with the hashes each one in a different line and the dictionary with the processes to bruteforce with the same format.
Discovery
13 techniques
Discovery
Technique System Service Discovery [T1007] Procedure BlackMatter uses EnumServicesStatusExW to enumerate running services on the network.
Enumerates Active Directory environments using native LDAP queries, specifically the built-in computers folder LDAP://CN=Computers to identify potential target machines
the malware sends information about the victim’s machine... "host_user":"%s"
the malware calls NtQuerySystemInformation to query information about processes on the system. For each process entry, it checks if the process’s name is explorer.exe...
The victim sends a beacon including the machine name, OS version and CPU architecture, OS language, username, domain name, disk sizes
Once all the VMs are shut down, it will encrypt files that match specific file extensions based on the configuration included with the ransomware.
it calls NetUserEnum with a filter for normal accounts. BlackMatter iterates through user information entries until it finds one...
Description blackmailer ransomware accessing schcache due to creation of adsi object for its ldap query. MITRE ATT&CK Techniques ... Path: /datasets/attack_techniques/T1087.002/blackmatter_schcache/windows-sysmon.log
Encrypts network shares and Exchange Mailbox if set in its configuration flag
BlackMatter calls DsGetDcNameW to obtain the domain controller information and DsGetDcOpenW to open a new domain controller enumeration operation.
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.
LockBit 3.0 also checks the victim machine’s UI language to avoid infecting machines with these languages...
LockBit 3.0 and BlackMatter also implement the same antidebugging technique: Both set the thread information to ThreadHideFromDebugger (0x11) via the NtSetThreadInformation API to cause any debuggers to crash if a breakpoint is placed on this thread.
Lateral Movement
3 techniques
Lateral Movement
the ransomware and Fendr are delivered simultaneously across a network to many systems as “v2.exe” and “v2c.exe”, or as “v2.exe” and “sender2.exe”
Technique Remote Services: SMB/Windows Admin Shares [T1021.002] Procedure BlackMatter uses srvsvc.NetShareEnumAll MSRPC function to enumerate and SMB to connect to all discovered shares, including ADMIN$, C$, SYSVOL, and NETLOGON.
There were further similarities: for both the BlackMatter and BlackCat infections, the methods to achieve persistence – a reverse SSH tunnel and scheduled tasks – were the same
Collection
1 technique
Collection
Preparing victim's data and exfiltrating
Command and Control
5 techniques
Command and Control
The payload will communicate to command-and-control (C2) infrastructure over HTTPS, encrypted using AES
The payload will communicate to command-and-control (C2) infrastructure over HTTPS
the malware delivered via malicious Office macros attached to emails and then used to deploy modules for capabilities.
strings are decrypted by XOR-ing with a key value (this value may not be fixed) or through quite complex computation
Added the field "AES_KEY" with the AES key used to cipher the victim info to send to the C2.
Exfiltration
2 techniques
Exfiltration
Both raids went the usual way: an initial compromise followed by exploration and data exfiltration, preparation, and then execution of the extortionware.
Technique Exfiltration Over Web Service [T1567] Procedure BlackMatter attempts to exfiltrate data for extortion.
Impact
9 techniques
Impact
Pivot to ransomware affiliate operations (DarkSide / BlackMatter, ALPHV/BlackCat, Black Basta).
we have confirmed the values of the following BlackCat’s configuration fields completely match BlackMatter’s. kill_services kill_processes
LockBit 3.0’s deletion of shadow copies is clearly lifted from BlackMatter’s code, as this is performed using Windows Management Instrumentation (WMI) through COM objects, as opposed to LockBit 2.0’s use of vssadmin.exe.
The following analytic detects the modification of registry keys related to the desktop wallpaper settings... This activity is significant as it can indicate ransomware behavior, such as the REVIL ransomware, which changes the wallpaper to display a ransom note.
BlackMatter changes the background image, a common practice among ransomware creators.
Finally, it calls NtShutdownSystem to reboot the system.
Technique Disk Wipe [T1561] Procedure BlackMatter may wipe backup systems.
Encryption process involves reading the target file, renaming it with the new extension, partially encrypting and re-writing 1024KB of data
the group claimed to have stolen 50 GB of confidential finance, logistics, development, and other data... if the ransom isn’t paid, the group will publish the data and inform all of the “biggest mass-media in Brazil and US”
Observables
106 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
122 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.