A remote access trojan, or RAT, is a program that looks harmless or helpful but quietly opens a back door to your machine. Once it runs, someone else can operate your computer from far away, usually without any visible sign.
How a RAT works
The "trojan" part is the disguise. Like the wooden horse, the program arrives inside something you chose to run: a cracked app, a fake installer, a document, a browser extension or a file that was downloaded from a site that seemed legitimate. When it starts, it contacts a server the attacker controls and waits for instructions. That server is often called a command-and-control server.
From there, a typical RAT can browse and copy files, record keystrokes, take screenshots, switch on a webcam or microphone, install more malware and use your machine's power for the attacker's own purposes, such as cryptocurrency mining. Many include an infostealer component aimed at saved browser passwords, session cookies and crypto wallets.
Why it matters for AI users
AI tooling has widened the ways a RAT can reach you. People now download large model files, community fine-tunes and plugins from public hubs, often because a version is described as "uncensored" or faster. A model file is data, but the software around it can be tricked into acting on instructions hidden inside, which is how a supply chain attack can end with a program running on your machine. AI agents with a shell add a second route: if one is told by poisoned text to download and run a script, that is prompt injection leading straight to a RAT.
Signs and defenses
A RAT tries to stay quiet, so the signs are indirect: unexplained network traffic, a fan that spins when the machine is idle, a webcam light that turns on, or accounts that get accessed from places you have never been. Good habits reduce the odds far more than detection does:
- Run software and models only from sources you have reason to trust, and be wary of brand-new accounts.
- Never run a command an AI model or a web page tells you to run without reading it first.
- Give agents the least privilege they need and run them in an agent sandbox.
- Keep operating systems and security tools current, and use multi-factor authentication so a stolen password is not enough.
If you think you have one
Disconnect the machine from the network, change your important passwords from a different, clean device, revoke active sessions and rotate keys for anything stored on the infected computer. For anything critical, a full reinstall is safer than trying to clean it by hand.