What Is Malware? Types, How It Spreads and How to Remove It

By Kalenfy · Updated 27 June 2026 · 7 min read

What Is Malware? Types, How It Spreads and How to Remove It

Malware — short for malicious software — is any program or code intentionally designed to damage a system, disrupt its operation, steal data, or gain unauthorised access. It's an umbrella term covering dozens of specific attack types, from viruses that spread between files to ransomware that holds your business to ransom. Understanding the landscape helps you recognise threats and choose the right defences.

The main types of malware

Virus

The oldest form. A virus attaches itself to a legitimate file or program and replicates when that file is executed, spreading to other files and systems. True viruses require human action (opening an infected file) to spread. They can corrupt data, crash systems or act as a delivery mechanism for other malware. Less common than they once were — modern attackers prefer more targeted approaches.

Trojan (Trojan horse)

Malware disguised as legitimate software. A trojan doesn't replicate on its own — it relies on users downloading and running it, believing it's something useful (a free game, a cracked tool, a fake software update). Once running, it can install backdoors, steal credentials, log keystrokes, or download additional malware. The most common initial access method for sophisticated attacks.

Ransomware

Encrypts files and demands payment for the decryption key. Often delivered via phishing email or a trojan loader. One of the most damaging malware types for businesses because it directly interrupts operations and can cause permanent data loss. See our dedicated ransomware guide for a full breakdown.

Spyware

Silently collects information about you or your system and sends it to the attacker — keystrokes, screenshots, passwords, browsing history, financial data. Often bundled with free software or browser extensions. Designed to be invisible; victims rarely know it's there.

Adware

Injects unwanted advertising into your browser or system — pop-ups, redirected search results, replaced ads on legitimate sites. Usually less destructive but can degrade performance and expose users to malicious ads. The boundary between adware and spyware is often blurry.

Worm

Self-replicating malware that spreads across networks without requiring user action. Once inside a network, a worm can propagate to every reachable system automatically — making it especially dangerous in enterprise environments. WannaCry (2017) was a famous worm-ransomware combination.

Rootkit

Designed to hide the attacker's presence at a deep system level — modifying the operating system to conceal processes, files, network connections and registry entries. Rootkits are hard to detect because they subvert the very tools used to look for them. Often used to maintain persistent, hidden access after initial compromise.

Botnet malware

Turns your device into a "bot" — remotely controlled by the attacker as part of a larger network. Botnets are used to launch DDoS attacks, send spam, mine cryptocurrency, or conduct credential-stuffing campaigns. The device owner typically has no idea.

Keylogger

Records every keystroke typed on a device and sends them to the attacker — capturing passwords, credit card numbers, messages. Often a component of a broader trojan rather than standalone.

How malware spreads

Signs your device or site may be infected

How to remove malware

On a device:

  1. Disconnect from the network immediately to stop spread and exfiltration
  2. Boot from a clean external drive or use a live antivirus rescue disk — malware running in the OS can hide from scanners running within it
  3. Run a reputable malware scanner (Malwarebytes, Windows Defender Offline, ESET Online Scanner)
  4. For severe infections or rootkits, the safest path is wiping and rebuilding from known-clean backups — rootkits can survive a standard antivirus scan
  5. Change all passwords from a clean device after removing malware

On a website:

Follow the steps in our guide on how to fix a hacked website — identify the entry point, clean or restore from backup, patch the vulnerability, and harden before going back online.

How to prevent malware

Check your own domain — free

Kalenfy runs a passive scan of your SPF, DKIM, DMARC, DNSSEC, CAA and more, then gives you a downloadable PDF report with exact fixes. You see your grade first — no email needed to view it.

Scan my site free

Related guides