Trojan Horse
A trojan horse is malware disguised as legitimate software, such as a free tool, game, update or document. Once the victim installs or opens it, the hidden code runs, often giving attackers access or installing more malware.
Also called: trojan, trojan malware, trojan virus
What is a trojan horse?
Named after the wooden horse in the Greek story, a trojan is malware that gets in by looking harmless. NIST defines it as a computer program that appears to have a useful function but also has a hidden and potentially malicious function that evades security mechanisms. Unlike a virus or worm, a trojan doesn't copy itself; it relies on someone choosing to run it.
How does a trojan work?
Trojans are disguised as things people want: a free PDF converter, a cracked version of paid software, a fake browser update, an invoice attachment, or an app that looks like a popular one. When the victim runs it, the trojan may really do what it promised, but it also installs its hidden payload. MITRE ATT&CK calls this masquerading. The payload might steal data, open a backdoor or download other malware such as ransomware.
Common types
- [Remote access trojans](/glossary/remote-access-trojan/) that give the attacker control of the device.
- Banking trojans that steal online banking logins.
- Downloaders (droppers) that fetch more malware once inside.
- Infostealers that copy passwords and session cookies.
How to protect your business
- Allow software only from approved sources and app stores, and remove local admin rights.
- Warn staff about fake update prompts and search ads for free tools.
- Use endpoint protection that checks what programs actually do, not just what they're called.
Related terms
Sources
- Glossary: Trojan horse (NIST)
- Masquerading (T1036) (MITRE ATT&CK)
Drafted with AI assistance, then edited and fact-checked by a person. How we use AI.
