# Malware

> Any program made to do harm. It may steal data or lock your files.

**Field:** Infrastructure  
**Category:** Security  
**Also known as:** Malicious Software, Computer Virus, Virus, Trojan, Trojan Horse, Spyware, Computer Worm

## Think of it like

It is like a germ that gets into your body. It spreads and makes things go wrong.

## Definition

Malware is any program made to harm a computer or the people who use it. It can steal passwords, spy on what you do, lock your files or use your machine to attack others. A virus spreads by hiding inside other files. A worm spreads on its own across a network. A trojan pretends to be something useful. Malware often gets in through a phishing link or a fake download.

## Example

Emma downloads a free copy of a paid game. It also installs spyware that sends her saved passwords to a stranger.

## Why it matters

Once malware runs on a machine, it can do anything you can do. Keeping it out is far easier than cleaning it up.

## Common mistake

Thinking an up-to-date system cannot get malware. If you run a bad file yourself, updates do not stop it.

## Three principles

- **Made to harm.** Its purpose is theft, spying or damage.
- **Many kinds.** Viruses, worms, trojans and spyware.
- **Needs a way in.** Often a link, a download or an old bug.

## Related terms

- [Ransomware](https://learn.benibix.com/term/infrastructure/ransomware)
- [Phishing](https://learn.benibix.com/term/infrastructure/phishing)
- [Antivirus Software](https://learn.benibix.com/term/infrastructure/antivirus)
- [Security Vulnerability](https://learn.benibix.com/term/development/vulnerability)
- [Supply Chain Attack](https://learn.benibix.com/term/development/supply-chain-attack)
- [Firewall](https://learn.benibix.com/term/infrastructure/firewall)
- [Exploit (Security)](https://learn.benibix.com/term/development/exploit)

## Told apart from

- [Phishing vs Malware](https://learn.benibix.com/compare/phishing-vs-malware): People think phishing is a kind of malware, and it is not. Phishing is a fake message. It fools a person into giving up a password or clicking a link. Malware is a harmful program that runs on a machine. The two often work together, because a fake email is a common way to get malware in.

## Taught in

- [Desktop Apps and Installers](https://learn.benibix.com/learn/development-platforms/desktop-apps-and-installers): OS and Files, 10/10
- [Phishing and Online Scams](https://learn.benibix.com/learn/general-internet/phishing-and-online-scams): Online Safety, 6/8

![Three panels side by side. In the first, a fake email asks a person to click a link and type their password. In the second, a harmful program locks the files on a laptop and shows a note asking for payment. In the third, arrows from many machines flood one server until real users cannot get through.](https://learn.benibix.com/diagrams/inf-attack-types.svg)

---

Source: https://learn.benibix.com/term/infrastructure/malware
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-19
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
