Foxcolab

Glossary

Malware

Definition

Malware: Software, firmware or files intentionally designed to harm a system or its data, such as viruses, worms, trojans, spyware and ransomware. CISA describes malicious code as unwanted files or programs that can cause harm to a computer or compromise the data stored on it.

Also known asmalicious softwaremalicious codevirustrojan

In short

Malware, short for malicious software, is any program or file designed to harm a computer, steal data or take control of a device. Viruses, worms, trojans, spyware and ransomware are all malware. It usually arrives through email attachments, booby-trapped documents, fake downloads and links, so the best defenses combine updated software, careful attachment handling and backups you can restore from.

Key takeaways

  • Malware is any software or file built for a harmful purpose, including viruses, trojans, spyware and ransomware.
  • Documents can carry malware too, through macros or flaws in the app that opens them.
  • Disguised file names, such as a program posing as a PDF, are a classic delivery trick.
  • Encryption doesn't remove malware. An encrypted attachment can still be harmful once opened.
  • Updates, limited accounts, attachment caution and restorable copies are the core defenses.

Last reviewed 30 November 2026

Malware, short for malicious software, is any program or file built to harm a device, steal its data or take control of it. NIST's glossary describes it as "hardware, firmware, or software that is intentionally included or inserted in a system for a harmful purpose." CISA puts it more simply: "unwanted files or programs that can cause harm to a computer or compromise data stored on a computer."

The main types#

TypeWhat it does
VirusAttaches to files and spreads when they're shared or opened
WormCopies itself from computer to computer on its own
TrojanHides a harmful payload inside a program that looks legitimate
SpywareWatches what you type and do, and sends it to someone else
RansomwareEncrypts or steals your files and demands payment

A worked example#

An email from a "supplier" says an invoice is overdue and attaches invoice.zip. Inside is invoice.pdf.exe, and because the computer hides known extensions, it shows as invoice.pdf. One double-click runs a program that installs spyware, which collects saved passwords. The same attack works with a document that asks you to "enable content," which turns on macros that download the real payload. The email itself is social engineering; the attachment is the malware.

What short definitions miss#

Documents can be dangerous too. CISA lists "malicious data files" that exploit weaknesses in the program that opens them, such as PDFs and office documents.

Encryption doesn't clean a file. An encrypted attachment arrives exactly as sent, harmful parts included. That's why the strongest checks happen on the device, before a file is sent or opened.

Recovery is a defense. CISA's tips end with backing up data. If malware damages files, a copy you can restore turns a disaster into an afternoon.

In Foxcolab#

Foxcolab Mail checks every file you attach, on your device, before it uploads. Programs, names built to disguise them and archives that contain them can't be attached at all, and you'll see This file can't be attached. Documents that can run macros, PDFs with actions and password-locked archives go out with a warning. When you read mail, a link whose text doesn't match where it really goes asks you to Check this link before you open it. None of these checks sends your files or messages to Foxcolab.

In Foxcolab Drive, where files and file names are end-to-end encrypted, a damaged copy uploaded over a good file doesn't have to be the end: open the file's Versions and choose Restore this version, or recover deleted items from Trash for 30 days. Create a free account to try both.

Keep exploring

All terms

Foxcolab

Private work tools, without the ads.

Mail, files, documents, spreadsheets and meetings in one account. Files, documents and spreadsheets are end-to-end encrypted.

Jump to