Ramnit
- Type
- Banking trojan
- Capabilities
- Credential theftSession hijackingExfiltrationPrivilege escalationDefense evasion
- Delivery
- MalvertisingExploit kitDrive byMalspam
- Platforms
- Windows
Ramnit is a Windows banking trojan and file-infecting malware family first observed in 2010. It initially operated as a self-propagating worm and subsequently incorporated leaked Zeus code, developing capabilities for financial credential theft and online banking fraud. Ramnit infects executable files and HTML documents; infected HTML documents can contain malicious VBScript that drops and executes a worm component.
Ramnit uses web injects to alter browser-displayed pages and steal sensitive information, including credit card data. Its modular capabilities include screenshot capture, file execution, browser-cookie theft, FTP credential harvesting, browser communication hooks, and interference with antivirus software. Stolen cookies and other information can be uploaded to command-and-control infrastructure. Some variants incorporate Windows local privilege-escalation exploits for CVE-2013-3660 and CVE-2014-4113, enabling execution with SYSTEM privileges. Ramnit also delivers additional malware, including Ngioweb, AZORult, and ransomware payloads.
Distribution has included malvertising, exploit-kit-driven drive-by downloads, and delivery by downloaders such as Sload and SnatchLoader. The Seamless campaign distributed geographically tailored Ramnit payloads through the RIG exploit kit, while AdGholas campaigns delivered Ramnit through Stegano/Astrum. Retrieved modules and web-inject configurations can vary by victim location, with localized financial targets documented in Japan and the United States.
Ramnit uses a domain generation algorithm to locate command-and-control servers. Analyzed variants communicate through a custom protocol with RC4-encrypted data rather than HTTPS, even when using a port commonly associated with HTTPS. Its operations continued after a major infrastructure takedown in 2015. Legacy infections have also persisted in isolated industrial Windows environments, distinct from its principal financial-theft activity.
Associated vulnerabilities
9 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
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.
sLoad is a PowerShell downloader that most frequently delivers Ramnit banker... Line 13: sLoad downloading Ramnit, after receiving a command to do so.
Techniques & procedures
49 distinct techniques documented for this family, organized by ATT&CK tactic.
Resource Development
2 techniques
Resource Development
Once installed onto a client machine, banking trojans use a variety of techniques to create botnets, steal credentials, inject malicious code into browsers, or steal money.
It generates spam that it sends out on port 25,Hendrik already described this behavior in his post.
Initial Access
5 techniques
Initial Access
First Seamless campaign which is a Drive-by Download attack campaign uses Ramnit banking trojan.
The user reads the landing page of the RIG Exploit Kit at Gate, which attacks and sends Ramnit.
Conclusion This post has been an overview of a downloader malware known as SnatchLoader... It is being delivered via spam campaigns
The email includes a .rar file attachment that, when downloaded and unzipped, reveals a .pdf.lnk file disguised as a legitimate PDF document.
The emails are crafted in the targeted country’s language and are often personalized to include recipients’ names and addresses in various parts of the email such as email body and subject. TA554 frequently uses package delivery or order notification lures; the emails contain URLs linking to zipped LNK files or zipped documents.
Execution
9 techniques
Execution
Attackers can use WMI (MITRE Technique T1047) to interact with local and remote systems and use them to perform many offensive tactics.
Persistence Using Scheduled Task: MITRE Technique T1053. The malicious PowerShell script creates a scheduled task (AppRunLog).
this post by Nocturnus Research Team, which details how the banking trojan Ramnit utilizes COM API to create scheduled tasks, in an attempt to remain persistent
The original exploit for CVE-2014-4113 was part of an exploit framework in which the API passes a command-line argument, and that command is executed as SYSTEM. As that wasn’t the original API for PlayBit’s exploit, some adjustments were made and PlayBit’s exploits were re-adjusted to receive a command-line argument to be executed once elevated.
The attackers used a combination of built-in Windows products including PowerShell, BITSAdmin, and certutil to avoid detection.
その後、復号したマルウェアを%TEMP%\Low以下に保存し、wmicコマンドを使用して実行します。
BITSAdmin Abuse: MITRE Technique T1197. The malicious PowerShell script uses BITSAdmin to download sLoad from bureaucratica[.]org/bureaux/tica.
It starts with the usual large letter message "Please wait page is loading" -then Java exploit launches and compromise takes place if the machine is vulnerable.
つまり攻撃者がマルウェアをユーザーのPCに感染させ、そのマルウェアを利用してそのユーザーのPCに新しいデスクトップを作成し、そのデスクトップの上で悪事を働いても、その間ユーザーに気づく術はありません。
Persistence
6 techniques
Persistence
Persistence Using Scheduled Task: MITRE Technique T1053. The malicious PowerShell script creates a scheduled task (AppRunLog).
this post by Nocturnus Research Team, which details how the banking trojan Ramnit utilizes COM API to create scheduled tasks, in an attempt to remain persistent
AvTrust Antivirus Trusted Module v2.0 (AVG, Avast, Nod32, Norton, Bitdefender) Add to antivirus software exception list
BITSAdmin Abuse: MITRE Technique T1197. The malicious PowerShell script uses BITSAdmin to download sLoad from bureaucratica[.]org/bureaux/tica.
Adds a Windows service Mi cor soft Windows Service - note the spelling
\Start Menu\Programs\Startup\ vcryserj.exe - copy of the original
Privilege Escalation
6 techniques
Privilege Escalation
Persistence Using Scheduled Task: MITRE Technique T1053. The malicious PowerShell script creates a scheduled task (AppRunLog).
this post by Nocturnus Research Team, which details how the banking trojan Ramnit utilizes COM API to create scheduled tasks, in an attempt to remain persistent
Loader introduced with remote library injection ... Masquerades Bumblebee’s main DLL as a legitimate DLL
All of the exploits that we found related to this actor were 1-Day exploits for Local Privilege Escalation (LPE) vulnerabilities in Windows.
Adds a Windows service Mi cor soft Windows Service - note the spelling
\Start Menu\Programs\Startup\ vcryserj.exe - copy of the original
Stealth
10 techniques
Stealth
\Local Settings\Temp\ dnsgvbny.sys the rootkit
Powershell Obfuscation: MITRE Technique T1027. The ZIP file uses the .lnk that links to a PowerShell with a malicious obfuscated encoded command.
The second argument of “getexec” command is used to specify the file name for the downloaded executable... “msiexic.exe”
Loader introduced with remote library injection ... Masquerades Bumblebee’s main DLL as a legitimate DLL
The encoded payloads were decoded into a malicious executable using certutil.
BITSAdmin Abuse: MITRE Technique T1197. The malicious PowerShell script uses BITSAdmin to download sLoad from bureaucratica[.]org/bureaux/tica.
The payload is then decrypted and launched via regsvr32.exe or rundll32.exe.
PlayBit supplies the customer with a thin wrapper around the exploit, which checks whether the target computer is indeed vulnerable. Although the check varies a bit between different exploits and versions, the basics are the same: the modification date of the vulnerable win32k driver is checked, to detect if a patch was installed.
この仕組みを利用してユーザーには見ることのできない隠されたデスクトップを作成し悪用する脅威が存在します。
After establishing its persistence using scheduled tasks, the Ramnit banking Trojan executes its reflective code injection.
Defense Impairment
2 techniques
Defense Impairment
AvTrust Antivirus Trusted Module v2.0 (AVG, Avast, Nod32, Norton, Bitdefender) Add to antivirus software exception list
Looking at this DLL with IDA, you can see that it is a program that interferes with Anti-Virus software.
Credential Access
4 techniques
Credential Access
Dubbed ‘Karius’, the Trojan aims to carry out web injects to add additional fields into a bank’s legitimate login page and send the inputted information to the attacker.
This file seems to be zip. Looking inside it was IE's cookies. There was a DLL module that zipped the cookie, so it might be related.
“Data-Stealing Threats… focus on stored credentials, cryptocurrencies, browser sessions/cookies, browser passwords…”
Ramnit and Hupigon are both long-standing trojans that can facilitate data theft and the delivery of additional malware. Either could have been involved in the theft of credentials attackers later reused to access the housing authority’s system
Discovery
3 techniques
Discovery
After obtaining information about the victim’s network, the payload collects additional information about the local operating system and processor.
malicious svchost.exe modifies or tries to modify every binary and HTML file by appending malicious code to each file or a vbs script to HTML files
PlayBit supplies the customer with a thin wrapper around the exploit, which checks whether the target computer is indeed vulnerable. Although the check varies a bit between different exploits and versions, the basics are the same: the modification date of the vulnerable win32k driver is checked, to detect if a patch was installed.
Lateral Movement
1 technique
Lateral Movement
オンラインバンキングマルウェア等が利用するHiddenVNC(hVNC)を通して攻撃者がユーザーの隠しデスクトップ上で様々なウインドウを開いていても、元のデスクトップ側から(ツールなどを利用して)それらを列挙することは基本的にできません。
Collection
4 techniques
Collection
Dubbed ‘Karius’, the Trojan aims to carry out web injects to add additional fields into a bank’s legitimate login page and send the inputted information to the attacker.
The main method sLoad uses to collect information is via screen capturing. It continues to capture the screen throughout its entire execution.
Finally, look at 139_13.bin. This is the config of the injecting code for the web page.
Cookie Grabber v0.2 (no mask) Compress and send cookies of browsers (firefox, chorome, opera, IE) to zip.
Command and Control
8 techniques
Command and Control
Two malicious files communicate with it... It and a single housing authority IP address exchanged data 5,904 times between November 2 and December 30.
Ramnit uses the original protocol when communicating with C2. Following this protocol, I try to extract the configs and modules from the traffic of Ramnit and C2. This protocol uses port 443. But, not https.
Upon infection, the sample starts to make DNS queries for many different domains in rapid succession.
It is used mainly to turn the victim’s machine into malicious proxy servers... Ngioweb represents a multifunctional proxy server... The malware can operate in two main modes: Regular back-connect proxy Relay proxy.
The main functionality of SnatchLoader is to download and load additional malware families so most of the command types and arguments are in support of doing that in various ways
Upon infection, the sample starts to make DNS queries for many different domains in rapid succession.
README.md ... Domain Generation Algorithms (DGAs) of Malware reimplemented in Python.
This data is encoded with RC4. So I decode it.
Exfiltration
1 technique
Exfiltration
UPLOAD_COOKIES
Observables
203 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
51 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.