A remote access trojan is hidden software that lets a stranger control your computer from far away.
This guide is for anyone who uses a computer at home or at work, and for students starting out in security. You do not need to be technical to be affected: one opened attachment can give a stranger the same view of your screen that you have.
In short
- A remote access trojan, or RAT, hides on a computer and takes orders from an attacker over the internet.
- It can let the attacker see your files, record what you type and, on some devices, switch on your webcam.
- It usually arrives inside something that looks harmless, like an attachment or a free download.
- Updates, security software, care with downloads and backups lower the risk. If you suspect one, get the device checked or wiped.
What you will learn
- Explain what a RAT is in one sentence.
- Spot the common ways a RAT gets onto a computer.
- Check for signs that something may be wrong.
- Know the first steps to take if you think a device is infected.
- Disguised program (trojan)
- harmful software dressed up as something useful, so you run it yourself.
- Keystroke recorder (keylogger)
- a hidden tool that writes down every key you press, including passwords.
What is a remote access trojan?
Think of the wooden horse in the old Greek story. The city pulled in what looked like a gift, and soldiers hidden inside opened the gates at night.
A RAT works the same way. It arrives looking like something you want, such as an invoice, a game or a free tool. Once you open it, a hidden program sets itself up and quietly connects to the attacker.
From then on, the attacker can send it orders over the internet. That is the "remote access" part. They can look through files, copy them or watch the screen. They can also record what you type with a keylogger, a tool that notes every key you press.
Some attackers skip writing their own RAT. They misuse normal remote support tools, the kind an IT helper uses to fix your computer, and set them up without your knowledge.[1]
Where the comparison stops working: the soldiers in the horse had to leave to open the gates. A RAT can stay hidden for months, working quietly while you use the computer as normal.
Why does it matter?
A RAT turns your computer into a window for someone else. They can see what you see and, in many cases, act as you.
In 2014, US prosecutors said one RAT, sold online for about $40, had been used to infect more than half a million computers. It could switch on webcams, record keystrokes and steal files.[3]
If you use a computer at home
What could happen: a stranger reads your emails, sees your bank details as you type them or watches through your webcam.
Check this: keep your computer updated and your security software switched on.
Next: Antivirus for Beginners
If you run a small business
What could happen: one infected laptop gives an attacker your customer files and the passwords staff type into it.
Check this: ask your IT supplier which remote support tools are allowed, and how they block the rest.
If you are new to IT or security work
What could happen: you miss a RAT because it looks like a normal program talking to the internet.
Check this: learn what normal looks like on your devices, so odd programs and connections stand out.
What does it look like?
A RAT often arrives by email. Here is a made-up example of the kind of message that carries one.
Example only. All values are made up.
From: Accounts <[email protected]> (1) Subject: OVERDUE: invoice 0000 must be paid today (2) Hello, Please see the attached invoice. Payment is late. Open the file and confirm today to avoid a fee. Attachment: Invoice_0000_FAKE.pdf.exe (3)
- In a real message, this line would show a sender you do not know, or one made to look like a supplier.
- Pressure to act fast, so you open the file before you think.
- The name ends in ".exe", which means it is a program, not a document. The ".pdf" in the middle is there to fool you.
Why this is risky: opening the attachment runs a program. That program could set up a RAT without any sign on screen.
The safer way: do not open attachments you did not expect. Check with the sender by a phone number or website you already know, not one in the message. Let your security software scan any file before you open it.
How does it work?
- The bait arrives. You get an attachment, a link or a free download that hides the RAT. Sometimes a caller pretending to be IT support asks you to install a tool.[6]
- It sets up in secret. When you open it, the hidden program installs itself. Many RATs set themselves to start each time the computer starts.
- It calls home. The RAT connects out to a computer the attacker controls, called a command and control server, and waits for orders.
- The attacker takes over. They send orders: copy files, record keystrokes, take screenshots or switch on the camera.[3] Recording keystrokes is a common way to collect passwords as people type them.[2]
- They use what they find. Stolen passwords and files can be used for fraud, sold, or used to get into other systems.

UK government advice can help you lower the risk in the first place. It includes quick updates, security software, two-step sign-in and tested backups.[5]
If you think a computer has a RAT, the UK's National Cyber Security Centre suggests these broad steps. Update the system and run a security scan. If the scan cannot clean it, wipe the device and reinstall everything. Then restore your files from a backup made before the problem.[4] We also suggest you change important passwords from a different, clean device, because a keylogger may have recorded the old ones.

A worked example
Wren Gallardo is a freelance bookkeeper who works from home. One morning she gets an email that seems to come from a client. It says an invoice is overdue and asks her to open the attached file today.
She is busy, so she clicks it. Nothing seems to happen. She shrugs and gets on with her work.
Over the next week, odd things start. Her laptop is slower than usual. A program window flashes open and closes. A client mentions an odd email that came from Wren's address, which she never sent.
Wren calls her friend Emil Marlow, who works in IT support. He asks her to unplug the laptop from the internet first. He then helps her change her email and bank passwords from her phone, not the laptop, in case a keylogger had recorded them.
Next, Emil runs a full scan with up-to-date security software. It flags a hidden program that starts with the computer and connects to an unknown address abroad. Emil does not trust a simple clean-up for this. They wipe the laptop and reinstall the system from scratch.
Wren restores her client files from the external drive she backs up to each Friday. The backup is from before the email arrived. She turns on two-step sign-in for her email and bank. Her bank notes the incident on her account.
Wren now checks with clients by phone before she opens any surprise invoice.
Myths and mistakes
| What people think | What is true |
|---|---|
| I would notice if someone was controlling my computer. | RATs are built to stay quiet. Many work in the background with no visible sign. |
| Only big companies get targeted. | Cheap RATs have been sold online and used against ordinary home users. |
| A file called ".pdf" is always a document. | Check the very end of the name. "Invoice.pdf.exe" is a program. |
| Deleting the strange program fixes it. | It may have hidden copies or set up other tools. If in doubt, wipe and reinstall. |
| Covering the webcam solves the problem. | A cover helps with the camera, but a RAT can still read files and record keystrokes. |
What can I do this week?
- Turn on automatic updates for your computer and phone.
- Check that your security software is on and up to date.
- Set your computer to show full file names, including the ending like ".exe".
- Back up your important files to a drive you unplug afterwards, or to a cloud backup.
- Turn on two-step sign-in for your email and bank.
Checklist
- My computer installs updates automatically.
- Security software is switched on and up to date.
- I do not open attachments I did not expect.
- I only download software from official stores or the maker's own website.
- I never install a remote support tool because a stranger asked me to.
- I have a recent backup that is not always plugged in.
- I know the first steps if I think a device is infected.
Common questions
What does RAT stand for?
RAT stands for remote access trojan. "Remote access" means someone can control the computer from somewhere else. "Trojan" means it hides inside something that looks harmless, so the victim runs it themselves, like the wooden horse in the Greek story.
Can a RAT really turn on my webcam?
Yes, some can. US prosecutors described one RAT that let users switch on victims' webcams, record keystrokes and steal files. A camera cover blocks the picture, but keeping the RAT off your computer in the first place matters more.
How is a RAT different from a remote support tool?
The difference is permission. A remote support tool is installed with your knowledge so a helper can fix problems. A RAT is installed by trickery and hides. Attackers sometimes misuse real support tools too, which is why you should only install them for people you trust.
What are the signs of a RAT?
There may be none. Warning signs include a slow computer, programs that open or close by themselves and odd pop-ups. Others are security alerts, or friends getting messages you did not send. Each can have an innocent cause, so run a security scan next.
Can phones get RATs?
Yes, phones can be infected with similar spying apps. Install apps only from the official store, keep the phone updated and be wary of apps that ask for more access than they need. If you suspect one, a factory reset is often the advice.
Where next?
Ready for the detail? Read the practitioner guide: Remote Access Trojans (RATs) Guide. It goes further into detection signals, blocking misused support tools and how teams respond to and remove an infection.
Also useful:
- Malware for Beginners
- Remote Access Tools for Beginners
- Phishing for Beginners
- Antivirus for Beginners
Related NHI Mgmt Group resources: Infostealers vs RATs · Malware Guide · Malware Outbreak Playbook
Key terms
- Remote access trojan
- Hidden software that gives an attacker control of a computer over the internet.
- Trojan
- Harmful software that looks harmless, so the victim runs it.
- Keylogger
- A tool that records the keys a person presses, often to steal passwords.
- Command and control server
- A computer the attacker uses to send orders to infected devices.
- Malware
- Any software made to harm, spy on or take over a device.
- Backdoor
- A hidden way into a system that skips the normal checks.
Sources and further reading
- Remote Access Software (T1219). MITRE ATT&CK. https://attack.mitre.org/techniques/T1219/, accessed 28 Nov 2026.
- Input Capture: Keylogging (T1056.001). MITRE ATT&CK. https://attack.mitre.org/techniques/T1056/001/, accessed 28 Nov 2026.
- Manhattan U.S. Attorney and FBI Assistant Director-in-Charge announce charges in connection with Blackshades malware. US Attorney's Office, Southern District of New York, 19 May 2014. https://www.justice.gov/usao-sdny/pr/manhattan-us-attorney-and-fbi-assistant-director-charge-announce-charges-connection, accessed 28 Nov 2026.
- Recovering a hacked device. National Cyber Security Centre (UK). https://www.ncsc.gov.uk/guidance/hacked-device-action-to-take, accessed 28 Nov 2026.
- Mitigating malware and ransomware attacks. National Cyber Security Centre (UK). https://www.ncsc.gov.uk/guidance/mitigating-malware-and-ransomware-attacks, accessed 28 Nov 2026.
- Protecting Against Malicious Use of Remote Monitoring and Management Software (AA23-025A). CISA, NSA and MS-ISAC, 25 January 2023. https://www.cisa.gov/news-events/cybersecurity-advisories/aa23-025a, accessed 28 Nov 2026.