Antivirus software is a security program that watches your computer for malicious software — viruses, ransomware, spyware and similar threats — and stops it before it can run, or removes it if it is already there. It works in the background, checking files as they arrive and programs as they start, using several detection methods at once: a database of known threats, pattern analysis for new ones, monitoring of what programs actually do, and, in modern products, a connection to cloud analysis run by the vendor.
That is the short answer. The rest of this guide explains how each of those methods works in plain English, what antivirus can and cannot protect you from, and the question most Windows users actually have in 2026: whether the protection already built into your PC is enough, or whether you still need to install something else.
Antivirus in plain English
The name is a leftover from an earlier era. The first antivirus programs of the late 1980s and early 1990s were built to find computer viruses — programs that copy themselves into other files and spread. Today’s threats are broader, so the software grew with them. The umbrella term for hostile software is malware (from “malicious software”), and it includes:
- Viruses — code that attaches itself to legitimate files and spreads when those files are opened or shared.
- Worms — malware that spreads itself across networks without needing a host file.
- Trojans — programs that look useful or harmless but carry a hidden harmful payload.
- Ransomware — malware that encrypts your files and demands payment for the key.
- Spyware and keyloggers — software that quietly watches what you type, view or copy, and sends it elsewhere.
- Potentially unwanted applications (PUAs) — not outright malware, but software that arrives bundled with other downloads, changes your browser settings, or floods you with ads.
A modern antivirus product is really an anti-malware product. The industry keeps the old name because it is the one everyone recognises. When a vendor says “antivirus,” read it as “protection against the whole malware family,” and check the details to see how broad that protection really is.

How antivirus software works
No single technique catches everything, so antivirus software layers several of them. Here is the pipeline, in roughly the order a suspicious file meets it.
1. Signature-based detection: the fingerprint database
Every known piece of malware has identifying characteristics — most simply, a cryptographic fingerprint (a hash) of the file itself, plus distinctive strings of code inside it. Vendors collect samples of malware from around the world, analyse them, and publish the fingerprints in a definitions database (also called signatures). Your antivirus downloads updates to this database, usually several times a day, and compares files on your machine against it. A match means the file is known-bad: it gets blocked or quarantined.
Signature detection is fast and accurate for known threats. Its weakness is built in: it can only recognise what the vendor has already seen. Brand-new malware has no fingerprint yet, which is why the next layers exist.
2. Heuristic analysis: judging files that look suspicious
Heuristics look at a file’s characteristics rather than its exact identity. Analysts write rules based on what malware code typically does or contains — for example, code that tries to hide itself, modify system files on sight, or decrypt its own payload at runtime. A static heuristic check inspects the file without running it; a dynamic check may run it in a sealed sandbox environment and watch what it attempts.
This catches variants — new malware built from old code — and some genuinely new threats. The trade-off is false positives: occasionally a legitimate program with unusual behaviour gets flagged, which is why good products make quarantine reversible rather than deleting files outright.
3. Behaviour monitoring: watching what programs do
Some malware is only recognisable by its actions. Behaviour monitoring watches running programs for sequences that match attack patterns: a word processor suddenly trying to encrypt hundreds of files, a program injecting itself into another process, something silently editing the registry keys that control what runs at startup.
Microsoft describes exactly this layer in its documentation for Microsoft Defender Antivirus: a behaviour monitoring engine observes process behaviour at runtime, including behaviour sequences, to identify and block attacks — including “fileless” attacks that never save a conventional malware file to disk at all. Behaviour monitoring is the layer most responsible for stopping ransomware mid-attack, because encrypting your documents is a behaviour no ordinary program performs.
4. Real-time protection: checking at first sight
These checks would matter less if they only happened during a weekly scan. Real-time protection (also called on-access scanning) means the antivirus inspects files when they are downloaded, opened, copied or executed — at the moment of first contact, before the code gets a chance to run. It also monitors system areas malware likes to change, such as startup entries.
Real-time protection is the difference between “the scan found a virus on Tuesday” and “the virus never ran.” When people say an antivirus “blocked” something, this layer, combined with the ones above, is usually what did it.
5. Cloud reputation and machine learning
The newest layer lives partly off your machine. When your antivirus meets a file it cannot judge locally, it can ask the vendor’s cloud service: has anyone else seen this file? What did it do on their machines? Microsoft’s documentation describes Defender’s version of this in detail — lightweight machine-learning models on the device reach a verdict in milliseconds, and if a file is still uncertain, its details (or the file itself) go to a cloud protection service backed by larger models and a huge stream of threat signals, which can return a verdict while the file is held back from running.
This matters because most malware is now short-lived. Microsoft has noted that the overwhelming majority of malware files its software blocks are seen on only a single computer — attackers generate fresh variants constantly. A database posted yesterday cannot contain them, but a cloud service that learns from billions of encounters can often judge a file the first time anyone meets it.
6. Scans, quarantine and removal
Alongside real-time protection, antivirus software runs scheduled scans and lets you trigger manual ones. When something is detected, the usual sequence is: stop it running, move it to quarantine (an isolated area where it cannot execute), and then delete it or, if it was a false alarm, restore it. If your PC is already infected, a scan is also the first step of clean-up — see our guide to how to fix a slow PC, where a malware scan is one of the early checks, because an infection is a common hidden cause of slowness.
What antivirus can protect against
Used normally, a current antivirus product gives you solid protection against:
- Known viruses, worms and trojans, via signatures.
- New variants of known malware families, via heuristics.
- Ransomware in the act of encrypting, via behaviour monitoring — though files encrypted before it intervenes may stay encrypted, which is why backups matter.
- Spyware, keyloggers and adware-style bundled junk (PUAs), which most products now flag during installation.
- Malicious downloads and infected email attachments, checked at the moment they arrive.
- In many products, malicious websites — the browser-level blocking that steers you away from known phishing and malware-delivery pages.
What antivirus cannot do
An honest explainer has to be clear about the limits, because most real-world compromises today walk past antivirus rather than breaking through it.
- It cannot make a bad decision safe. If you type your bank password into a convincing fake website, there may be no malicious file involved at all. Browser warnings and your own caution carry that fight.
- It cannot guarantee catching brand-new malware. Detection of a truly novel threat depends on heuristics, behaviour and cloud judgement. These are good and improving, but no vendor can promise 100% — and you should distrust any that does.
- It cannot patch your other software. Many attacks exploit known holes in out-of-date browsers, document readers and operating systems. Updates close those holes; antivirus does not.
- It cannot replace backups. If ransomware wins even briefly, a recent backup — ideally one copy offline or in the cloud — is what gets your files back.
- It cannot protect accounts with weak passwords. Credential theft and reuse are stopped by unique passwords and two-factor authentication, not by scanning files.
- It does not make risky downloads safe. Pirated software, “free” download sites and tools that promise to unlock things are a classic malware delivery route. The safest file is the one you never download — the same caution applies to sketchy web tools generally, as our explainer on Imginn and anonymous Instagram viewers shows from the privacy side.

The built-in question: is Microsoft Defender enough?
If you use Windows 10 or Windows 11, you already have antivirus software. Microsoft Defender Antivirus is built into Windows, switches on automatically, and updates through Windows Update. It is a full product, not a trial or a teaser: real-time protection, behaviour monitoring, cloud-delivered protection and machine learning are all part of it. Microsoft has documented that Defender moved away from relying on a static signature engine back in 2015, toward these predictive technologies, precisely because signatures alone stopped being enough.
One behaviour worth knowing: if you install a third-party antivirus on Windows, Defender normally steps aside — its real-time protection turns off so the two do not fight — and it may still run occasional limited scans. That is by design, not a fault.
So is Defender enough? For a typical home user who keeps Windows and their browser updated, downloads software from official sources, and is reasonably careful with email attachments, Defender is a legitimate, capable baseline — a very different situation from the early 2000s, when Windows shipped with nothing and a separate product was essential. Reasons people still choose a paid third-party product are usually about extras rather than core detection: coverage for a whole family’s mixed Windows, Mac and phones under one subscription, bundled password managers or VPNs, parental controls, identity-theft services, or a preference for one company’s support and interface.
Mac users have a built-in layer too: macOS includes XProtect, which checks for known malware in the background, plus Gatekeeper, which controls which software can run. Whether a Mac needs additional antivirus is a judgement call based on habits — Macs are targeted less often than Windows PCs, but they are not immune, and the same phishing and bad-download risks apply on any platform.
How to check your antivirus is actually on
Protection only counts if it is running. On Windows:
- Open Settings → Privacy & security → Windows Security, or search the Start menu for “Windows Security.”
- Open Virus & threat protection. It should say no actions are needed, and show your antivirus provider (Microsoft Defender Antivirus, or a third-party product if you installed one).
- Under Virus & threat protection settings, confirm Real-time protection and Cloud-delivered protection are on.
- Run a Quick scan if the PC has been behaving oddly; use Scan options → Full scan for a deeper pass.
If real-time protection shows as off and you did not turn it off, treat that as a warning sign in itself — some malware tries to disable security software — and run a full scan.
Habits that matter as much as the software
Antivirus is one layer. These habits close the gaps it leaves:
- Keep everything updated — operating system, browser and apps. Updates are where security holes get fixed.
- Back up what matters — photos, documents, work files — to an external drive or cloud storage, so ransomware or a dead drive is an inconvenience, not a disaster.
- Use unique passwords and two-factor authentication, ideally with a password manager.
- Download from official sources only — the vendor’s site or your system’s app store, not download portals or links in unsolicited messages.
- Slow down on attachments and links — unexpected “invoices,” delivery notices and prize claims are the most common malware and phishing delivery method of all.
Frequently asked questions
Is antivirus the same as anti-malware?
In practice, yes for modern products. “Antivirus” is the older name that stuck; current products from all major vendors target the full range of malware — trojans, ransomware, spyware and more — not just self-replicating viruses. Check a product’s stated protections rather than judging by its name.
Do I still need antivirus if I have Windows 11?
You already have it: Microsoft Defender Antivirus is built in and on by default. The real question is whether you want a third-party product’s extras on top. For most careful home users, Defender plus updates and backups is a reasonable setup; nobody needs two real-time antiviruses running at once — they conflict, and Windows handles the hand-off automatically.
Can antivirus software slow down my computer?
It can use resources during scans, and older or low-powered machines may feel a full scan. Day-to-day real-time protection on a modern PC is usually light. If a machine became slow suddenly, do not assume the antivirus is the cause — work through a proper diagnosis, starting with the steps in our slow PC guide.
Can antivirus remove a virus that is already on my PC?
Usually, yes — that is what quarantine and removal are for, and a full scan is the right first step. Deeply embedded infections occasionally need a vendor’s offline or rescue scan (Defender includes an offline scan option). If a machine is badly compromised and behaving unpredictably, reinstalling the operating system and restoring files from a clean backup is the most certain clean-up.
Do phones need antivirus?
Android allows apps from outside the official store, so a reputable security app can add value there, though Google Play Protect already scans apps on most Android phones. iPhones are locked down by design — apps are sandboxed and installed only through Apple’s App Store — so traditional antivirus apps for iOS are limited to extras like web filtering and VPNs rather than true file scanning.
Can antivirus catch every virus?
No. No product catches everything, every time — new malware appears constantly, and detection of the newest threats is probabilistic. Antivirus dramatically reduces your risk, especially combined with updates, backups and care about what you download and click. Anyone selling you a guarantee of total protection is overselling.
The bottom line
Antivirus software is your computer’s immune system: a layered set of checks — fingerprints of known threats, pattern analysis, behaviour watching, real-time interception and cloud judgement — that stops most malware before it runs and cleans up much of what slips through. It is essential, but it is not magic, and it works best alongside updates, backups and a moment’s thought before opening things. The good news for Windows users is that a capable version is already built into your PC. Make sure it is on, keep it updated, and spend the money you might have spent on a duplicate product on a backup drive instead.
Try the free Password Generator
Antivirus handles the malware side — unique passwords handle the account side. Generate a strong random password free, right in your browser.


