RAT (remote-access trojan)
acronymKept in this browser · My desk
Stands for: remote-access trojan: malware that gives an intruder hidden remote control of a computer or phone
A trojan horse that, once run, gives an intruder hidden and lasting remote control of the computer or phone: files, screen, keyboard, camera, microphone and the victim's own sessions.
The remote-access trojan (RAT) turned the trojan horse from a one-shot trick into a service its operator can use for months. Back Orifice, released by the Cult of the Dead Cow in 1998, NetBus and SubSeven set the pattern on Windows: a server the victim is tricked into running, which starts with the system and hides, and a client the intruder uses to control it. Espionage adopted the form (GhostNet, 2009), and so did banking fraud, where a RAT on the victim's own device makes the fraudulent transfer look like the customer's.
What it is. A remote-access trojan is a backdoor that arrives disguised and stays to be driven by hand. The National Institute of Standards and Technology (NIST), in its malware guide, Special Publication 800-83 Rev. 1 (July 2013), defines a backdoor as a malicious program that listens for commands on a certain Transmission Control Protocol (TCP) or User Datagram Protocol (UDP) port, and names two kinds: zombies, better known as bots, installed to make the host attack others, and remote administration tools, installed so that a remote attacker can reach the host's functions and data as needed. The acronym is read two ways: MITRE ATT&CK describes njRAT and gh0st RAT as a "remote access tool (RAT)", and the Federal Bureau of Investigation (FBI) called Blackshades the "Blackshades Remote Access Tool (RAT)"; the trojan reading stresses the deception that gets it installed, the tool reading stresses that the same functions exist in honest software.
The founding argument was about words. Microsoft's bulletin MS98-010 said Back Orifice exploited no flaw in Windows: a user had to install it, and a properly configured firewall would stop the direct connection it needed. The Cult of the Dead Cow answered that the program did nothing Windows 95 and 98 were not designed to do, using documented calls to reveal cached passwords, log keystrokes, capture the screen and move files, and that it had been downloaded at least 35,000 times in its first days. Both were right, which is the point: a RAT is defined by its use, and the same functions in an administrator's hands are a support tool.
The design settled quickly. F-Secure's descriptions of NetBus and SubSeven show a server that installs itself to run at every start-up, hides its process, refuses deletion and announces new victims to its operator through chat or email, and a client that scans for servers and controls them; SubSeven listed 113 capabilities in its first version. In 2009 the Information Warfare Monitor documented GhostNet, 1,295 infected hosts in 103 countries, close to 30% of them at ministries, embassies and similar targets, while stating that it could not identify the attackers.
How one works, in principle. There are two halves: an implant on the victim's machine and a controller in the operator's hands. In 1998 the controller connected in, which is why a firewall could stop it; today the implant calls out to its command-and-control (C2) server, so the connection looks like the victim's own outbound traffic. MITRE's page on njRAT, first observed in 2012, lists the usual repertoire: persistence through a Registry Run key and a shortcut in the Startup folder, HTTP for its C2 traffic encoded in Base64, fast-flux DNS (Domain Name System) to keep its servers reachable, a keylogger, webcam access, theft of passwords saved in browsers, file management, a remote command shell, and a change to the Windows firewall so that it can communicate. Its page on gh0st RAT, whose source code is public and has been used by several groups, adds a new Windows service for persistence, compression and RC4 or XOR (exclusive-or) encryption of its traffic, dynamic DNS and the wiping of event logs.
A commodity with a price. On 19 May 2014 the FBI and the US Attorney for the Southern District of New York announced the Blackshades takedown: the RAT could be bought for as little as $40, had been sold to thousands of people in more than 100 countries and had infected more than half a million computers, letting buyers steal passwords and banking credentials, take over social media accounts, read files, record keystrokes, switch on webcams, hold a computer for ransom and use it in distributed denial-of-service (DDoS) attacks. The operation covered 18 other countries, with more than 90 arrests, more than 300 searches and more than 1,900 domains seized; the FBI said it believed a Swedish national, indicted and arrested in Moldova, and a US citizen who had pleaded guilty had co-developed it. The pattern continues: on 12 November 2026 Europol, on Operation Endgame's site, reported action against CastleRAT, a remote access trojan known since 2025 whose use had led to encrypted data, crippled systems and ransom payments, with 120 servers and 39 domains seized.
On phones the RAT works through accessibility permissions. IBM described PixPirate in 2024 as a financial RAT aimed at banks in Brazil and the Pix: it reads the screen, steals credentials and card data, reads and deletes the bank's text messages and makes the transfer from the victim's own device, so that the bank sees a familiar phone.
When the RAT is a legitimate product. MITRE ATT&CK technique T1219, Remote Access Tools (version 3.0, last modified 12 May 2026), describes adversaries using legitimate remote access software as an interactive C2 channel, with sub-techniques for IDE (integrated development environment) tunnelling, remote desktop software and remote access hardware such as IP-based KVM (keyboard, video and mouse) devices; its examples include the Akira and BlackByte groups using AnyDesk and the Carbanak group using Ammyy Admin and TeamViewer. A joint advisory by the Cybersecurity and Infrastructure Security Agency (CISA), the National Security Agency and the Multi-State Information Sharing and Analysis Center, AA23-025A of 25 January 2023, described a campaign found in October 2022 in which phishing emails led victims to ScreenConnect and AnyDesk run as portable executables, which need no administrator rights and so slip past controls on software installation; the operators then staged a refund scam, altering the bank account summary the victim saw so that it showed a mistaken refund to be paid back.
Defences. Application control and least privilege on computers, refusal of accessibility permissions on phones, and monitoring of outbound connections to unknown destinations, because a modern RAT calls home rather than waiting to be called. CISA adds an inventory of the remote access tools allowed on the network, review of logs for portable remote-management programs, and allowlisting that blocks portable versions of unauthorized remote access software; MITRE adds blocking IP-based KVM devices where they are not needed. NIST's guide advises rebuilding, rather than disinfecting, a host that has had backdoors or other attacker tools installed, because rebuilding is the most reliable way of restoring its integrity when the intruder's actions cannot be known. Neighbours: the trojan horse that delivers it, the botnet whose bots are its mass-produced cousins, the infostealer that takes everything in one pass instead of staying, and the loader that often installs it.
Also known as: remote access trojan, remote-access trojan, rat, backdoor trojan, trojan de acesso remoto
Sources
- Microsoft Security Bulletin MS98-010 (read 2026-11-23): the Cult of the Dead Cow released Back Orifice on 21 July 1998; it exploits no Windows flaw but needs the user to install it and the attacker to connect directly, which a properly configured firewall prevents
- Cult of the Dead Cow, response to Microsoft, press release, 10 August 1998 (read 2026-11-23): released on 3 August, at least 35,000 downloads by 7 August; uses documented Windows calls to reveal cached passwords, log keystrokes, capture the screen and move files
- F-Secure, NetBus description (read 2026-11-23): client and server; version 1.60 as PATCH.EXE; starts with Windows, hides its process, refuses deletion; the client scans address ranges for servers
- F-Secure, SubSeven description (read 2026-11-23): first discovered May 1999; 113 capabilities; packed versions evade scanners; notifies its author of victims through ICQ, IRC and email
- Information Warfare Monitor (Citizen Lab), Tracking GhostNet, March 2009 (read 2026-11-23): 1,295 infected hosts in 103 countries, close to 30% of high value; attacker identity and motive unknown
- IBM, PixPirate, 13 March 2024 (read 2026-11-23): a financial remote access trojan aimed at banks in Brazil and the Pix; abuses Android accessibility; performs on-device fraud from the victim's phone
- NIST, Special Publication 800-83 Revision 1, Guide to Malware Incident Prevention and Handling for Desktops and Laptops, Souppaya and Scarfone, July 2013 (read 2026-11-23): a backdoor is a malicious program that listens for commands on a certain TCP or UDP port; types include zombies (bots) and remote administration tools installed so a remote attacker can reach the host's functions and data as needed; rebuilding is the most reliable way of restoring a host that has had backdoors or other attacker tools installed
- NIST Computer Security Resource Center, Glossary, backdoor (read 2026-11-23): an undocumented way of gaining access to a computer system (from SP 800-82r3); a malicious program that listens for commands on a certain TCP or UDP port (from SP 800-83 Rev. 1)
- MITRE ATT&CK, Remote Access Tools, technique T1219, version 3.0, last modified 12 May 2026 (read 2026-11-23): adversaries may use legitimate remote access tools as an interactive command and control channel; sub-techniques IDE tunnelling, remote desktop software, remote access hardware; Akira and BlackByte used AnyDesk, Carbanak used Ammyy Admin and TeamViewer; mitigations include execution prevention, outbound filtering and blocking IP-based KVM devices
- MITRE ATT&CK, njRAT, software S0385 (read 2026-11-23): a remote access tool (RAT) first observed in 2012; Run key and Startup folder persistence; HTTP command and control encoded in Base64; fast-flux DNS; keylogging, webcam access, browser password theft, file manager, command shell; modifies the Windows firewall
- MITRE ATT&CK, gh0st RAT, software S0032 (read 2026-11-23): a remote access tool whose source code is public and has been used by multiple groups; Run key or Windows service persistence; zlib compression and RC4 or XOR encryption of command and control traffic; dynamic DNS; can wipe event logs
- FBI, International Blackshades Malware Takedown, 19 May 2014 (read 2026-11-23): the Blackshades RAT sold for as little as $40 to thousands of people in more than 100 countries, more than half a million computers infected; password and banking theft, keylogging, webcam activation, ransom, DDoS; 18 other countries, more than 90 arrests, more than 300 searches, more than 1,900 domains seized; an indictment unsealed against an alleged co-developer arrested in Moldova and a guilty plea by the other
- CISA, NSA and MS-ISAC, Advisory AA23-025A, Protecting Against Malicious Use of Remote Monitoring and Management Software, 25 January 2023 (read 2026-11-23): an October 2022 campaign in which phishing led to ScreenConnect and AnyDesk run as portable executables without administrator privileges, bypassing software controls; a refund scam built on an altered bank account summary; mitigations: audit remote access tools, review logs for portable RMM programs, application allowlisting
- Operation Endgame, official site, press release of 12 November 2026 attributed to Europol (read 2026-11-23): action against Gootloader, CastleRAT and StealC, 235 servers and 257 domains; CastleRAT a remote access trojan known since 2025 whose use led to encrypted data, crippled systems and ransom payments, 120 servers and 39 domains seized