Glossary

Trojan.

Also called Trojan horse, trojan malware

In Short

A Trojan is a program that appears to have a useful function but also has a hidden, potentially malicious function. NIST describes it as a program that evades security mechanisms. The name comes from the story of the Trojan horse.

Last updated October 23, 2026
Profile MapGlossary Term
  1. Also Called2other namesTrojan horse · trojan malware
  2. Related Terms3linked entriesRemote access trojan (RAT) · Malware loader · Malware

What Is a Trojan?

NIST defines a Trojan horse as a computer program that appears to have a useful function, but also has a hidden and potentially malicious function that evades security mechanisms. Another NIST definition calls it a useful or seemingly useful program that contains hidden code of a malicious nature, which executes when the program is invoked. In short, it looks like one thing and does another.

People often shorten the name to Trojan. A Trojan is one kind of malware. NIST defines malware as software or firmware intended to perform an unauthorized process that will have an adverse impact on the confidentiality, integrity, or availability of a system. NIST lists Trojan horses next to viruses, worms and spyware as common examples.

How Does a Trojan Get a User to Run It?

The key idea is disguise. The user sees a program that seems useful and runs it. The hidden code then runs when the program is invoked. This is the point of the name: the harmful part arrives inside something that looks acceptable.

The hidden function can differ from case to case. NIST describes it only as hidden and potentially malicious. As a simple illustration, a program could offer one feature on the surface while a second, unseen part does something else. This is a generic example and not a description of any one family.

Why Can a Trojan Slip Past Security Checks?

A Trojan does not need to break in by force. It relies on someone choosing to run it. NIST says the hidden function evades security mechanisms, which suggests that a program that looks harmless may not be caught by simple checks. For this reason, careful habits about what software is installed matter as much as technical tools.

Which Habits Lower the Risk of a Trojan?

These steps follow from the definitions above. They are general, and they are not a complete defense.

  • Install software only from sources you trust and have a reason to use.
  • Treat a program that offers one thing but asks for more access than it needs with suspicion.
  • Keep security tools and system updates current so that known threats are easier to catch.
  • Watch for behavior that does not match what a program claims to do.

Which ATT&CK Techniques Match a Trojan?

MITRE ATT&CK has no single Trojan technique. It describes the parts of the behavior in separate techniques, listed below.

ID Technique What MITRE describes
T1036 Masquerading Making files or objects look legitimate or harmless to users and security tools.
T1036.005 Match Legitimate Resource Name or Location Using the name of a trusted program or a trusted folder, such as System32.
T1204.002 User Execution: Malicious File Relying on a user to open a file, often after social engineering.
T1195.002 Compromise Software Supply Chain Changing application software, or replacing releases with a modified version, before users receive it.

Is a Trojan the Same as a Virus?

No. NIST lists viruses, worms and Trojan horses as separate examples of malware. The defining feature of a Trojan is that it pretends to be useful. A virus or a worm is defined by other traits. Many people say virus when they mean any malware, but the terms are not identical.

Is a Trojan the Same as a Remote Access Trojan?

Not quite. A Trojan is the wider category, defined by disguise. A remote access trojan is a type that gives an attacker remote control of a machine. All remote access trojans are Trojans in the sense of the name, but a Trojan can have many other hidden purposes.

See also remote access trojan, backdoor and malware loader.

Sources

  • NIST: NIST defines a Trojan horse as a program that appears useful but has a hidden, potentially malicious function that evades security mechanisms.
  • NIST: NIST defines malware as software or firmware intended to perform an unauthorized process with adverse impact on confidentiality, integrity or availability, and lists Trojan horses among common examples.
  • MITRE ATT&CK: Masquerading: making artifacts look legitimate or benign.
  • MITRE ATT&CK: Match Legitimate Resource Name or Location: trusted names and folders.
  • MITRE ATT&CK: User Execution, Malicious File: a user opens a file to run code.
  • MITRE ATT&CK: Compromise Software Supply Chain: modified software releases.

Also Called.

  • NameTrojan horse
  • Nametrojan malware

Questions.

  • What is a Trojan?

    NIST defines a Trojan horse as a computer program that appears to have a useful function, but also has a hidden and potentially malicious function that evades security mechanisms. It is one kind of malware.

  • How does a Trojan work?

    The key idea is disguise. The user sees a program that seems useful and runs it, and the hidden code then runs when the program is invoked.

  • Why are Trojans a risk?

    A Trojan does not need to break in by force. It relies on someone choosing to run it, and NIST says the hidden function evades security mechanisms, so a harmless-looking program may not be caught by simple checks.

In Our Research

  1. 1 Trojanized Claude Code Extension: A Response Playbook for Malicious Extensions October 2026
  2. 2 Grandoreiro Trojan Technical Analysis January 2026
  3. 3 Godfather Android Banking Trojan Technical Analysis March 2024
  4. 4 Godfather Android Banking Trojan Technical Analysis August 2023
  5. 5 “Triangulation Trojan” Launches Sophisticated Attack on Apple Devices June 2023
  6. 6 Godfather Trojan Activity Targeting Financial Sector Detected December 2022