RAT (remote-access trojan)

acronym

security

Kept 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

← Back to R Back to the glossary