Advertising disclosure: this page carries partner links. If you buy through one, Ayvag Plus s.r.o. may earn a commission from the vendor. It never changes your price, and it does not change what is written here — see our editorial policy. Not affiliated with, endorsed by or sponsored by Avast or Gen Digital.

Reference

How antivirus protection actually works

Signatures, heuristics, reputation and behaviour monitoring — what each one catches, what each one misses, and why a detection rate quoted on its own tells you nothing.

No commercial links on this page

This page is reference material and carries no partner links. The site as a whole is advertising-funded — see the editorial policy for how that is kept separate from what is written.

Four checks, not one

The word “antivirus” survives from a period when the technology really was a list of known viruses. Nothing works that way now. A modern engine runs several independent checks, and a file has to pass all of them.

A left-to-right pipeline of five stages. Stage one, file event: something asks to open, write or run. Stage two, signature: the file is compared against known-bad patterns. Stage three, heuristics: its structure and code are inspected for tricks. Stage four, reputation: how common the file is, how old it is and who signed it. Stage five, behaviour: it is watched while it runs and stopped if it turns. Arrows lead from every stage down to two outcomes — allowed, or quarantined and reported.
Figure. Steps two to four happen before anything executes. Step five runs for as long as the program does. Original diagram drawn for this site; not a vendor illustration.

Signatures

A hash or byte-pattern comparison against a list of known-bad code. Extremely fast, essentially no false positives, and useless against anything the vendor has not seen. Because attackers repack their payloads automatically, a signature can be defeated in seconds. It remains in every product because it is nearly free to run and disposes of the enormous volume of recycled malware cheaply.

Static heuristics

The file is examined without being executed: is the code packed or obfuscated, does it import the combination of system functions that only injectors import, does the structure of the executable match what the compiler that supposedly built it would produce. This catches variants of known families and some genuinely new things. It is the first check that can produce false positives, because legitimate software sometimes does unusual things — installers and copy-protection systems especially.

Reputation

A lookup against the vendor’s aggregate view of the file across its whole user base: how many machines have seen it, how long it has existed, whether it carries a valid code signature and from whom. This is the check that flags the freshly-built, unsigned executable that only you have ever run — and it is why a large user base is a genuine technical advantage for a security vendor, not just a marketing one. The trade-off: it works by telemetry, which is a privacy question, and you should read what any vendor sends home before installing it.

Behaviour monitoring

The program is allowed to run and is watched. Enumerating the documents folder and rewriting every file in it, deleting volume shadow copies, injecting code into a browser process, stopping security services, contacting a newly registered domain — none of these is proof of malice on its own, and all of them together are. This is the only check that can stop something genuinely novel, and it is also the only one that acts after execution has begun.

Why the false-positive rate matters as much as the detection rate

You can build a product with a 100% detection rate this afternoon: block everything. The reason nobody does is that the cost of a false positive is high and immediate — a quarantined accounting package on the last day of the month, a blocked driver, a developer’s own build refused. Every detection threshold is a trade between the two error types, and a vendor quoting one without the other is not telling you enough to judge them.

This is why quarantine exists rather than deletion. A quarantined file is isolated but recoverable, which makes a false positive an annoyance rather than a data-loss event.

What detection cannot do

The routes it has to cover

Five entry routes on the left — e-mail attachment or link, cracked or bundled download, fake or compromised website, USB stick or shared drive, and unpatched program or service — with arrows converging on a box labelled your device, from which two arrows lead to two outcomes: stopped before it runs, or it runs, in which case recovery depends on backups and on how quickly the behaviour monitor reacts.
Figure. The separate shields in a security suite are not marketing padding — each one sits on a different one of these routes. Original diagram drawn for this site; not a vendor illustration.

Where the product sits in the stack

Four nested rectangles labelled from the outside in: network, device, application and data, the innermost holding your files, logins and backups. A legend lists the controls at each layer — router settings, firewall rules, DNS filtering and encrypted connections; operating-system updates, disk encryption, the anti-malware engine and ransomware shielding; browser hardening, bad-site blocking, patched plug-ins and attachment scanning; and unique passwords, two-factor authentication and an offline backup.
Figure. Security software is strong at the device and application layers. It contributes nothing to the data layer, which is where the most cost-effective measures available to a home user actually live. Original diagram drawn for this site; not a vendor illustration.

The special case: ransomware

Ransomware is the category where timing dominates everything. Encryption of a full document library on a modern solid-state disk takes minutes, and the behaviour monitor has to make its call inside that window.

A five-stage horizontal timeline — delivery, execution, foothold, encryption, demand — with a note above each stage listing the defences that can still intervene: mail filter, URL block and suspicion at delivery; signature, heuristic, reputation and sandbox at execution; behaviour monitor and tamper protection at foothold; protected-folder rules and rollback at encryption; and at the demand stage, only an offline backup.
Figure. The set of things that help shrinks at each stage until one item is left. Protected-folder rules, which most paid tiers include, are the last control that can act before damage becomes permanent. Original diagram drawn for this site; not a vendor illustration.

And the other special case: you

Web filtering blocks known-bad addresses. It cannot block an address registered forty minutes ago, and phishing operations are designed around that gap. The durable defence is the habit of reading the registered domain.

A mock browser address bar showing a fictitious address using the reserved .example domain, split into five labelled parts: the scheme, which proves only that the connection is encrypted; the subdomain, which is free text and can carry any brand name; the registered domain, highlighted as the only part that identifies the owner; the path, whose wording is invented; and the query string, which often identifies you or the campaign that sent you.
Figure. The registered domain is the last two labels before the first single slash. Everything to the left of it was chosen by whoever owns it. Original diagram drawn for this site; not a vendor illustration.

Sources and further reading

This page describes the general industry model. Individual vendors name, order and combine these stages differently, and vendor documentation prevails for any specific product. Reviewed 21 September 2026 by Lisa Thomas.