What is Trojan Horse?
Types, Examples and Prevention

A Trojan horse is a harmful program dressed up as something useful, like an invoice, a game or an app update. It tricks a person into opening it. Once it runs, it quietly lets an attacker in or steals data. Unlike a virus, it cannot copy itself, so a person or another program must bring it in.

Short Answer A Trojan horse is harmful software that pretends to be something useful, such as an invoice, a game or an update. It tricks a person into opening it. Once it runs, it quietly lets an attacker in or steals data. Unlike a virus, it does not copy itself, so a person or another harmful program must bring it in.

What is a Trojan Horse?

A Trojan horse is a program that looks safe on the outside but hides a harmful job inside. People also call it a Trojan or a “Trojan horse virus”. In fact, it is a kind of malware, which means any software made to cause harm. However, it is not a true virus, as the comparison further down explains.

The name comes from an old Greek story. Soldiers hid inside a large wooden horse. The people of Troy pulled it into their city as a gift, and at night the soldiers opened the gates. A computer Trojan works the same way: you let it in yourself, because it looks like something you want.

NIST, the US standards body, describes a Trojan horse as a program with a useful purpose on the surface. It also has a hidden, harmful one. The file wins your trust first, and then it does its real work in the background.

Key Words to Know

  • Attacker: the criminal who made or sent the Trojan and wants to use your computer or data.
  • Disguise: the normal-looking file, app or message that the Trojan hides behind.
  • Back door: a secret way into a computer that skips the normal sign-in.
  • Remote access: controlling a computer from far away over the internet.
  • Attachment: a file sent along with an email or chat message.

How a Trojan Horse Works

Almost every Trojan horse depends on a person taking one action, such as opening a file or installing an app. That is why attackers spend most of their effort on the disguise. Most Trojans follow four stages:

  1. Disguise: the Trojan arrives looking like something normal, for example a bill, a delivery note, a pirated (cracked) copy of paid software or a phone app.
  2. A person opens it: someone clicks, downloads or installs it, because it looks genuine and often urgent.
  3. It installs quietly: the Trojan may even show the file you expected, so nothing looks wrong. Meanwhile, the hidden part settles in on the computer.
  4. It does its real job: it opens a back door, steals passwords or downloads more harmful software. Microsoft notes that Trojans often record what people type and send sign-in details to the attacker.

Many Trojans use the same file names as real, trusted apps. As a result, it is easy to download one by mistake while looking for the genuine program.

Fake invoice email opened on a clerk's laptop installs a hidden program that opens a back door for an attacker
A Trojan needs one click from a person, then works quietly in the background.

An Example From an Accounts Team

For example, an accounts clerk at a trading firm in Ahmedabad gets an email at month end. It says “Invoice overdue, please check the attached bill” and names a supplier the firm really uses. The clerk opens the attachment, and a blank page appears. Nothing else seems to happen, so she moves on. In the background, however, a Trojan horse has installed itself. Over the next week, it records her sign-in to the company’s payments portal and sends it to the attacker. The firm finds out only when its bank flags a payment that no one approved.

Types of Trojan Horse

Security teams group Trojans by the job they do once inside. One Trojan horse can also do more than one of these jobs. The table below lists the common types in plain words.

Type What It Does
Backdoor Trojan Opens a secret way in, so the attacker can return whenever they like
Remote access Trojan Lets the attacker control the computer from far away, as if they sat at the desk
Banking Trojan Watches for online banking and payment sign-ins, then steals them
Downloader Trojan Brings in other harmful software, such as ransomware or spyware
Fake antivirus Trojan Shows false warnings that the computer is infected and pushes the user to install more fake tools
SMS Trojan Hides in a phone app, sends texts to costly paid numbers on your phone bill, or reads one-time passwords

Trojan Horse Examples in Everyday Office Life

Most Trojans reach a business through ordinary daily tasks. So the best way to spot one is to know the usual disguises. Here are four examples that an Indian office might see:

  • Fake invoice attachment: a “pending bill” or “GST notice” file sent to the accounts team, often with a supplier name copied from the web. This is a form of phishing, where a fake message tricks someone into acting.
  • Cracked software: a staff member downloads a pirated copy of design or accounting software from a random website. The download works, but it also carries a hidden program.
  • Fake app on a phone: a salesperson installs a “loan offer” or “parcel tracking” app from a link in a text message, outside the official app store.
  • Fake update pop-up: a website shows a message saying the browser or video player is out of date, with a button to “update now”. The update is the Trojan.

In each case, the attacker relies on trust, hurry or curiosity. People call this kind of trick social engineering, and it is how most Trojans get in.

Trojan Horse vs Virus and Other Malware

People often use “virus” for every kind of harmful software, but the types behave differently. The main difference is how each one spreads. A virus attaches itself to other files and spreads when those files are shared. A worm spreads by itself across a network, from one computer to the next, without anyone clicking. In contrast, a Trojan horse does not spread on its own. It needs a person to open or install it, or another harmful program to bring it in.

Question Trojan Horse Virus Worm
Spreads by itself? No Yes, by copying into other files Yes, across networks
Needs a person to open it? Yes, almost always Usually, someone opens an infected file first No
How it gets in Pretends to be a useful file or app Rides inside an infected file Uses a weak spot in a system
Main goal Open a way in, steal data, bring in more harmful software Damage or change files Spread widely, often carrying other harm

Because a Trojan usually needs a person to let it in, staff habits and download rules stop many of them. A worm gets in through weak spots, so quick updates on every system matter most against it.

Talk to an ExpertWould your team spot a fake invoice before it runs? Talk to our team about protecting your laptops and network.

Signs of an Infected Computer

A Trojan horse tries to stay hidden, so the signs are often small. Also, each sign below can have an ordinary cause, such as a full disk or a normal update. Still, if you notice several of them together, ask your IT team to check:

  • The computer becomes slow or the fan runs hard when you are not doing much.
  • New programs or browser add-ons appear that no one installed.
  • Pop-ups or security warnings show up from software you do not recognize.
  • Settings change by themselves, for example the home page or the security settings.
  • Internet data use rises when the computer sits idle.
  • Colleagues receive odd emails or chats sent from your account.

Ways to Prevent a Trojan Horse

No single tool stops every Trojan. Instead, companies use several layers, so a fake file that slips past one layer meets the next. In practice, these habits and controls work best together:

  • Download only from trusted places: install apps from the official app stores or the maker’s own website. Never install cracked or pirated software.
  • Check attachments and links: pause before opening any unexpected file, even from a known name. If a bill looks odd, call the supplier on a number you already have. Email filtering also stops many fake files before they reach the inbox.
  • Keep updates on: regular patch management closes the weak spots that some Trojans use to settle in.
  • Use antivirus and endpoint protection (security for each laptop and phone): antivirus software scans files and blocks known threats before they run.
  • Limit admin rights: staff accounts should not have administrator rights for daily work. Then a Trojan that runs has far less power.
  • Train staff: short, regular sessions help people spot fake invoices, fake updates and fake apps.
Six layers of defense stand between a disguised harmful file and an office laptop
Several layers together stop far more Trojans than any single tool.

Microsoft Defender on Windows

Microsoft Defender Antivirus comes built into Windows 10 and Windows 11, and you can check its status in the Windows Security app. According to Microsoft, it can find and remove Trojans. For companies, it also works with Microsoft Defender for Endpoint, which gives the IT team one view of every laptop. A wider endpoint security plan adds device rules, encryption (scrambling data so thieves cannot read it) and alerts on top. Still, any tool works only when someone keeps it switched on and up to date.

What to Do if You Find a Trojan Horse

Stay calm and act quickly. The aim is to stop the Trojan from reaching more data or more computers. These steps suit most offices:

  1. Disconnect: unplug the network cable or turn off Wi-Fi on the device. Do not switch it off unless IT asks, because it may hold clues.
  2. Report to IT: tell your IT or security team at once, and say what you opened and when. IT then checks whether the company must report it to CERT-In, because the 6-hour clock starts when someone notices the Trojan.
  3. Scan and clean: IT runs a full scan and removes the Trojan. If they cannot be sure it is gone, they rebuild the device from a clean copy.
  4. Change passwords from a clean device: use a different, trusted computer, because the infected one may still record what you type. Start with email, banking and payment accounts.
  5. Find how it got in: check the email, download or app that brought it, and warn colleagues who may have received the same file.

These steps form part of incident response, the wider plan a company follows for any security attack.

Reporting in India

In India, CERT-In (the Indian Computer Emergency Response Team) is the national agency for cyber incidents. Its directions of 28 April 2022 list “malicious code attacks”, including Trojans, among the incidents to report. This applies to service providers, intermediaries, data centers, companies and government bodies. They must report within 6 hours of noticing the incident, by email to incident@cert-in.org.in or by the phone and fax numbers in the directions. That is why step 2 above includes this check, so the report never waits until the end.

Frequently Asked Questions About Trojan Horse

What does Trojan horse virus mean?

“Trojan horse virus” is the everyday name many people use for a Trojan. It means a harmful program that hides inside something that looks safe, such as a bill, a game or an app. Strictly speaking, it is not a virus, because it cannot copy itself. Still, the name has stuck, so you will see both words used for the same threat.

What is a Trojan horse in cyber security?

In cyber security, a Trojan horse is a threat that gets past defenses by fooling a person. The attacker makes the file look trusted, so a staff member opens it. For this reason, security teams treat Trojans as both a people problem and a technical one. They pair staff training with scanning, updates and limited account rights.

What is a Trojan horse in a computer, in simple words?

In simple words, it is a bad program wearing a friendly mask. You think you are opening a useful file or installing a handy app. In reality, you are also letting in something that works against you. It may watch what you type, steal passwords or let a stranger control your computer from far away.

What is a Trojan horse virus example in real life?

A common real-life example is a fake courier message on a phone. It says a parcel is stuck and asks you to install a tracking app from a link. The app looks normal, but it also reads your text messages, including one-time passwords from your bank. Installing apps only from the official app store avoids most traps like this.

Can a Trojan horse virus spread to other computers?

A Trojan cannot copy itself, so it does not jump from one computer to the next on its own. However, the attacker who controls it can use the infected computer to send the same fake file to colleagues by email or chat. That is why you should disconnect the infected computer quickly and warn colleagues about the file.

What does a Trojan virus do in a computer?

Once a Trojan runs on a computer, it does the hidden job its maker planned. It might open a back door for the attacker, record the keys you press, steal saved passwords or send files out over the internet. Some Trojans simply download other harmful programs. Many run quietly for weeks, so regular scans and alerts on unusual activity help catch them sooner.
Use CaseProtect Endpoints and Business Networks

References

  1. Definition of a Trojan horse: NIST Computer Security Resource Center, Glossary: Trojan Horse
  2. How Trojans spread and what they do: Microsoft Learn, Trojan Malware
  3. CERT-In 6-hour reporting rule: CERT-In, Directions under section 70B(6) of the IT Act, 2000 (28 April 2022)
Stay Updated

Get the Latest Terms & Insights.

New encyclopedia terms, threat intelligence, and architecture decisions, by email.

Book a Consultation

A practice principal will contact you within 1 business day.

Thank you! A Signisys principal will be in touch within 1 business day.