Skip to content
NewCybercrime Report 2026 · Eight Chapters · A Post Is Not An Incident → Explore The ChaptersCybercrime Report 2026 → Explore

Odin Research / What is / Malware and backdoors

What Is Ramnit? The Long-Running Banking Trojan and Botnet

From file infector to Zeus-powered banking trojan to a botnet that outlived a Europol takedown: what Ramnit does and why old Ramnit records still clog threat feeds.

By
Odin by Brandefense
Updated
21 Nov 2026
Reading time
7 min read
Type
Banking trojan

In short

Ramnit is a Windows banking trojan and botnet first seen in 2010. It began as a worm that spread through removable drives and infected executable and HTML files. In 2011 it took in leaked Zeus source code and became a banking trojan that injects content into web pages, steals cookies and FTP credentials, and gives attackers remote access.

Key takeaways

What it is
A modular Windows trojan, active since 2010, that steals banking and shopping data by injecting fake content into the pages a victim visits.
How it works
Modules hook the browser's HTTP functions, grab cookies and FTP credentials, and add antivirus exceptions. Bots find their servers through a domain generation algorithm.
Why it matters
Europol shut down 300 Ramnit command servers in 2015, yet CERT Polska still saw it distributed through an exploit kit in 2017. Botnets like this rarely die completely.
What Odin Research saw
110 Ramnit endpoints on 98 hosts in Monograph 24, only 3 confirmed. Most were old, uncorroborated feed records, so 107 stayed on watchlists.
What to do first
Patch browsers, block removable-media autorun, watch Startup and Run-key changes, and recheck any Ramnit tag before you block an address.

What is Ramnit?

Ramnit is a Windows banking trojan and botnet first seen in 2010. It started as a worm that spread through removable drives and infected executables and HTML files. In 2011 a version took in part of the leaked Zeus source code and became a banking trojan that alters web pages to steal data.

That history comes from CERT Polska, the Polish national CERT, which published an in-depth analysis in September 2017. CERT Polska notes that Europol shut down 300 Ramnit command and control servers in 2015. Ramnit kept going anyway. In 2017 it was being distributed by the RIG exploit kit through so-called seamless gates.

Ramnit is a classic trojan and botnet. It is not new or advanced, but it shows how long old malware can stay alive and how long its infrastructure lingers in threat feeds.

How Ramnit works

CERT Polska's analysis describes Ramnit as modular. The core bot downloads modules for each job:

  • Hooker. Performs man-in-the-browser attacks by hooking HTTP functions. Webinjects use the standard Zeus format.
  • Cookie Grabber. Steals browser cookies and sends them to the server as a zip file. Stolen session cookies can let criminals reuse logged-in sessions.
  • Antivirus Trusted Module. Adds exceptions to several antivirus products so the malware is not scanned.
  • Chrome reinstall module. Uninstalls and reinstalls Google Chrome.

Ramnit also steals FTP credentials. It persists by copying itself into the user's Startup folder.

For communication, CERT Polska found that bots connect on port 443 but do not speak HTTPS. They use a custom protocol with RC4-encrypted chunks. The bot checks the server's answers against a hard-coded RSA public key and stops if they do not match. Server addresses come from a domain generation algorithm (DGA) with a hard-coded seed. A newer variant cycles through three top-level domains.

F5 Labs analyzed a later Ramnit campaign in January 2018. It saw persistence through Windows Run registry keys and modules injected into two svchost.exe processes. The command server also supported VNC and SOCKS functions for remote control. F5 said that command framework is shared with Gozi, GootKit and Tinba.

How attackers use Ramnit

Ramnit's main job is fraud. Its webinjects change what a victim sees on a real banking or shopping site.

  • Fake prompts. F5 Labs described injected pages that show fake "technical issue" or "one-time check" messages. These ask for card numbers, CVV codes, Social Security numbers and security answers.
  • Beyond banks. In its holiday 2017 campaign, F5 found that retail eCommerce sites made up 64% of Ramnit's targets. Banks were a smaller share, alongside travel, cloud storage, delivery and dating sites.
  • Remote control. VNC and SOCKS support let operators act from the victim's own machine and network, which helps fraud slip past checks based on location.

Stolen card data often ends up for sale. See How to respond to stolen payment cards.

What Odin Research observed

Monograph 24 mapped stealer, loader and RAT infrastructure, and Ramnit made up the largest single family:

  • 110 endpoints, 3 confirmed. Ramnit had 110 endpoints on 98 hosts. Only three were confirmed command servers: one TLS listener on port 8443 on a Thai broadband network, and two FTP listeners on port 21 on two Chinese networks. Their addresses are withheld.
  • Old records dominate. Most endpoints were old, uncorroborated records. Of the study's 91 candidates, 86 were Ramnit. Some old records carry first-seen dates from earlier years, which are record dates, not activity in the study window.
  • Reused addresses. Some candidate addresses now show corporate firewall certificates, such as SANGFOR and FortiGate. These are not block-ready.
  • Dynamic lines. Five Ramnit endpoints sat on Chinanet and China Telecom subscriber ranges, where addresses change hands often. The report puts them on 24-hour watchlists.
  • Where they sit. China held 78 of the study's 193 endpoints, mostly Ramnit, with smaller Ramnit clusters in Hong Kong and South Korea.

In total, 107 of the 110 Ramnit endpoints stay on watchlists. Monograph 02 shows Ramnit labels turning up beside other C2: two confirmed hosts of a different framework also carried candidate Ramnit or ARTEX labels on port 443.

How to detect Ramnit

  • Persistence. Watch new files in user Startup folders and new Registry Run keys, as both CERT Polska and F5 describe.
  • Injected svchost processes. Code injected into svchost.exe by a process from a user folder is a strong lead.
  • Non-TLS traffic on port 443. Ramnit bots talk a custom RC4 protocol on port 443. Traffic on 443 that fails a TLS handshake check is worth inspecting.
  • DGA lookups. Bursts of failed DNS lookups for random-looking domains point to a DGA.
  • Antivirus exclusions. New exclusions added outside your management console deserve an alert.

Monograph 24 does not ship a Ramnit-specific rule. Its value is in triage: recheck Ramnit tags before acting. Rules for the other families in that study are in the Defense Kit.

How to defend against Ramnit

  1. Patch browsers and plugins. Ramnit has spread through exploit kits, which target unpatched browsers. See exploit kit.
  2. Control removable media. Disable autorun and scan USB drives, since Ramnit has spread through removable drives.
  3. Protect sessions. Use MFA, bind sessions to devices where possible and alert on sign-ins from unusual locations.
  4. Expire stale indicators. Time-box Ramnit addresses from old feeds and recheck them before renewal, as Monograph 24 advises for dynamic lines.

Ramnit compared with other delivery-stage malware in Monograph 24

FamilyRoleEndpoints (hosts)ConfirmedPattern
RamnitLong-running dropper and banking trojan110 (98)3Mostly old records; 5 on dynamic telecom lines
PikaBotPhishing loader11 (8)2Two FTP drops in Italy; 9 suspected relays
ChaluboRATLinux cloud RAT7 (7)4Four Hong Kong nodes in one /24
RaptorRATMulti-platform RAT9 (9)0All on AWS port 443, one shared TLS fingerprint

Frequently asked questions about Ramnit

What is Ramnit?

Ramnit is a Windows banking trojan and botnet first seen in 2010. It began as a file-infecting worm and, after taking in leaked Zeus code in 2011, became a banking trojan that injects fake content into web pages.

Is Ramnit still active?

Yes. Europol shut down 300 of its command servers in 2015, but CERT Polska saw Ramnit distributed through the RIG exploit kit in 2017, and F5 Labs tracked a large campaign in late 2017. Odin Research confirmed three Ramnit servers in November 2026.

How does Ramnit spread?

CERT Polska describes spread through removable drives and infected executable and HTML files, and later through exploit kits. F5 Labs also describes social engineering such as malicious links and attachments.

What does Ramnit steal?

Banking and shopping data through webinjects, browser cookies, FTP credentials and anything typed into fake prompts, such as card numbers, CVV codes and security answers.

Is Ramnit related to Zeus?

Yes. CERT Polska says a 2011 Ramnit version took in part of the leaked Zeus source code, and Ramnit webinjects use the standard Zeus format.

How do I remove Ramnit?

Isolate the machine, remove persistence in Startup folders and Run keys, and reimage if executables or HTML files were infected. Reset passwords and revoke sessions used on the machine.

How do I detect Ramnit?

Look for new Startup entries and Run keys, code injected into svchost.exe, custom non-TLS traffic on port 443, DGA-style DNS failures and unexpected antivirus exclusions.

Sources

  1. CERT Polska, "Ramnit: in-depth analysis", 29 September 2017. cert.pl/en/posts/2017/09/ramnit-in-depth-analysis (checked 21 November 2026)
  2. F5 Labs, "Ramnit Goes on a Holiday Shopping Spree, Targeting Retailers and Banks", 15 January 2018. f5.com/labs/articles/threat-intelligence/malware/ramnit-goes-on-a-holiday-shopping-spree-targeting-retailers-and-banks (checked 21 November 2026)

Related tools and terms

All Odin Research explanations · Brandefense glossary

Odin Research

Get the rules, not just the definition

Every Odin Research report ships with verified indicators and detection rules you can load today.

Open the Defense Kit