# Trojan Horses in Cybersecurity: Common Types and How They Spread

A Trojan horse is malware dressed as something you wanted. This guide explains how Trojans get in, the common types, how they spread, the warning signs, how to prevent them and what to do if you think one has been opened.

By Peter Bassill · Guide · Published 2026-04-27 · Last changed 2026-11-27

A Trojan horse is malicious software disguised as something legitimate: an invoice, an installer, a browser update, a mobile app. It does not break in. It is carried in by someone who believed it was what it claimed to be, and that one fact explains both why Trojans remain the commonest opening move in cyber attacks and why they are so preventable. This guide explains what a Trojan is, how one opened file becomes an organisation's problem, the common types, how they spread, the warning signs, the controls that stop them and what to do in the first hour if you think one has run.

## What is a Trojan horse?

A Trojan horse, usually shortened to Trojan, is any malware that relies on disguise to persuade a person to run it. The name comes from the wooden horse of Greek legend, left outside the walls of Troy as a gift and wheeled inside by the defenders themselves. The term has been used in computer security since the 1970s and the principle has not changed since: the attacker does not defeat the defences, because somebody inside opens the gate.

Three things separate a Trojan from other kinds of [malware](https://www.cyber-defence.io/services/soc/what-is-malware). It does not copy itself into other files, as a virus does. It does not spread across a network unaided, as a worm does. And the word describes how the malware arrives, not what it does afterwards. "Trojan" is a method of delivery. The damage depends on what was hidden inside.

MITRE ATT&CK, the public catalogue of attacker techniques, records the two halves of the trick separately. [Masquerading](https://attack.mitre.org/techniques/T1036/) is the disguise: changing a file's name, icon, extension or signature so that it appears trustworthy. [User Execution](https://attack.mitre.org/techniques/T1204/002/) is the moment a person opens it. The second entry lists a very long run of malware families and attack groups, from criminal crews to intelligence services, which is a fair measure of how widely the approach is used across the different [types of hackers](https://www.cyber-defence.io/insights/types-of-hackers-motives-methods-and-risks-for-uk-organisations). One of its examples is the Bad Rabbit ransomware of 2017, which arrived as a fake Adobe Flash installer.

## How a Trojan compromises an organisation

A Trojan attack is a sequence, and the opened file is only the middle of it.

*[Image: How a Trojan horse attack works in five stages: lure, disguise, run, foothold and payload, with the control that stops each]*

*How a Trojan horse gets in: five stages, each with a control that stops or limits it. The third stage is the one the attacker cannot perform alone.*

It begins with a **lure**: an email about an overdue invoice, a search advert for a well-known program, a pop-up saying that the browser needs updating. Next comes the **disguise**, the file itself, named and dressed to match the lure. Then somebody **runs** it. Because the instruction came from a signed-in member of staff, the computer treats it as legitimate, which is why Trojans pass controls that would stop an attack arriving from outside.

What runs first is usually small. A loader establishes a **foothold**: it arranges to start again after a restart, contacts a server controlled by the attacker and waits for instructions. Only then does the **payload** arrive, and it is often chosen to suit the victim. A home computer may receive an infostealer. A machine that turns out to belong to a finance team or an IT administrator is worth more, and access to it may be sold on.

That last step is how one laptop becomes an organisation's problem. An infostealer copies the passwords and session cookies saved in the browser, including those for email, cloud services and remote access. A session cookie is proof that a user has already signed in, so a stolen one can carry an attacker past [multi-factor authentication](https://www.cyber-defence.io/services/soc/multi-factor-authentication) without the password. A remote access Trojan gives the attacker the user's own view of the network. From there the intruder looks for administrator accounts, servers and backups, and the incident is no longer about one device.

Law enforcement treats this first stage as the foundation of the ransomware trade. When European and American agencies ran [Operation Endgame](https://www.eurojust.europa.eu/news/major-operation-take-down-dangerous-malware-systems) in May 2024 they went after the loaders IcedID, Pikabot, SmokeLoader, Bumblebee and Trickbot, taking down more than 100 servers and seizing over 2,000 domains. A later phase in November 2025 disrupted more than 1,000 servers behind the Rhadamanthys infostealer, the VenomRAT remote access Trojan and the Elysium botnet. The names change every year. The pattern, a small disguised program that opens the way for something worse, does not.

## Common types of Trojan

Trojans are named for what they do once inside. Most real attacks use more than one.

*[Image: Six common types of Trojan: remote access Trojans, loaders, infostealers, banking Trojans, trojanised software and mobile]*

*Six common types of Trojan. Loaders are highlighted because they are usually the first to arrive and the best point at which to catch an attack.*

**Remote access Trojans.** Often shortened to RATs, these give an attacker hidden control of a computer: the screen, the keyboard, the files, and sometimes the camera and microphone. Legitimate remote support tools are increasingly misused for the same purpose, because a genuine, signed program draws less attention than malware does.

**Loaders and droppers.** Small first-stage programs whose only job is to get past the defences and install something else, frequently on behalf of a different criminal group that pays for each successful installation.

**Infostealers.** Programs that collect saved passwords, session cookies, cryptocurrency wallets and documents, and send them out within minutes. Microsoft's Digital Crimes Unit [counted more than 394,000 Windows computers](https://blogs.microsoft.com/on-the-issues/2025/05/21/microsoft-leads-global-action-against-favored-cybercrime-tool/) infected by a single infostealer, Lumma, in two months of 2025.

**Banking Trojans.** The older specialists. They watch for online banking sessions and capture credentials, or alter payments as they are made. Several of the best known, IcedID among them, were later repurposed as general loaders.

**Trojanised software.** Genuine programs or updates with malicious code added, either by tampering with a download or by compromising the supplier that builds it. This is the hardest kind to spot, because the software does everything it promises as well as the thing it does not mention.

**Mobile Trojans.** Fake or tampered apps, usually on Android and usually installed from outside the official store, that read text messages, lay fake sign-in screens over banking apps and approve payments.

Ransomware, spyware and cryptocurrency miners are not Trojans in themselves, but they very often arrive inside one.

## How Trojans spread

Almost every delivery method is a variation on persuading a person that the file is expected.

| Delivery method | What it looks like | What stops it |
|---|---|---|
| **Phishing emails** | An attachment or link presented as an invoice, a delivery note, a voicemail or a shared document | Email filtering, and staff who know [what phishing looks like](https://www.cyber-defence.io/services/soc/phishing-attack-meaning) and report it |
| **Malicious adverts and look-alike sites** | A search advert or copied website offering a familiar program, with malware bundled into the installer | Web filtering, and software installed only from an approved source |
| **Fake updates and fake verification pages** | A pop-up saying the browser is out of date, or a "prove you are human" check that asks the user to paste a command into Windows | Application control, restricted scripting tools, and a rule that nobody pastes commands from a web page |
| **Pirated and "free" software** | Cracked programs, key generators, game modifications and unofficial plug-ins | No local administrator rights, and a policy that is explained as well as written |
| **Messages and collaboration tools** | Files sent over chat or social media, or from a colleague's compromised account | The same caution as for email, and limits on who outside the organisation can message staff |
| **Trojanised apps and extensions** | Mobile apps from unofficial stores, and browser extensions that change hands and turn malicious | Managed devices, official stores only and an approved list of extensions |
| **Compromised suppliers** | A genuine update from a supplier whose build system has been breached | Supplier assurance, staged updates and monitoring for unusual behaviour afterwards |

The fake verification page deserves a note, because it removes even the file. The technique, known as ClickFix, places a command on the user's clipboard and asks them to paste it into the Windows Run box to complete a check. Microsoft has reported campaigns of this kind reaching thousands of business and home devices a day. There is no attachment to scan and no download to block: the user types the Trojan in by hand.

How common is all this? The government's [Cyber Security Breaches Survey 2025/2026](https://www.gov.uk/government/statistics/cyber-security-breaches-survey-20252026/cyber-security-breaches-survey-20252026) found that 38 per cent of UK businesses had experienced phishing in the previous twelve months and that 7 per cent had devices targeted with malware. Most attempts fail. The ones that count are the few that are opened on a machine nobody is watching.

## Warning signs of a Trojan infection

Modern Trojans are written to stay quiet, so a computer that seems normal proves little. The signs worth acting on fall into two groups.

On the device, look for security software that has been switched off or cannot update; programs, browser extensions or scheduled tasks that nobody installed; a file that did nothing visible when opened, or showed an error and closed; unexplained slowness, or a fan running hard with nothing open; and any prompt asking for a command to be pasted, or for administrator approval that the user did not start.

Across the organisation, look for sign-ins from unfamiliar places or devices; new multi-factor authentication methods that the user did not add; mailbox rules that forward or hide messages; colleagues receiving emails the sender did not write; connections from a workstation to remote access services the organisation does not use; and large uploads at unusual hours.

The second group matters more, and none of it can be seen from a single desk. These are [indicators of compromise](https://www.cyber-defence.io/services/soc/indicators-of-compromise) that appear in logs, which is why noticing them is a job for whoever watches the whole estate.

## How to prevent Trojan infections

Because a Trojan needs a person to run it and permission to do damage, prevention works at both points. The National Cyber Security Centre's guidance on [mitigating malware and ransomware attacks](https://www.ncsc.gov.uk/guidance/mitigating-malware-and-ransomware-attacks) groups the measures into preventing delivery, preventing malware from running and preparing for an incident. In practice that comes down to seven controls.

**Filter what arrives.** Email and web filtering remove most lures before anyone sees them. Blocking the file types that few organisations need to receive by email, such as scripts, disk images and shortcut files, removes many of the rest.

**Control what can run.** Application control, which allows only approved and signed software, is the most effective single measure against Trojans, because a disguised program is by definition not on the list. Microsoft blocks macros in Office files from the internet by default; leave that setting alone.

**Remove administrator rights from everyday accounts.** A Trojan runs with the permissions of the person who opened it. If that person cannot install software, neither can it.

**Keep software updated.** Some Trojans need an unpatched flaw to finish the job. Installing critical and high-risk updates within 14 days, the [Cyber Essentials](https://www.cyber-defence.io/services/cyber-essentials) standard, closes that route.

**Protect the accounts.** Multi-factor authentication limits what stolen passwords are worth, and phishing-resistant methods such as passkeys limit what stolen sessions are worth.

**Make reporting easy and blameless.** The member of staff who says "I think I opened something" within five minutes has saved the organisation days. Training should reward that call, including when the click was a mistake.

**Watch, and keep backups out of reach.** [Endpoint detection and response](https://www.cyber-defence.io/insights/integrating-edr-xdr-and-siem-within-a-managed-soc) records what programs do, so a Trojan can be caught by its behaviour when its file is unknown. Backups that an intruder cannot reach or delete decide how the worst case ends.

Whether these controls hold is a question a [penetration test](https://www.cyber-defence.io/services/penetration-testing) answers. An [internal network test](https://www.cyber-defence.io/services/penetration-testing/internal-network) starts from the assumption that the phishing email worked, and shows how far an intruder could travel from one ordinary user's machine.

## What to do after a suspected Trojan infection

Speed and order matter more than technical skill in the first hour.

1. **Disconnect the device from the network, but leave it switched on.** Unplug the cable or turn off Wi-Fi. Memory holds evidence that is lost when the machine shuts down.
2. **Report it straight away** to your IT team, your provider or an incident response service. Do not try to clean the machine first.
3. **Write down what happened:** the time, the message or website, what was opened and which accounts were signed in. Keep the email. Do not delete anything.
4. **Protect the accounts from a different, clean device.** Change the user's passwords, sign them out of every session, and check for new authentication methods and mailbox rules. Assume that every password saved in the browser has been copied.
5. **Find out how far it went.** Check whether anyone else received the same lure, and look at servers, cloud accounts and backups for the signs listed above.
6. **Rebuild the device** from a known-good image. Cleaning tools remove what they recognise, and the purpose of a Trojan is to install things that are not recognised.
7. **Tell the people who need to know.** Your cyber insurer, promptly. The Information Commissioner's Office within 72 hours if personal data may have been affected. [Report Fraud](https://www.reportfraud.police.uk/), the police reporting service for England, Wales and Northern Ireland, or Police Scotland on 101. And the [NCSC](https://report.ncsc.gov.uk/) for significant incidents.

Our [guide to malware](https://www.cyber-defence.io/services/soc/what-is-malware) covers the wider response, including ransom demands, and our [incident response](https://www.cyber-defence.io/services/incident-response) page sets out what happens from the first call. Anyone can ring our SOC on +44 333 3444 256 at any hour, client or not.

## How UK Cyber Defence helps

UK Cyber Defence works at the three points where a Trojan can be stopped. [SOC365](https://www.cyber-defence.io/services/soc), our managed security operations centre, provides detection and response around the clock. Endpoints, identities, cloud services and networks are monitored every hour of the year; [EmilyAI](https://www.cyber-defence.io/services/emilyai), our AI SOC analyst, reviews every client hour by hour; clear-cut attacks are blocked automatically at the firewall and on blocklists; and an analyst decides anything that affects a machine or an account. Our [penetration testing](https://www.cyber-defence.io/services/penetration-testing) team, part of a CREST member company accredited for penetration testing, establishes whether a disguised file would get through and how far an intruder could go if it did. And our [incident response](https://www.cyber-defence.io/services/incident-response) service takes over when something has already run. If continuous monitoring is unfamiliar territory, [What is a SOC?](https://www.cyber-defence.io/insights/what-is-a-soc) is the place to start.

## Frequently asked questions

**Is a Trojan horse a virus?**
No. A virus copies itself into other files and spreads when they are shared. A Trojan does not replicate: it relies on a person running it because it appears to be something else. Both are types of malware.

**How does a Trojan get onto a computer?**
Someone runs it. The usual routes are an email attachment or link, a fake download or update, a pirated program, a fake verification page that asks the user to paste a command, or an app from an unofficial store.

**Can antivirus software remove a Trojan?**
It can remove the ones it recognises. Because a Trojan's job is often to install other tools, a computer that has run one should be rebuilt from a clean image and the user's passwords changed from a different device.

**What is a remote access Trojan?**
A remote access Trojan, or RAT, gives an attacker hidden control of a computer, as if they were sitting at it. They can view the screen, copy files, record keystrokes and install further malware.

**Can phones and Macs get Trojans?**
Yes. Android Trojans usually arrive as apps installed from outside the official store, and Mac users are targeted with fake installers and fake verification pages. No platform is immune to a user being persuaded.

**What should I do first if I think I opened a Trojan?**
Disconnect the device from the network without switching it off, and report it immediately. Then change your passwords from a different device. Early reports shorten incidents.

## Next steps

Three checks will answer most of what this guide raises for your own organisation. Confirm that everyday accounts have no administrator rights and that application control or reputable endpoint protection is running on every device. Ask who would see a sign-in from an unfamiliar country at three in the morning; if the answer is nobody, our article on [whether a business your size needs a SOC](https://www.cyber-defence.io/insights/does-a-business-our-size-need-a-soc) will help you decide what to do about it. And if you would like to talk it through with someone who deals with these attacks daily, [book a thirty-minute call](https://www.cyber-defence.io/book?topic=Managed%20SOC%20%28SOC365%29).

## Further reading

- [Hidden Google Play Adware Drains Devices and Disrupts Millions of Users](https://www.cyber-defence.io/insights/hidden-google-play-adware-drains-devices-and-disrupts-millions-of-users)
- [RedDirection: 18 extensions, millions of browsers compromised](https://www.cyber-defence.io/insights/reddirection-18-extensions-millions-of-browsers-compromised)
- [How MaaS affects your business and why you should care?](https://www.cyber-defence.io/insights/how-maas-affects-your-business-and-why-you-should-care)
- [Glossary of cyber security terms](https://www.cyber-defence.io/resources/glossary)

---

Source: https://www.cyber-defence.io/insights/trojan-horses-in-cybersecurity-common-types-and-how-they-spread
