Skip to content

Trojan Horse

In plain terms

A program that does what it claims — and something else besides. You installed it yourself, voluntarily, because it looked useful.

Definition

A trojan horse is malicious software hidden inside an apparently legitimate program, which the user installs themselves. Unlike a virus or a worm, it doesn't reproduce: it doesn't need to spread, since it gets itself run by the targeted person.

Not to be confused with

Trojan HorseComputer Virus
It doesn't reproduce: you install it yourself, because it presents itself as a useful program.It reproduces: it copies itself into other files to spread.

What tells them apart: A virus spreads from file to file; a trojan horse doesn't need to spread, since it gets itself run by the targeted person.

Trojan HorseComputer Worm
It doesn't move: it waits to be installed, hidden in an apparently legitimate program.It moves by itself from one device to another, without anyone opening or installing anything.

What tells them apart: A worm spreads through its own autonomy; a trojan horse, through the trust of the person who installs it.

All the attacks people mix up, side by side: the “X or Y?” comparator

How it works

The mechanism isn't technical, it's editorial: making the installation desirable. Normally paid software offered for free, a utility promising to speed up a slow device, a modified version of a well-known app, a player a site claims is necessary to display its content. The downloaded program generally does what it claims, which dispels suspicion, while also carrying out its real payload: opening remote access, installing other components, collecting credentials. The practical consequence is that the decisive moment isn't execution but download — it's the only step where the decision is still entirely yours.

Why it works

The program does what it promises, which keeps suspicion away. Free paid software or the promise of a faster device creates a desire that comes before the question of where it came from.

What this attack relies on

Understanding these levers is worth more than memorizing a hundred pages: it is what lets you recognize a scam no one has described yet.

Warning signs

  • Normally paid software offered for free, or an "unlocked" version of a well-known app
  • Download offered from a third-party site, an email link or an ad rather than from the publisher
  • Installation requesting administrator rights with no connection to its stated purpose
  • Program presented as essential to play a video or open a document
  • Apps or icons that appeared after installation, which you didn't choose

Example

Fictional example — no real organization or address

Link shared on a forum, for video editing software that's usually paid.

Full unlocked version, all features, no license. Turn off your antivirus during installation, it blocks the patch by mistake.

What gives it away

  • Paid software offered for free by a stranger.
  • The request to turn off the antivirus.
  • The file doesn't come from the publisher's site.
More fictional examples: Website

How to verify

Before installing: start from the publisher's name and reach their site through an independent search rather than the link you're offered, then download from there. On a phone, stick to the official app store. Afterwards, verification is far less reliable — a program designed not to be noticed is hard to spot — which is precisely why checking beforehand matters.

The questions to ask, in order

  1. Does the software come from somewhere other than its publisher's site or an official store?

    If yes: Don't install it: find the publisher through an independent search.

  2. Does the installation ask you to turn off a protection?

    If yes: Stop: that's reason enough to give up.

  3. Have you already installed and run the program?

    If yes: Disconnect the device and change your passwords from another device, starting with your email.

What to do

Only install from the original source, even when an intermediary seems more convenient. Refuse software presented to you as necessary to view content: it's a pretext, not a technical requirement.

If it already happened

Disconnect the device from the network. Treat any credentials entered or saved on this machine as exposed and change them from another device, starting with the email account used to reset your other accounts. Uninstalling the program isn't enough to establish that the machine is clean: on a device holding important data, reinstalling the system is the only reset you can vouch for. Report the incident to cybermalveillance.gouv.fr.

So it doesn't happen again

  • Install only from the original source, even when a middleman seems more convenient.
  • Refuse any program presented as necessary to view content.
  • Keep your protection on: an installation that asks you to turn it off isn't legitimate.

The steps that defeat this attack

Test yourself

Photo-editing software that is usually paid for is offered free, with a file to get around activation.

Start the simulation: Trojan Horse

Frequently asked questions

What's the difference with a virus?
Reproduction. A virus copies itself to spread; a trojan horse doesn't copy itself, because it gets from you what a virus has to steal — its execution. It's also why there's nothing to "catch": there was an installation.
The software I installed works normally. Is that reassuring?
No, that's the whole point of the method. A trojan program that failed to perform its stated function would be uninstalled within minutes. Normal operation is an argument for discretion, not proof of harmlessness.

Official sources

Also known as: trojan, trojan virus, trojan malware, trojan program.

This article is part of the Malware family. Last updated: 2026-09-03.

Published under the responsibility of Mountaga Diallo · methodology.