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 9, 2026
Profile MapGlossary Term
  1. Also Called2other namesTrojan horse · trojan malware
  2. Related Terms2linked entriesRemote access trojan (RAT) · Malware loader

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 work?

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 does it matter?

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.

How can you reduce the risk?

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.

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 to have a useful function but has a hidden, potentially malicious function that evades security mechanisms, with….
  • NIST: NIST defines malware as software or firmware intended to perform an unauthorized process with adverse impact on confidentiality, integrity or availability, and lists….

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 Grandoreiro Trojan Technical Analysis January 2026
  2. 2 Godfather Android Banking Trojan Technical Analysis March 2024
  3. 3 Godfather Android Banking Trojan Technical Analysis August 2023
  4. 4 “Triangulation Trojan” Launches Sophisticated Attack on Apple Devices June 2023
  5. 5 Godfather Trojan Activity Targeting Financial Sector Detected December 2022
  6. 6 A New Android Banking Trojan Distributed via Google Play Store: “OCTO” April 2022