RAT malware is malicious software that gives an attacker remote control of an infected system. Technically, a remote access trojan creates covert command-and-control channels for persistence, surveillance, data theft, lateral movement, and execution of actions under the victim’s identity, often evading endpoint and network defenses.
What RAT malware does in practice
RAT malware matters because it turns an infection into interactive access. Once the trojan is running, an attacker can issue remote commands, browse files, and use the host as if they were sitting at the keyboard.
That makes the malware more than a one-time payload. A RAT is often built to stay hidden, reconnect after disruption, and give the operator a durable foothold for espionage, theft, or follow-on intrusion.
Why RAT malware is dangerous
The danger is not just remote control, but covert remote control. A RAT usually blends command-and-control traffic into normal activity, which lets attackers persist while avoiding immediate attention from endpoint or network defenses.
Because the malware acts through the compromised system, it can inherit trusted context, reach internal resources, and trigger actions that look like legitimate user behaviour. That makes it especially useful for lateral movement, credential theft, and data exfiltration.
How RAT malware supports persistence and surveillance
RAT operators typically want long-lived access, not a noisy smash-and-grab. The malware may establish autostart mechanisms, hide its presence, and repeatedly check in so the attacker can monitor activity over time.
This surveillance function is what separates many RAT infections from simpler trojans. The attacker can observe screenshots, keystrokes, processes, and network activity, then decide when to escalate or pivot deeper into the environment.
For a broader view of RAT families, loaders, evasion patterns, and sandbox analysis, see the Malware Guide.
Detection and response priorities for RAT infections
Detection usually depends on seeing what the malware is trying to hide, such as unusual outbound connections, unexpected persistence points, suspicious child processes, or remote activity that does not fit the host’s normal role. If the RAT is already established, containment should assume the endpoint may have been used to steal credentials, tokens, or other access material.
When the compromise reaches developer, CI/CD, or admin environments, the blast radius can extend beyond the host itself. The CircleCI breach 2023 shows how malware-driven access can expose secrets and keys at scale, while the Shai Hulud npm malware campaign illustrates how malicious packages can become a delivery path for broader secret exposure.
Risk and Threat Considerations
RAT malware creates a direct compromise path from one infected endpoint to internal trust, because the attacker can act as the victim, reuse active sessions, and harvest credentials or files from a system that may already be trusted by other services.
Failure mechanism: Covert remote access lets the attacker maintain command-and-control, hide interactive use, and pivot from the initial host into adjacent systems or accounts.
Impact: The result can be persistence, surveillance, data theft, privilege abuse, lateral movement, and post-compromise rotation of credentials, sessions, and keys.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
MITRE ATT&CK addresses the attack and risk surface, while CIS Controls v8 sets the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| MITRE ATT&CK | T1219 — Remote Access Software | RAT malware is a canonical remote access software technique used for covert control. |
| T1021 — Remote Services | RATs often leverage remote services for lateral movement and follow-on access. | |
| Recommendation — Map RAT activity to T1219 and hunt for remote administration, persistence, and command execution patterns. Correlate RAT detections with T1021-style remote service use and isolate affected paths. | ||
| CIS Controls v8 | CIS-10 — Malware Defenses | RAT malware is directly addressed by malware defence controls and detection coverage. |
| CIS-8 — Audit Log Management | RATs are often found through suspicious execution, logon, and network telemetry. | |
| CIS-6 — Access Control Management | RAT compromise can abuse stolen access, so access control limits downstream impact. | |
| Recommendation — Apply CIS-10 to detect, contain, and block malicious binaries, persistence, and command channels. Use CIS-8 to retain and review logs that reveal remote control, persistence, and lateral movement. Use CIS-6 to reduce reachable privilege and revoke suspicious access after RAT containment. | ||
Practitioner Guidance
What to watch for: Treat a confirmed RAT as an identity and endpoint incident, not just a malware cleanup. If the host handled sign-ins, secrets, certificates, or privileged sessions, assume those artefacts may need rotation or invalidation after containment.
Practitioner note: The highest-value response questions are usually “what did this machine touch?” and “what access did it enable?”, because RAT malware often matters less for the binary itself than for the trust and access it can abuse.
Related resources from NHI Mgmt Group
- What is the difference between a stealer and a RAT in a supply chain malware campaign?
- What is the difference between commodity RAT reuse and a single coordinated malware cluster?
- What makes Shai Hulud 2.0 different from a normal npm malware event?
- Why can a compromise of Intune or similar tools cause business disruption without malware?
Deepen Your Knowledge
Free weekly newsletter
Subscribe to the NHI & AI Identity Journal
The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.
Bonus 33% off our NHI Course when you subscribe.
Reviewed and updated by the NHIMG editorial team on October 25, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org