Malware & ransomware

What Is Antivirus? How It Works, Types and Do You Still Need One

Antivirus is the immune system for your devices. Here is how it spots malware — and what it cannot stop.

Cysoro Security TeamPublished · 8 min read
! MALWARE & RANSOMWARE What isantivirus? How it spots malware — and its limits.
Quick answer

Antivirus is software that detects, blocks and removes malicious software, or malware, from computers, phones and tablets. It scans files against a database of known malware signatures, uses heuristics and behavior monitoring to catch new threats, and quarantines anything suspicious. Most Windows, Mac and Android devices already include built-in antivirus, and paid suites add extras such as a VPN and password manager.

Key takeaways

  • Antivirus detects malware with signatures, heuristics, behavior monitoring and cloud lookups working together.
  • Windows, macOS and Android already include built-in antivirus — Microsoft Defender scored full marks for protection in AV-TEST's late-2025 rounds.
  • Antivirus cannot stop phishing, scams or unpatched software, so pair it with updates, backups and phishing-resistant MFA.

Every file you download, every attachment you open and every website you visit is a chance for malware to get in. Antivirus software is the guard at that door: it checks what comes through, blocks what looks dangerous, and removes what slips past.

What is antivirus software?

Antivirus software is a program that protects a computer, phone or tablet from malicious software, or malware. It prevents infections, detects malware that is already present, and removes or quarantines it.

The word "antivirus" is older than the threats it now fights. The first antivirus programs targeted computer viruses — programs that copy themselves into other files. Today's antivirus covers viruses, worms, trojans, ransomware, spyware, adware and rootkits, which is why vendors increasingly call it anti-malware instead.

Antivirus works in two modes. Real-time protection checks each file the moment it is opened, downloaded or run, so a bad file is caught at the door. On-demand scanning goes through your files on a schedule or when you ask it to, catching anything that arrived while protection was off.

How does antivirus work?

Antivirus works by layering several detection methods, because no single method catches everything. A file passes through signature checks, heuristic analysis, behavior monitoring and cloud lookups before it is allowed to run.

When you download a file, real-time protection scans it first. If it matches a known malware signature, it is blocked immediately. If it looks suspicious but is not a known match, heuristics and behavior monitoring take over. If the antivirus still cannot decide, it can ask the vendor's cloud service, which has seen the file on millions of other devices.

If a file is judged malicious, the antivirus moves it to quarantine — a locked folder where it cannot run — and usually offers to delete it. Quarantine matters because it lets you restore a file if the detection was a false positive.

How antivirus checks a file, step by step 1Signature checkknown malwarefingerprint?Match = block now 2Heuristic checksuspicious codestructure?High score = flag 3Behavior watchwhat does it dowhen it runs?Ransomware-like = stop 4Cloud lookuphas the vendorseen this file?Verdict in seconds A file that passes all four layers is allowed to run.
Four layers check every file before it runs. Illustration by Cysoro.

What are the main antivirus detection methods?

Modern antivirus layers four detection methods, each catching what the others miss. Signature detection is fast and precise, heuristics catch new variants, behavior monitoring catches malware that only reveals itself when it runs, and cloud lookups bring the vendor's global intelligence to your device.

Signature-based detection

Signature detection compares a file against a database of known malware fingerprints, such as a SHA-256 hash or a distinctive byte sequence. A match means the file is known malware, and it is blocked immediately.

Signatures are fast and produce few false positives, but they are reactive: a virus must be known before its signature can be added. New or modified malware slips past until the vendor updates its database, which is why antivirus definitions update constantly.

Heuristic detection

Heuristic detection examines code for suspicious characteristics rather than an exact match. It looks for traits malware often has, such as code that disables security tools, hides itself, or starts with every boot, and scores the file on those traits.

A high score gets the file flagged even if nobody has ever seen it before. Heuristics catch new variants of known malware, but they produce more false positives than signatures, so vendors tune them carefully.

Behavioral detection and sandboxing

Behavioral detection watches what a program actually does while it runs, rather than what it looks like. A word processor that suddenly opens thousands of documents and rewrites each one looks like ransomware, so the tool stops it.

To watch behavior safely, many products first run a suspicious file inside a sandbox — an isolated environment where it can do no real harm. Microsoft's Defender Antivirus can stop threats based on their behaviors and process trees even after execution has started, according to Microsoft Learn.

Cloud-based detection and machine learning

Cloud-based detection sends details of suspicious files to the vendor's servers, where they are checked against intelligence from millions of protected devices. Machine learning models trained on benign and malicious programs help decide whether a new file is a threat.

Cloud lookups are why an antivirus can block a brand-new threat within hours of its first appearance. The trade-off is privacy and connectivity: the antivirus sends file details to the vendor, and offline detection is weaker, as independent tests have shown.

What types of antivirus are there?

Antivirus comes in three main forms: built-in protection that ships with your operating system, free standalone products, and paid security suites. The detection engine is often similar; the difference is the extras.

TypeExamplesCostBest for
Built-inMicrosoft Defender, Apple XProtect, Google Play ProtectFree, includedMost home users
Free standaloneAvast Free, AVG Free, Bitdefender FreeFreeBasic extra protection
Paid suiteNorton 360, Bitdefender Total Security, McAfee Total ProtectionSubscriptionFamilies, extras such as VPN
Business endpointMicrosoft Defender for Endpoint, CrowdStrike, SentinelOnePer deviceCompanies, central management

Business endpoint products are a different category: they add central management, detection and response, and reporting for IT teams. CrowdStrike, for example, lists annual prices of $59.99 per device for Go, $99.99 for Pro and $184.99 for Enterprise, with monthly-billed rates of $7.99, $14.99 and $19.99 per device.

What antivirus is already built into your devices?

Windows, macOS and Android each ship a working antivirus that is switched on before you install anything. For most people, that built-in protection is enough, and installing a second real-time antivirus can cause conflicts.

Microsoft Defender Antivirus is built into Windows 10 and 11, and Microsoft describes it as free, included in Windows, always on and always working to protect your PC against malware. It combines signatures, behavior monitoring, anomaly detection and cloud-delivered protection, and it turns itself off when you install another antivirus.

On macOS, XProtect detects malware by signature and Gatekeeper blocks unsigned apps, while on Android, Google Play Protect scans apps from the Play Store. iPhones rely on Apple's app review and sandboxing instead of a traditional antivirus.

Independent lab results back the built-in option. In AV-TEST's November to December 2025 consumer rounds on Windows 11, Microsoft Defender scored 6.0 out of 6 for protection, 6.0 for performance and 6.0 for usability, detecting 100% of prevalent malware in both months. Its weak spot is offline detection, where several competitors score higher.

What can't antivirus protect against?

Antivirus is one layer, not a complete defense. It cannot stop attacks that do not involve malware at all, and it cannot fix the human and configuration weaknesses that attackers exploit most.

  • Phishing: a convincing email that asks you to type your password into a fake site contains no malware for antivirus to catch.
  • Scams: a caller who talks you into sending money or installing remote-access software bypasses antivirus entirely.
  • Unpatched software: antivirus cannot fix a vulnerability in an application you have not updated.
  • Stolen passwords: if your password is in a breach, antivirus cannot stop someone logging in as you.
  • Zero-day malware: brand-new malware with no signature and no suspicious behavior can slip past until the vendor learns about it.

The FBI's Internet Crime Complaint Center received 191,561 phishing and spoofing complaints in 2025, making it the most-reported internet crime that year. CISA's guidance on malware, phishing and ransomware makes the same point: no antivirus can solve that on its own, which is why phishing-resistant MFA and verification habits matter as much as any scanner.

Antivirus is not a backupRansomware can encrypt your files faster than antivirus can stop it. Keep an offline or cloud backup of anything you cannot afford to lose, and test that you can restore from it.

How do you choose an antivirus?

Start with what you already have. If you run Windows 11, macOS or Android and keep your software updated, the built-in protection is a strong baseline. Buy a paid suite only for a specific extra you need.

Choosing antivirus: the short checklist 1. Check what you already have — Defender, XProtect or Play Protect may be enough 2. Read independent lab results — AV-TEST and AV-Comparatives, not vendor claims 3. Count the devices — one subscription should cover your household 4. Check the renewal price — first-year discounts often double at renewal 5. Never run two real-time antivirus engines at once
Start with built-in protection and buy only for extras you need. Illustration by Cysoro.
  • Read independent lab results from AV-TEST and AV-Comparatives, not vendor marketing. Look at protection, performance and false positives together.
  • Count your devices: a household subscription should cover every PC, phone and tablet you own.
  • Check the renewal price, not just the first-year discount, which often doubles at renewal.
  • Never run two real-time antivirus engines at once, because they can conflict and slow your device.
  • Prefer vendors with a clear privacy policy about what data the antivirus sends to the cloud.

If you are choosing for a small business rather than a household, our small business cybersecurity checklist covers antivirus alongside backups, updates and device security.

What should you do if antivirus finds malware?

Act quickly but calmly. Let the antivirus quarantine the file first, then check what else the malware may have touched before you delete anything.

  1. Let the antivirus quarantine the threat and do not restore it unless you are certain it was a false positive.
  2. Run a full scan, not just a quick scan, to find anything else hiding on the device.
  3. Change passwords for email, banking and other important accounts, from a clean device, if the malware may have stolen credentials.
  4. Check for new mail-forwarding rules and unknown devices on your email and cloud accounts.
  5. Update everything — operating system, browser and apps — to close the hole the malware used.
  6. Restore from backup if files were encrypted or damaged, rather than paying a ransom.

If the infection keeps coming back, or the device behaves strangely after cleaning, consider a full reinstall of the operating system. That is the only way to be certain a rootkit is gone. You can also learn the warning signs of a compromised device in our guide on how to know if your phone is hacked.

The bottom line

Antivirus is software that detects, blocks and removes malware using signatures, heuristics, behavior monitoring and cloud intelligence. For most people, the built-in protection on Windows, macOS and Android is enough — and it scores at the top of independent lab tests.

But antivirus is only one layer. Keep your software updated, back up your files, use phishing-resistant MFA, and stay skeptical of urgent messages asking for money or passwords. If you want to check the wider security of your setup, start with the small business cybersecurity checklist.

Frequently asked questions

What is antivirus in simple terms?

Antivirus is software that protects your computer, phone or tablet from malicious programs. It checks files and downloads, blocks anything it recognizes as dangerous, and removes malware that is already on your device.

How does antivirus software work?

It combines several detection methods: signature matching against known malware, heuristics that judge suspicious code, behavior monitoring that watches what programs do, and cloud lookups that check suspicious files against the vendor's intelligence.

Do I need antivirus if I have Windows Defender?

For most home users, no. Microsoft Defender Antivirus is built into Windows 10 and 11, always on, and scored 6 out of 6 for protection in AV-TEST's November to December 2025 rounds. A paid suite is worth it mainly for its extras, such as a VPN, password manager or identity monitoring.

Does antivirus protect against phishing?

Only partly. Antivirus can block known malicious websites and attachments, but it cannot stop a convincing phishing email that asks you to type your password into a fake login page. That needs phishing-resistant MFA, email authentication and a habit of verifying requests.

Can antivirus remove ransomware?

Antivirus can block ransomware before it runs and sometimes remove it after infection, but it cannot always decrypt your files. That is why backups matter: with a clean backup, you can restore your files instead of paying a ransom.

Is free antivirus good enough?

Free antivirus from a reputable vendor, including the built-in protection on Windows, macOS and Android, covers the basics well. Paid versions add features such as a firewall, parental controls, a VPN and identity monitoring, but they do not usually detect much more malware.

What is the difference between antivirus and anti-malware?

The terms are mostly interchangeable now. Antivirus originally meant protection against viruses only, while anti-malware covered all malicious software. Modern products do both, and vendors use the two names for the same kind of software.

Does a Mac or iPhone need antivirus?

Macs include XProtect and Gatekeeper, and iPhones are protected by Apple's app review and sandboxing, so most users do not need extra antivirus. A Mac user who downloads software outside the App Store, or an Android user who sideloads apps, benefits more from added protection.

Sources

  1. Microsoft Learn — Microsoft Defender Antivirus in Windows overview
  2. Norton — What is antivirus? Definition, types, and benefits
  3. AV-TEST — Windows 11 home user test, November–December 2025
  4. CISA — Malware, Phishing, and Ransomware
  5. FBI IC3 — 2025 Internet Crime Report
Written & fact-checked byCysoro Security Team

The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.

  • Email authentication
  • Phishing & BEC
  • Domain & DNS security
  • Small-business security

Checked against Microsoft Learn documentation on Defender Antivirus, AV-TEST lab results, and CISA guidance on malware and ransomware.

How we write and fact-check →

See where your domain stands

Free for up to 3 domains. No card, no installs.

Start free