What Is Malware?

Written by:
Harry Marsden Security Strategy Engineer Business Computer Solutions LinkedIn
A business owner using his laptop but it has become infected with malware files.

Malware comes in many forms, from viruses and worms to trojans, ransomware and spyware. This guide covers what malware is, the common types of malware, what a trojan virus does, how malware infects a device, the signs of an infection, what to do next and how to defend against it.

Malware is any software that can damage computer systems, networks or devices. Businesses keep malware out by updating every device promptly, installing software only from trusted sources, keeping anti-malware protection switched on, limiting administrator rights, filtering email and web traffic, and training staff to report anything unusual straight away.

Ransomware is one type of malware, explained in full in What Is Ransomware?.

What Malware Is

Malware, short for malicious software, is any software that can damage computer systems, networks or devices. Viruses, worms, trojans, ransomware and spyware are all types of malware.

Once malware runs on a device, it can harm a business in several ways:

  • Locking devices. A computer or phone becomes locked or unusable.
  • Taking data. Files are stolen, deleted or encrypted.
  • Stealing logins. Captured passwords give criminals access to the business’s systems and online services.
  • Hijacking devices. Infected computers are controlled remotely and used to attack other organisations.
  • Running up costs. Devices are used to mine cryptocurrency or make premium rate calls.

No single defence stops every infection, which is why the NCSC’s malware and ransomware guidance recommends layers of defence, with several measures at each layer.

Types of Malware

The common types of malware differ in how they spread and what they do once they arrive:

  • Viruses. A virus infects legitimate software and spreads across networks when that software is run.
  • Worms. A worm copies itself across networks without anyone opening an infected file.
  • Trojans. A trojan is disguised as legitimate software and gives an attacker unauthorised access to a computer.
  • Ransomware. Ransomware locks a device or encrypts its files, then demands payment.
  • Spyware. Spyware installs without consent, collects data and sends it to someone else.
  • Keyloggers. A keylogger secretly records every key pressed, capturing passwords as they are typed.
  • Wipers. Wiper malware destroys the data on the computers and networks it infects.

A virus and a worm both copy themselves, but a virus needs someone to run infected software, while a worm spreads on its own. The NCSC’s cyber security glossary defines each of these terms.

What Is a Trojan Virus?

A trojan virus is malware disguised as legitimate software, used to gain unauthorised access to a computer. “Trojan virus” is the everyday name, although the NCSC’s glossary treats trojans and viruses as separate types. A virus spreads by infecting other software, while a trojan relies on someone installing it, believing it is a free tool, an update or a document.

Once a trojan is running, it can:

  • Open a way in. The attacker gains access to the device and the systems it connects to.
  • Steal information. Files, passwords and banking details are collected from the device.
  • Damage files. Data is corrupted or deleted.
  • Recruit the device. The computer joins a botnet (a network of infected devices) used in coordinated attacks, without its owner’s knowledge.

Because a trojan looks like something the user wants, the best defences are installing software only from official stores and trusted websites and keeping anti-malware running.

How Does Malware Infect a Device?

Malware infects a device when someone is tricked into running it, or when an attacker finds a weakness that lets it run unnoticed. The common routes in are:

  • Phishing emails. An attachment or link in a convincing message installs malware when opened.
  • Harmful websites and adverts. A compromised website or a malicious online advert installs malware without the visitor knowing.
  • Fake software. Apps from unofficial stores, or from websites with a misspelt version of a real name, carry malware.
  • Harmful macros. Macros (small pieces of code inside documents) run malicious code when enabled.
  • Removable media. USB drives and memory cards carry malware between devices.
  • Unpatched software. Attackers exploit known weaknesses in out-of-date systems and apps.
  • Exposed remote access. Remote desktop services left open to the internet let attackers install malware directly.

Phishing is often how criminals first reach a device, and How to Spot Phishing Attempts shows how to recognise it.

Why Malware Is a Business Risk

Malware is a business risk because one infected device can open up the accounts, systems and data it connects to. The GOV.UK Cyber Security Breaches Survey 2025/2026 gives the example of a phishing attack that leads to malware being installed on a device, which then gives the attacker unauthorised access to files.

The same survey found that 16% of businesses that identified a breach or attack in the past year had devices targeted with malware such as viruses or spyware. Across all businesses the figure was 7%, rising to 12% of medium businesses and 23% of large businesses.

Malware can also arrive through a trusted supplier, a risk covered in DDoS and Supply Chain Attacks.

Signs a Device May Have Malware

Malware often works quietly, so an infection can go unnoticed for some time. Warning signs include:

  • A slow or unstable device. It runs slowly, restarts by itself, or opens and closes apps on its own.
  • Unfamiliar pop-ups. Boxes you do not recognise ask you to do something unexpected.
  • Messages you did not send. Contacts receive emails from you advertising products or asking for money.
  • Unrecognised login alerts. A notice of a sign-in you did not make.
  • Security warnings. Antivirus software reports an infection.

Spyware and keyloggers are built to stay hidden, so a full antivirus scan is the quickest check on a PC or laptop. A phone call claiming your device is infected is itself a common scam. The NCSC’s advice on recovering an infected device says to hang up and report the call to Report Fraud.

What to Do If a Device Has Malware

If a device might have malware, tell your IT team straight away. Early reporting gives the best chance of containing an infection, and nobody should be afraid to own up to a click. Recovery then follows a clear order:

  • Update and scan. Install the latest updates, run a full antivirus scan and follow its advice.
  • Wipe if the scan fails. Reinstall everything, starting with the operating system.
  • Reset phones and tablets. A factory reset is the safest fix for a mobile device.
  • Restore from a clean backup. Use the last backup known to be good, not files rescued from the infected device.
  • Secure it afterwards. Keep it updated, check it is encrypted and confirm antivirus is running.

Some malware spreads across the network, so checks should go beyond the first device. Where personal data may be exposed, How to Mitigate Against Data Breaches and Sensitive Information Attacks explains what to do.

How to Defend Against Malware

Defending against malware means stopping it reaching devices and stopping it running if it arrives. Keeping every device, app and browser up to date is the best way to protect against viruses, according to the NCSC’s guide for small organisations.

  • Prompt updates. Turn on automatic updates, and replace devices that no longer receive them.
  • Trusted software only. Install apps from official stores and trusted websites, or use an allow list (approved applications only) on business devices.
  • Anti-malware switched on. Check antivirus and firewalls are running and updating.
  • Limited administrator rights. Keep the power to install software to the few who need it, and never use an administrator account for email or browsing.
  • Email and web filtering. Block malicious attachments and known harmful websites.
  • Macros and autorun controlled. Restrict macros, and stop removable media running anything automatically.
  • Aware staff. Teach people the common routes in, and make reporting a mistake easy.

Limiting the Damage When Malware Gets Through

Some malware will get past even good defences, so plan for it in advance. These measures limit how far an infection reaches and how quickly the business recovers:

  • Multi-Factor Authentication. A second check beyond a password stops stolen passwords being reused, as explained in What Is Multi-Factor Authentication and Why It Matters.
  • Least privilege. Give each person only the access their work needs, and remove permissions nobody uses.
  • Old systems kept apart. Separate anything that no longer receives updates from the rest of the network.
  • Recent offline backups. Copies kept apart from the network let a business recover even from wiper malware.
  • A response plan. Agree who does what, and keep the plan where it can be reached if systems are down.

Backup and Disaster Recovery: A Business Guide covers recovery planning in depth.

Malware Protection and Cyber Essentials

Malware protection is one of the five technical controls in Cyber Essentials, the minimum standard of cyber security the Government recommends for organisations of all sizes. The control exists to identify and immobilise viruses and other malicious software before they can cause harm. The other four controls (firewalls, secure configuration, user access control and security update management) close many of the routes malware uses to get in.

In the GOV.UK Cyber Security Breaches Survey 2025/2026, 81% of businesses had up-to-date malware protection, up from 77% the year before. Cyber Essentials: What It Is and Why It Matters explains how certification works.

What to Expect From a Cyber Security Provider

Malware defence works best when updates, protection, backups and training are managed together. Look for:

  • Devices kept current. Updates applied promptly, with devices that lose support flagged for replacement.
  • Protection that is watched. Anti-malware and filtering checked and acted on, not just installed.
  • Backups that are tested. Copies held apart from the network and restored on a schedule, as part of Backup and Disaster Recovery.
  • Training staff can use. Practical guidance on the routes malware takes, as in Cyber Security Training in Kent.
  • Fast help after an infection. Support to isolate, clean and restore the device.
  • Cultural fit. A provider that makes time to understand how you work, what matters to your business and what your goals are. Plain English, the same familiar people and regular updates.

Cyber Security Services in Kent shows how these protections are delivered. Other common threats are explained in Cyber Attacks: Common Threats Explained.

FAQs about What Is Malware?

Malware is any software that can damage computer systems, networks or devices. Malware, short for malicious software, includes viruses, worms, trojans, ransomware and spyware, and can lock devices, steal or encrypt data and capture passwords.

A trojan virus is malware disguised as legitimate software, such as a free tool or an update, that gives an attacker unauthorised access to a computer once installed. Trojans are used to steal information, damage files or take control of the device.

A virus spreads by infecting legitimate software and needs someone to run it, while a worm copies itself across networks on its own. Both are types of malware, and keeping devices updated helps stop each of them.

Malware most often gets onto a computer through a phishing email, with an infected attachment or a link to a harmful website. It also arrives through fake downloads, unpatched software, USB drives and remote access services left open to the internet.

Yes. Phones, tablets and Macs can all be infected. Apple devices have built-in virus protection switched on, and the NCSC advises that smartphones do not need antivirus provided only official apps are installed. Keeping every device updated matters most.

No. Antivirus software detects and removes many threats, but no single defence stops every infection. Prompt updates, trusted software, limited administrator rights, email filtering, Multi-Factor Authentication, tested backups and staff awareness all work alongside it.

Tell your IT team straight away. A full antivirus scan is the quickest check. If the scan cannot clean the device, it is wiped and reinstalled, and files are restored from the last backup known to be good.