
A remote access trojan (RAT) is malware that gives an attacker hidden, full remote control of an infected computer. Like any trojan horse, it usually arrives disguised as something harmless. Once running, it connects back to the attacker and waits for commands.
Attackers also abuse legitimate remote support software in the same way. MITRE ATT&CK covers this under T1219, Remote Access Tools, noting that such tools can provide an interactive session or a backup way into a network.
A RAT gives an attacker a live foothold for data theft, keylogging and lateral movement. Many RATs also steal saved credentials, which can later appear in criminal markets. Endpoint protection, control over which remote tools are allowed and monitoring of outbound connections help detect them. Infected machines are sometimes also sold as access, so they connect to the wider trade in stolen logins.
Sources: MITRE ATT&CK TA0011: Command and Control, MITRE ATT&CK T1219: Remote Access Tools