Main menu
Definition

Trojan horse

A Trojan horse is well-disguised malware that appears legitimate. Learn how Trojans get onto systems, what they do once they are installed, how they differ from viruses and worms, and how to defend against them.

DTDevolutions Team·November 12, 2026·2 min read

What is a Trojan horse?

A Trojan horse, or simply a Trojan, is malicious software disguised as something useful or harmless, such as a free tool, a game, a software update, a document, or a browser extension. Named after the wooden horse of Greek legend, it relies on the victim to let it in. Once the user runs it, the hidden malicious code executes alongside, or instead of, the advertised function.

How does a Trojan horse work?

  1. Disguise: the attacker packages malware to look legitimate, often copying real brand names and icons.
  2. Delivery: it is distributed through phishing emails, fake download sites, malicious ads, pirated software, or compromised app stores.
  3. Execution: the user opens or installs it, often granting permissions along the way.
  4. Payload: the Trojan carries out its real purpose, such as opening a backdoor, stealing credentials or banking details, logging keystrokes, downloading more malware, or adding the device to a botnet.

Common types include remote access Trojans (RATs), banking Trojans, downloaders, and information stealers.

Trojan horse vs. virus and worm

A virus attaches itself to other programs and spreads when they run. A worm spreads by itself across networks. A Trojan does not replicate on its own; it depends on tricking a user into running it. In practice, modern malware often combines these behaviors.

Why does a Trojan horse matter?

Trojans turn a single click into an attacker's foothold, often running with the user's own permissions. Installing software only from trusted sources, filtering email and downloads, using endpoint protection, and making sure everyday accounts do not have administrator rights all limit what a Trojan can do.

Frequently asked questions

What is a Trojan horse?

A Trojan horse is well-disguised malware that appears legitimate, tricking users into installing or running it.

Can a Trojan horse spread by itself?

No. Unlike worms and viruses, Trojans do not replicate on their own. They rely on users to run them, though the payload may download other malware that does spread.

What is a remote access Trojan (RAT)?

A RAT is a Trojan that gives an attacker hidden remote control of the infected device, including access to files, the screen, and sometimes the camera or microphone.

Limit what a Trojan can do with stolen access

Grant access only for the moment it's needed, then revoke it automatically.

Explore Devolutions PAM

Related terms

Malware

Malware is malicious software: a generic term for software designed to execute harmful or disruptive attacks on a server, network, or computer.

Read now →

Backdoor

A backdoor is a hidden access method for circumventing security mechanisms, such as authentication.

Read now →

Virus

A virus is infectious malware that can replicate itself and execute its code into legitimate programs.

Read now →