What Is a Trojan Horse?
A trojan horse is malware disguised as legitimate software that you install voluntarily, after which it runs a hidden malicious payload. A trojan (the short form) wins through deception, not self-replication, so it has to trick you into running it – which is exactly what separates it from a virus or a worm. This guide defines a trojan, sets it apart from a virus and a worm, breaks down the types (backdoor, downloader, banking, remote access, dropper), and covers how trojans spread, the warning signs, and how to prevent and remove one.
What Is a Trojan Horse?
A trojan horse is malware disguised as legitimate software that a user installs voluntarily, after which it delivers a hidden malicious payload. It presents itself as useful so you run it yourself. The defining traits are below:
- Disguise: it poses as a legitimate program, update, document, or file.
- Voluntary installation: social engineering tricks you into running the malware.
- Hidden payload: the malicious action executes once the trojan runs.
- No self-replication: this is the trait that separates a trojan from a virus or a worm.
How Does a Trojan Differ From a Virus and a Worm?
A trojan does not self-replicate; it relies on deceiving you into running it, while a virus and a worm spread on their own. The line between them is propagation:
- A trojan relies on deception and does not replicate or spread by itself – you have to run it.
- A virus attaches to a host file and replicates when that infected file runs.
- A worm is standalone, self-replicating, and spreads across networks with no host file and no user action.
- The shared trait: all three are malware that harms a system.
Trojan
Virus
Worm
A trojan spreads only when a user runs it, unlike a worm that spreads automatically. The full set of categories appears in the list of malware types.
What Are the Types of Trojan Horses?
The main types of trojan are backdoor, downloader, banking, dropper, and remote access trojans (RATs). A trojan type is defined by the payload it delivers once it runs:

Backdoor trojan
Banking trojan
Downloader trojan
Dropper trojan
Remote access trojan (RAT)
Fake AV trojan
A banking trojan such as Zeus steals financial data, while a RAT grants full control. A downloader or dropper often delivers other malware, including ransomware.
How Does a Trojan Horse Spread?
A trojan spreads through fake downloads, email attachments, cracked software, and malicious websites – every method relies on tricking you into running it. A spread method is the path a trojan uses to reach a device:
- Fake downloads and updates: a trojan posing as a useful program or a critical update (the classic fake browser or Flash pop-up).
- Email attachments: a malicious attachment or link delivered through a phishing message.
- Cracked software: the real app bundled with a trojan inside pirated programs and key generators.
- Malicious websites: malvertising and drive-by prompts that push a disguised file.
What Are the Signs of a Trojan Infection?
Signs of a trojan include slow performance, unexpected programs, disabled security software, unusual network activity, and frequent crashes. A symptom is an observable change that suggests a trojan is running:
- Slow performance as the trojan uses processor and memory in the background.
- Unexpected programs you did not install, dropped by the trojan.
- Disabled security software, a trojan trying to avoid detection.
- Unusual network activity as the trojan talks to a remote attacker.
- Frequent crashes when the trojan interferes with the operating system.
These signs suggest a trojan, though some run quietly to keep their access. A scan with reputable antivirus software confirms whether one is present.
How Do You Prevent and Remove a Trojan Horse?
Prevent a trojan by installing software only from trusted sources; remove one by running a full antivirus scan in safe mode and deleting the detected threats. Prevention stops it running, removal clears it once present:
- Download from trusted sources. Use the developer site or a reputable app store to avoid disguised and bundled trojans.
- Avoid cracked software. Pirated programs and key generators frequently carry trojans.
- Run antivirus regularly. Real-time scanning catches many trojans before they execute.
- Boot into safe mode. Run a full scan so the trojan is not active while you clean it.
- Delete or quarantine, then rotate passwords. Clear startup entries too, and change any credentials the trojan may have captured.
Trusted sources prevent most infections, since a trojan needs you to run it. The full procedure is in the steps to remove malware from a PC.
What Are Examples of Trojan Horses?
Well-known trojans include Zeus, Emotet, and many remote access trojans. An example shows how the category operates in a real incident:
- Zeus (Zbot): a banking trojan from around 2007 that captured financial credentials; its leaked source code spawned many variants.
- Emotet: began as a banking trojan and became a loader (2014-2021), delivering TrickBot and then Ryuk ransomware before a 2021 takedown.
- Remote access trojans: give attackers full control, used to steal data and monitor activity.
- Dropper trojans: install ransomware and other malware while evading detection.
Emotet showed how a banking trojan evolves into a malware delivery service. A trojan that delivers spyware enables covert monitoring, the data collection explained in the guide to spyware.
How Does a Trojan Horse Work?
A trojan works by presenting a disguised file, getting you to run it, executing a hidden payload, and often establishing persistence to survive restarts. It follows a fixed sequence from disguise to execution:

- Disguise. The trojan is packaged as a useful program, update, or document.
- Execution. It begins when you run the disguised file – nothing happens until then.
- Payload. The malicious action runs, from opening a backdoor to stealing data.
- Persistence. It alters startup settings so it reloads after a restart.
What Is the Origin of the Trojan Horse Name?
The name comes from the ancient Greek account of a wooden horse used to conceal soldiers, applied in computing to malware that hides inside apparently harmless software. The name describes the concealment principle:
- The concealment principle: the malware is named after a hidden threat inside an accepted object.
- The computing term entered use in the 1970s to describe deceptive programs.
- The shortened form trojan is now standard in security documentation.
- The defining trait remains disguise, matching the name’s emphasis on hidden intent.
How Does a Trojan Differ From a Backdoor?
A trojan is disguised software a user runs; a backdoor is a hidden access method that bypasses normal authentication, often installed by a trojan. The difference is role – a trojan delivers, a backdoor grants access:
- A trojan is the disguised carrier you install.
- A backdoor is the hidden entry point that grants remote access.
- A backdoor trojan combines both, installing a backdoor as its payload.
- The relationship: a trojan often delivers a backdoor, but the two are distinct concepts.
A backdoor is one of several payloads a trojan can carry, alongside the other categories in the complete list of malware types.
Last Thoughts on the Trojan Horse
A trojan horse is malware disguised as legitimate software that you install voluntarily, after which it runs a hidden payload. It relies on deception rather than self-replication, which is what separates it from a virus and a worm, and its types include backdoor, downloader, banking, remote access, and dropper trojans.
Trojans spread through fake downloads, email attachments, and cracked software, so prevention relies on trusted sources while removal uses a full scan in safe mode. Continue with the comparison of viruses, worms, and trojans, the overview of malware, the complete list of malware types, or the overview of cybersecurity.
Key Takeaways:
- A trojan horse is malware disguised as legitimate software that the user runs voluntarily.
- A trojan relies on deception, not self-replication like a virus or worm.
- Types include backdoor, downloader, banking, remote access, and dropper trojans.
- Trojans spread through fake downloads, email attachments, and cracked software.
- Signs include slowdowns, unexpected programs, disabled security, and unusual network activity.
- Prevention relies on trusted sources, and removal uses a full scan in safe mode.
Frequently Asked Questions (FAQs)
What is a trojan horse in computing?
A trojan horse is malware disguised as legitimate software that a user installs voluntarily, after which it delivers a hidden malicious payload. It relies on deception rather than self-replication.
How is a trojan different from a virus?
A trojan disguises itself as legitimate software and relies on the user to run it, with no self-replication. A virus attaches to files and replicates automatically when the infected file runs.
What are the types of trojan horses?
The types are backdoor trojans, downloader trojans, banking trojans, remote access trojans, and dropper trojans. Each is defined by the payload it delivers once the user runs it.
How does a trojan horse spread?
A trojan spreads through fake downloads, email attachments, cracked software, and malicious websites. Every method relies on tricking the user into running the disguised file, since a trojan cannot self-replicate.
What are the signs of a trojan?
Signs of a trojan include slow performance, unexpected programs, disabled security software, unusual network activity, and frequent crashes. Some trojans run quietly to maintain access.
How do you remove a trojan horse?
Remove a trojan by booting into safe mode, running a full antivirus scan, and deleting detected threats. Change passwords the trojan may have captured and avoid cracked software in the future.

