Foxcolab

Glossary

Remote access trojan (RAT)

Definition

Remote access trojan: Malware disguised as a harmless file that gives an attacker hidden remote control of an infected device, typically to log keystrokes, capture the screen or webcam, copy files and run commands.

Also known asRATremote administration trojanremote access tool malware

In short

A remote access trojan (RAT) is malware that arrives disguised as a harmless file and then gives an attacker hidden remote control of the device. Typical RATs log keystrokes, capture the screen and webcam, run commands, copy files and steal saved browser passwords. Scammers get similar control by talking victims into installing real remote-access apps. Clean the device, then reset passwords and sessions from another one.

Key takeaways

  • A RAT is a Trojan whose job is remote control, reporting to the attacker's command-and-control server.
  • MITRE ATT&CK lists keylogging, screen and webcam capture, a remote shell and browser password theft for njRAT.
  • Because it sees your screen, a RAT reads data after it has been decrypted for you.
  • CISA warned in 2023 that criminals use legitimate remote monitoring tools for the same purpose.
  • After an infection, sign out every session and change passwords from a clean device.

Last reviewed 6 December 2026 by Foxcolab Team

A remote access trojan (RAT) is malware that gives an attacker hidden, remote control of an infected computer or phone. Like any Trojan horse, it arrives disguised as something harmless: an invoice, a delivery label, a cracked app. Once it runs, it connects back to the attacker's server and waits for orders.

What a RAT can do#

MITRE ATT&CK's entry for njRAT, "a remote access tool (RAT) that was first observed in 2012," lists what it can do:

  • recording keystrokes, as a keylogger does
  • capturing the screen and the webcam
  • opening a remote command shell
  • downloading more tools onto the machine
  • stealing passwords saved in the browser
  • sending it all back over its command-and-control channel

It can also copy itself to USB drives. Other RATs have different feature sets, but remote control is what they share.

Because the attacker sees what you see, a RAT gets around protections that live on the server or in the network. Encryption keeps data safe on the way and in storage; a RAT reads it on your screen after it's been decrypted for you. That's why a clean device matters as much as a strong password.

RATs and remote-access apps#

Not every takeover needs custom malware. In advisory AA23-025A, CISA, NSA and MS-ISAC described help-desk-themed phishing that got victims to download legitimate remote monitoring software, ScreenConnect and AnyDesk, run as portable programs that need no administrator rights. The criminals then used it "in a refund scam to steal money from victim bank accounts." Antivirus usually stays quiet, because the software itself is real. Anyone on the phone asking you to install a remote-access app is a red flag; see tech support scams.

Signs and what to do#

Watch for a pointer moving on its own, a webcam light you didn't turn on, new programs you didn't install, or sign-ins you don't recognize. Disconnect the device from the internet. From a different, clean device, change your passwords and end sessions you don't recognize. Treat the infected device as compromised until it's been cleaned or reset.

In Foxcolab#

A RAT has to be opened before it can run, and an email attachment is one way in. On the web, before you download an attachment that can run a program, such as an .exe or .apk file, Foxcolab Mail asks first: "This kind of file can harm your device." If you suspect a RAT, open Your devices in your account console from a clean device and choose Sign out all others (how). Then change your password, which also signs out every other session, and keep two-step verification on. Create a free account.

Keep exploring

All terms

Foxcolab

Private work tools, without the ads.

Mail, files, documents, spreadsheets and meetings in one account. Files, documents and spreadsheets are end-to-end encrypted.

Jump to