What is Remote Access Trojan (RAT)?
A remote access trojan (RAT) is malware that gives an attacker interactive control of an infected computer over the network, usually without the user noticing. Once installed, it connects back to the attacker's server and takes commands to browse files, run programs, log keystrokes, capture the screen or webcam and download more tools.
Definition
- Remote Access Trojan (RAT)
- A remote access trojan (RAT) is malware that gives an attacker interactive control of an infected computer over the network, usually without the user noticing. Once installed, it connects back to the attacker's server and takes commands to browse files, run programs, log keystrokes, capture the screen or webcam and download more tools.
How Remote Access Trojan (RAT) Works
The name joins how it arrives with what it does. Like any Trojan, a RAT gets in by being run under false pretenses: a fake invoice, a cracked tool, a malicious macro. What sets it apart is the payload, a complete remote administration toolkit. MITRE ATT&CK describes njRAT, first observed in 2012, as a remote access tool, and DarkComet as a Windows remote administration tool and backdoor. Families like these set the feature list that commodity RATs still copy.
Almost every RAT follows the same architecture.
- A builder lets the operator generate a client with the server address, port, encryption key and persistence options baked in.
- On the victim, the client installs persistence (a Run key, a scheduled task, a copy in the startup folder), then opens an outbound connection to the server and waits, since outbound traffic passes most firewalls where inbound would not.
- The server side is a panel listing every infected machine with its country, user name and webcam status, from which the operator opens a remote desktop, a file manager or a shell with one click.
Analysts also have to separate RATs from the legitimate tools that do the same job. Commercial remote support products provide the same interactive control with a signed binary, and attackers install them on purpose for exactly that reason. MITRE tracks that abuse separately as Remote Access Tools (T1219). The difference is authorization and context rather than capability: who installed it, whether IT uses that product, and where the sessions come from.
Remote Access Trojan (RAT) in SOC Operations
RAT activity tends to surface in three places. On the endpoint, a new autostart entry pointing at a binary in AppData, Temp or ProgramData, followed by a long-lived outbound connection from that same process. On the network, the connection itself: a workstation holding a session open to a dynamic DNS hostname, a rarely seen IP on an unusual port, or check-ins at regular intervals to one destination. From the user, sometimes nothing at all, although a webcam light switching on or a mouse moving by itself does get reported. Once a RAT is confirmed, treat the host as hands-on-keyboard compromised: take the C2 address and hunt for it across the fleet, reconstruct what the operator did during the sessions, and reset credentials used on the machine.
Practice Remote Access Trojan (RAT) in a Real SOC
SOCSimulator provides hands-on training with realistic SIEM, XDR, and Firewall interfaces. Build real analyst skills investigating remote access trojan (rat) scenarios with zero consequences, free.
Frequently Asked Questions
- How to check for remote access trojans?
- List the programs that start automatically and the processes holding outbound network connections, then investigate anything unsigned, recently created or running from a user-writable folder. On a single Windows machine, Autoruns and a view of active connections are a quick start; in a company, EDR process and network telemetry answers the same questions across every machine at once.
- How to get rid of a RAT virus?
- Disconnect the machine from the network first so the operator loses the session, then remove the RAT and every persistence entry it created, or better, reimage the system. Change passwords from a different, clean device, since the RAT may have logged keystrokes and stolen saved credentials, and check other machines for connections to the same server.
- What is a computer Trojan virus?
- It is malware disguised as a legitimate file so that the user runs it. Trojans do not copy themselves the way viruses do; the name refers to the disguise. A remote access trojan is one kind of Trojan whose hidden function is to hand an attacker remote control of the computer.
Sources
Related Terms
Command and Control (C2) refers to the infrastructure and communication channels adversaries use to ...
Persistence is the set of techniques an adversary uses to keep access to a compromised system after ...
Data exfiltration in cyber security is the unauthorized transfer of data from an organization's syst...
EDR (endpoint detection and response) is security software that puts an agent on each laptop, server...
A botnet is a network of compromised computers, routers or IoT devices that an attacker controls rem...
Lateral movement is the attack phase where adversaries expand access from an initial foothold to add...
A keylogger is software or hardware that records keystrokes as a user types, capturing passwords, me...
More Threats Terms
Related SOC Training Resources
Threat Hunter Career Guide: Salary & Skills
Threat Hunters do not wait for alerts. You develop hypotheses based on threat intelligence and adversary behavior models…
Read more Career PathIncident Responder Career Guide: Salary & Skills
Incident Responders lead the technical response when confirmed breaches happen. You coordinate containment, run forensic…
Read more Career PathSOC Analyst (Tier 2) Career Guide: Salary & Skills
Tier 2 SOC Analysts handle the investigations that Tier 1 escalates. You dig into multi-stage attacks, coordinate contai…
Read more ComparisonSOCSimulator vs Hack The Box: Comparison
Different tools for different career paths. SOCSimulator trains defensive analysts. Hack The Box trains offensive securi…
Read more ToolXDR Training Console: SOCSimulator
The XDR console in SOCSimulator replicates the investigation workflow of platforms like CrowdStrike Falcon, Microsoft De…
Read more ToolFirewall Training Console: SOCSimulator
The Firewall console in SOCSimulator replicates the log analysis experience of enterprise platforms like Palo Alto Netwo…
Read more TechniqueMITRE ATT&CK® Techniques: Detection Training Library
Browse all MITRE ATT&CK® techniques with detection strategies and example alerts.
Read more Career PathCybersecurity Career Paths: 2026 Guide
Explore SOC analyst career paths with salary data, required skills, and certification roadmaps.
Read more PlaybookSOC Investigation Playbooks: Step-by-Step Guides
Practitioner investigation playbooks with decision trees and real SIEM queries.
Read more FeatureShift Mode: Real-Time SOC Simulation
Practice alert triage under realistic time pressure with SLA timers and noise injection.
Read more FeatureOperations: Guided Training Operations
Structured CTF-style investigation operations covering real-world attack scenarios.
Read more BlogSOCSimulator Blog: Security Training Insights
Articles on SOC analyst skills, detection engineering, and career development.
Read more