Magniber
- Type
- Ransomware
- Capabilities
- ExtortionDefense evasionProcess injectionPrivilege escalation
- Delivery
- PhishingMalvertisingExploit kitDrive byFake update
- Platforms
- Windows
Magniber is a Windows ransomware family first observed in 2017 and closely associated with the Magnitude exploit kit. Initially concentrated on South Korean systems, its campaigns expanded to other Asian markets and subsequently reached victims worldwide, including European users. It has affected both individuals and organizations; some large fake-update campaigns predominantly affected consumers and students. Magniber deployments have been associated with the cybercriminal group tracked as Storm-0381.
Distribution methods include malvertising, browser exploit kits, phishing with malicious JavaScript files, and counterfeit Windows or browser updates delivered as Windows Installer packages, signed application packages, or scripts. Exploit-based campaigns have abused Internet Explorer vulnerabilities, Chromium exploitation chains, and the PrintNightmare vulnerability CVE-2021-34527. Campaigns also exploited CVE-2022-44698 and CVE-2023-24880, using malformed Authenticode signatures to bypass Windows Mark-of-the-Web and SmartScreen security warnings.
Magniber encrypts victim files and leaves ransom instructions directing victims to a Tor-based payment portal. Analyzed variants generate individual AES keys and initialization vectors for files and protect that material with an embedded attacker RSA public key, allowing encryption without contacting a command-and-control server. Some variants delete shadow copies or disable recovery mechanisms to impede restoration. Its execution and evasion techniques include reflective DLL loading, process injection, dynamic API resolution, string and code obfuscation, and Heaven’s Gate transitions to invoke 64-bit system calls from 32-bit processes and evade user-mode API hooks. Observed infection chains also employ local privilege-escalation exploits and UAC bypass techniques.
Associated vulnerabilities
14 CVEs Mallory has correlated with this family across public research and vendor advisories. Each card links to the full Mallory page for that vulnerability.
2 more CVEs associated with this family tracked in Mallory.
Associated threat actors
1 distinct threat actor Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
Microsoft identified Magniber deployments from the Russian cybercrime group that it tracks as Storm-0381 through its heavy use of malvertising.
Techniques & procedures
37 distinct techniques documented for this family, organized by ATT&CK tactic.
Resource Development
2 techniques
Resource Development
We also see 1-click exploit used in malvertising (malicious ads) mostly by cyber crime/FIN actors. In the scenario where 1-click exploits are integrated into a chain of redirects like we see everyday in malicious advertising attack
Magniber was downloaded through the typosquatting method, which exploits typos made by the user when accessing domains
Initial Access
2 techniques
Initial Access
The Magnitude exploit kit is one of the longest-serving browser exploitation toolkits among those still in use... In our recent captures of Magnitude, we now see the latest Internet Explorer exploit (CVE-2018-8174) being used primarily.
After CVE-2018-8174’s exploitation, the XOR-encrypted Magniber is retrieved... Once exploitation of the Use After Free vulnerability in Internet Explorer (CVE-2018-8174) is successful, the VBScript will execute the following shellcode.
Execution
9 techniques
Execution
After Magnigate’s 302 redirection (Step 1), we see a Base64 obfuscated JavaScript (Step 2) used to launch Magnitude’s landing page, along with a Base64 encoded VBScript.
we see a Base64 obfuscated JavaScript (Step 2) used to launch Magnitude’s landing page, along with a Base64 encoded VBScript... the VBScript will execute the following shellcode
the threat operator used scripts as the distribution method during the period from September 8th to September 29th, 2022.
ZwCreateSection -> ZwMapViewOfSection ... ZwCreateThreadEx ... NtCreateSection -> NtMapViewOfSection ... NtCreateThreadEx | Instead of calling NtOpenProcess API in a normal way, Magniber shellcode sends SysCall index (0x23) directly to argument and calls fs:[C0] area... Because Magniber shellcode uses Heaven’s Gate technique to call 64-bit API directly from the 32-bit process (Internet Explorer), it is difficult to detect API call via common hooking.
Sure enough, the EXE references the DLL in the same folder, and it includes the string DllImportAttribute... the EXE will load an unmanaged DLL and call an export from it.
The exploitation starts with a JavaScript exploit for CVE-2021-21224. This is a type confusion vulnerability in V8, which allows the attacker to execute arbitrary code within a (sandboxed) Chromium renderer process.
When the downloaded files identified by MOTW are executed, a warning message is displayed.
In September 2022, Magniber ransomware was delivered using JScript files... whereas in the current campaign they are using MSI files with a different type of malformed signature.
若取得是高權限,則會直接到 hxxp://1fbw726f22j65y.doetax.site/ 取得勒索軟體,否則會先到 hxxp://2oct37evecvdw72y0b.doetax.site/ 下載惡意程式,提權後連線到 hxxp://1fbw726f22j65y.doetax.site/ 取得勒索軟體
Persistence
1 technique
Persistence
Modifies reference registry upon execution of fodhelper.exe (HKCU:\Software\Classes\ ms-settings \shell\open\command)
Privilege Escalation
5 techniques
Privilege Escalation
This loader unpacks the Magniber’s core DLL... and injects it into a process. Both elements, the loader and Magniber core, are DLLs with Reflective Loader stub... using the Reflective DLL injection technique.
OpenProcess -> WriteProcessMemory -> SetThreadContext -> ResumeThread ... NtCreateThreadEx -> GetThreadContext -> SetThreadContext -> NtResumeThread
we managed to track down more than 10 (!) of their Windows Kernel Local Privilege Escalation (LPE) exploits, many of which were zero-days at the time of development.
With a robust arbitrary read/write primitive in place, the exploit can finally do its thing and proceed to steal the SYSTEM token.
Recovery Environment Deactivation (UAC Bypassing) ... Modifies reference registry upon execution of fodhelper.exe (HKCU:\Software\Classes\ (custom progID) \shell\open\command)
Stealth
12 techniques
Stealth
Its source code is now more refined, leveraging various obfuscation techniques... After Magnigate’s 302 redirection (Step 1), we see a Base64 obfuscated JavaScript... the XOR-encrypted Magniber is retrieved.
First of all, API functions are now dynamically retrieved by their checksums... The function pointer is retrieved by searching through export tables of the DLLs that are currently loaded.
Both pages prompt users to install Windows application package file (.appx) to update the corresponding browser... the APPX file disguised as Chrome or Edge’s Windows update application internally contains a valid certificate.
This loader unpacks the Magniber’s core DLL... and injects it into a process. Both elements, the loader and Magniber core, are DLLs with Reflective Loader stub... using the Reflective DLL injection technique.
OpenProcess -> WriteProcessMemory -> SetThreadContext -> ResumeThread ... NtCreateThreadEx -> GetThreadContext -> SetThreadContext -> NtResumeThread
Finally, Magniber attempts to delete shadow copies using a UAC bypass.
Figure 6 is a part of the DLL code that downloads the ransomware’s encoded payload and decodes it.
allowed an attacker to use a malformed Authenticode signature to bypass SmartScreen security warnings
Encryption Process ... regsvr32.exe
7/20/2022 cpl rundll32.exe rundll32.exe
若取得是高權限,則會直接到 hxxp://1fbw726f22j65y.doetax.site/ 取得勒索軟體,否則會先到 hxxp://2oct37evecvdw72y0b.doetax.site/ 下載惡意程式,提權後連線到 hxxp://1fbw726f22j65y.doetax.site/ 取得勒索軟體
Both elements, the loader and Magniber core, are DLLs with Reflective Loader stub, that load themselves into a current process using the Reflective DLL injection technique.
Defense Impairment
4 techniques
Defense Impairment
Modifies reference registry upon execution of fodhelper.exe (HKCU:\Software\Classes\ ms-settings \shell\open\command)
the APPX file disguised as Chrome or Edge’s Windows update application internally contains a valid certificate... Magniber’s distributor signed the APPX file with a trusted certificate to disguise it as an innocuous app to deceive the system.
In order to bypass such execution blocks by MOTW, Magniber used a digital signature at the end of the script during the period between September 8th and September 29th, 2022.
Analysts at Picus Security identified a shared pattern: ransomware operators rely on stealth and defense-impairment methods after gaining a foothold.
Discovery
2 techniques
Discovery
Then, it enumerates in random order all logical drives that are not DRIVE_NO_ROOT_DIR or DRIVE_CDROM and proceeds to recursively traverse them to encrypt individual files.
Magniber would only install if a specific country code was returned, otherwise it would delete itself... the code of Magniber got updated to whitelist more languages.
Command and Control
1 technique
Command and Control
Figure 6 is a part of the DLL code that downloads the ransomware’s encoded payload and decodes it.
Exfiltration
1 technique
Exfiltration
Magniber also automatically opens up the payment page in the victim’s browser and while doing so, exfiltrates further information about the ransomware deployment through the URL, such as: The number of encrypted files, The total size of all encrypted files, The number of encrypted logical drives...
Impact
2 techniques
Impact
The actions performed by Magniber haven’t changed much; it encrypts files and at the end drops a ransom note named README.txt.
Once installed, the ransomware will delete shadow volume copies and then encrypt files.
Observables
39 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
37 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.