MegaCortex
- Type
- Ransomware
- Capabilities
- ExtortionDefense evasionProcess injection
- Delivery
- Phishing
- Platforms
- Windows
MegaCortex is Windows ransomware first discovered in May 2019 and used in targeted attacks against enterprise networks. It encrypts files to extort payment and disrupt business operations. Deployment has involved QakBot-mediated access and attacker-controlled remote execution using PsExec. Infections have also occurred on systems already compromised by Emotet. U.S. authorities have accused Volodymyr Tymoshchuk of administering MegaCortex operations alongside LockerGoga and Nefilim operations targeting companies internationally.
MegaCortex uses the Mbed Crypto library and AES keys for file encryption. Analyzed versions decrypt an embedded DLL directly into memory and coordinate file encryption through parent and child processes using shared memory. Short-lived encryption workers process small batches of files before terminating, reducing sustained encryption activity within individual processes. The ransomware targets hundreds of security, backup, and other services and processes for termination or disabling, frequently delegating these operations to legitimate Windows utilities. It excludes selected operating-system files and directories to preserve system functionality, then deletes volume shadow copies and wipes free disk space to obstruct recovery.
Later versions introduced additional evasion and disruption techniques. Version 3 manually maps the Windows native API library to bypass user-mode API hooks. Version 4 separates file scanning and encryption into distinct DLL components and uses legitimate Windows host processes; MegaCortex has also demonstrated DLL injection into newly created processes. It can change account passwords and log users off, preventing access with their previous credentials. Although version 4 ransom demands threaten publication of stolen information, data exfiltration is not an established capability of the analyzed ransomware itself.
Associated vulnerabilities
1 CVE 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
2 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
The court found the unnamed Ukrainian man to be the lead developer of the LockerGoga, MegaCortex, and Nefilim ransomware families.
Les attaques ont utilisé trois familles de ransomware : LockerGoga, MegaCortex, Nefilim.
Techniques & procedures
40 distinct techniques documented for this family, organized by ATT&CK tactic.
Resource Development
1 technique
Resource Development
[MegaCortex](https://attack.mitre.org/software/S0576) has used code signing certificates issued to fake companies to bypass security controls.(Citation: IBM MegaCortex)
Initial Access
3 techniques
Initial Access
La section « TTPs et IOCs détectés » associe explicitement T1078 — Valid Accounts aux attaques attribuées à Oleksandr Ieremenko.
La section « TTPs et IOCs détectés » associe explicitement T1190 — Exploit Public-Facing Application aux attaques attribuées à Oleksandr Ieremenko.
Some of these criminals were dealing with the penetration effort, using multiple mechanisms to compromise IT networks, including brute force attacks, SQL injections, stolen credentials and phishing emails with malicious attachments.
Execution
3 techniques
Execution
This tool allows the attackers to deploy "beacons" on a compromised device to "create shells, execute PowerShell scripts, perform privilege escalation, or spawn a new session to create a listener on the victim system."
[MegaCortex](https://attack.mitre.org/software/S0576) has used <code>.cmd</code> scripts on the victim's system.(Citation: IBM MegaCortex)
After escalating privileges, [MegaCortex](https://attack.mitre.org/software/S0576) calls <code>TerminateProcess()</code>, <code>CreateRemoteThread</code>, and other Win32 APIs.(Citation: IBM MegaCortex)
Persistence
3 techniques
Persistence
La section « TTPs et IOCs détectés » associe explicitement T1078 — Valid Accounts aux attaques attribuées à Oleksandr Ieremenko.
Further analysis of the code by Kremez confirmed that MegaCortex is indeed changing the password for the victim's Windows account. It does this by executing the net user command when the ransomware is executed.
[MegaCortex](https://attack.mitre.org/software/S0576) has added entries to the Registry for ransom contact information.(Citation: IBM MegaCortex)
Privilege Escalation
5 techniques
Privilege Escalation
APT37 leverages the Windows API calls: VirtualAlloc(), WriteProcessMemory(), and CreateRemoteThread() for process injection.
[MegaCortex](https://attack.mitre.org/software/S0576) loads <code>injecthelper.dll</code> into a newly created <code>rundll32.exe</code> process.(Citation: IBM MegaCortex)
La section « TTPs et IOCs détectés » associe explicitement T1078 — Valid Accounts aux attaques attribuées à Oleksandr Ieremenko.
Further analysis of the code by Kremez confirmed that MegaCortex is indeed changing the password for the victim's Windows account. It does this by executing the net user command when the ransomware is executed.
[MegaCortex](https://attack.mitre.org/software/S0576) can enable <code>SeDebugPrivilege</code> and adjust token privileges.(Citation: IBM MegaCortex)
Stealth
11 techniques
Stealth
a particular base64 encoded string would need to be provided in order for the ransomware to extract and inject a DLL into memory.
APT37 leverages the Windows API calls: VirtualAlloc(), WriteProcessMemory(), and CreateRemoteThread() for process injection.
[MegaCortex](https://attack.mitre.org/software/S0576) loads <code>injecthelper.dll</code> into a newly created <code>rundll32.exe</code> process.(Citation: IBM MegaCortex)
there are references to the Windows Cipher /W: command, which is used to overwrite deleted data so that it cannot be recovered using file recovery software.
La section « TTPs et IOCs détectés » associe explicitement T1078 — Valid Accounts aux attaques attribuées à Oleksandr Ieremenko.
[MegaCortex](https://attack.mitre.org/software/S0576) can enable <code>SeDebugPrivilege</code> and adjust token privileges.(Citation: IBM MegaCortex)
[MegaCortex](https://attack.mitre.org/software/S0576) has used a Base64 key to decode its components.(Citation: IBM MegaCortex)
The threat actors will also use a variety of LOLBins and legitimate software such as 7-Zip, PowerShell scripts, wmic, nslookup, adfind.exe, mstds.exe, Mimikatz, Ntsdutil.exe, and massscan.exe.
[MegaCortex](https://attack.mitre.org/software/S0576) has used <code>rundll32.exe</code> to load a DLL for file encryption.(Citation: IBM MegaCortex)
Other upgrades in version 2.0 include anti-analysis features within the main malware module
[MegaCortex](https://attack.mitre.org/software/S0576) has checked the number of CPUs in the system to avoid being run in a sandbox or emulator.(Citation: IBM MegaCortex)
Defense Impairment
2 techniques
Defense Impairment
[MegaCortex](https://attack.mitre.org/software/S0576) has added entries to the Registry for ransom contact information.(Citation: IBM MegaCortex)
[MegaCortex](https://attack.mitre.org/software/S0576) was used to kill endpoint security processes.(Citation: IBM MegaCortex)
Credential Access
2 techniques
Credential Access
The threat actors will also use a variety of LOLBins and legitimate software such as 7-Zip, PowerShell scripts, wmic, nslookup, adfind.exe, mstds.exe, Mimikatz, Ntsdutil.exe, and massscan.exe.
Some of these criminals were dealing with the penetration effort, using multiple mechanisms to compromise IT networks, including brute force attacks, SQL injections, stolen credentials and phishing emails with malicious attachments.
Discovery
7 techniques
Discovery
The threat actors will also use a variety of LOLBins and legitimate software such as ... nslookup...
The threat actors will also use a variety of LOLBins and legitimate software such as ... massscan.exe.
FireEye Mandiant originally explored the link between financially motivated actors and OT in July 2020, when researchers found process kill lists deployed alongside seven different ransomware families... The second kill list was deployed alongside Clop ransomware.
[MegaCortex](https://attack.mitre.org/software/S0576) can parse the available drives and directories to determine which files to encrypt.(Citation: IBM MegaCortex)
The threat actors will also use a variety of LOLBins and legitimate software such as ... adfind.exe...
Other upgrades in version 2.0 include anti-analysis features within the main malware module
[MegaCortex](https://attack.mitre.org/software/S0576) has checked the number of CPUs in the system to avoid being run in a sandbox or emulator.(Citation: IBM MegaCortex)
Lateral Movement
1 technique
Lateral Movement
Once the MegaCortex actors gain access, they then push the ransomware out to machines on the network via an active directory controller or post-exploitation kits.
Collection
1 technique
Collection
The threat actors will also use a variety of LOLBins and legitimate software such as 7-Zip...
Command and Control
1 technique
Command and Control
The response can be a simple acknowledgment or a longer set of instructions, a module or executable... In many cases the C2 server response only contains an updated version of the binary... If the victim is infected with the latest version of Emotet... the latest modules are downloaded.
Exfiltration
2 techniques
Exfiltration
Stadler Rail : intrusion en 2020, exfiltration de données, chiffrement des systèmes
...an unnamed cybercriminal group that hacked corporate networks, stole data and encrypted systems to extort victims.
Impact
8 techniques
Impact
[MegaCortex](https://attack.mitre.org/software/S0576) has used the open-source library, Mbed Crypto, and generated AES keys to carry out the file encryption process.(Citation: IBM MegaCortex)(Citation: mbed-crypto)
[MegaCortex](https://attack.mitre.org/software/S0576) can stop and disable services on the system.(Citation: IBM MegaCortex)
[MegaCortex](https://attack.mitre.org/software/S0576) has deleted volume shadow copies using <code>vssadmin.exe</code>.(Citation: IBM MegaCortex)
The process kill lists were designed to amplify the effects of known ransomware strains.
[MegaCortex](https://attack.mitre.org/software/S0576) has changed user account passwords and logged users off the system.(Citation: IBM MegaCortex)
[MegaCortex](https://attack.mitre.org/software/S0576) can wipe deleted data from all drives using <code>[cipher.exe](https://attack.mitre.org/software/S1205)</code>.(Citation: IBM MegaCortex)
Les charges retenues par le Ministère public incluent : ... Détérioration grave de données
rançon de 6 millions de dollars en bitcoins exigée
Observables
15 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
87 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.