What antivirus is for
Antivirus software, now often called endpoint protection, tries to stop malicious programs from running on a computer or phone, and to remove them if they do. The name is historical: it began when most malware spread as viruses copying themselves between floppy disks. Today it must deal with ransomware, spyware, banking trojans and programs that steal passwords. Windows, macOS and Android all now include built-in protection that runs by default, and businesses add more advanced tools that report to central security teams. All of them face the same problem: they must decide quickly whether a file or action is harmful, without slowing the device or blocking the user’s legitimate work.
Signatures: known fingerprints
The oldest method is signature matching. When researchers find a malicious file, they record its fingerprint, often a cryptographic hash, a fixed-length code calculated from the file’s contents. The common SHA-256 hash, for example, is 256 bits long, usually written as 64 characters. Changing even one byte of the file produces a completely different hash. Security software computes hashes of files on your device and compares them with a constantly updated list. Signatures can also describe distinctive sequences of code shared by a family of malware. This approach is fast and rarely wrong, but it only recognises threats someone has already seen, and criminals can defeat a simple hash by slightly altering each copy.
Heuristics and behaviour
To catch new threats, software looks for suspicious characteristics. Static heuristics examine a file without running it: is it packed to hide its contents, does it contain code to log keystrokes or disable security tools? Behaviour monitoring watches what programs actually do. A word processor suddenly encrypting hundreds of documents a minute, a program injecting code into another process or a script downloading and launching unknown files are all red flags. Some tools can roll back changes made by ransomware once it is stopped. Machine-learning models, trained on millions of good and bad files, now score files on many features at once, catching variants that have never been seen before.
Sandboxes and the cloud
When a file is suspicious but not clearly malicious, it can be run in a sandbox, an isolated virtual environment where its actions are observed without risk to the real system. Email gateways often detonate attachments this way before delivery. Cloud reputation adds scale: when a file appears on a device for the first time, its hash can be checked against data from millions of other machines. A file seen once, minutes ago, from an unknown publisher, is treated more warily than one installed on millions of computers for years. This shared intelligence lets a threat detected in one country be blocked in another within minutes, without waiting for a full signature update.
False alarms and evasion
Every detector balances two errors. Too strict, and it flags legitimate software, a false positive that can break business tools or frighten users. Too lenient, and real malware slips through. Attackers test their creations against popular security products before release, use code that changes shape with each copy, hide in legitimate system tools and sometimes run only in memory, leaving no file to scan. Some malware waits before acting, to outlast sandbox observation. Security companies respond with deeper monitoring and faster updates, and the contest never ends. That is why independent labs regularly test products against fresh samples and publish detection rates, which shift from one test round to the next.
What actually keeps you safe
Antivirus is one layer and works best with others. Most infections start with something a person does: opening an attachment, installing a pirated app or entering a password on a fake page. Keeping the operating system and apps updated closes many of the holes malware uses. Installing apps only from official stores, using standard rather than administrator accounts for daily work, and keeping offline backups limit the damage if something gets through. For most home users, the built-in protection on a modern system, kept updated and switched on, is adequate. Businesses, including small firms, benefit from managed tools that alert a person when something unusual happens on any device.
Sources & further reading
- AV-TEST · Malware statistics ↗
- NIST · Guide to Malware Incident Prevention and Handling (SP 800-83 Rev. 1) ↗
Figures are rounded and widely published; check the linked organisations for the latest editions. These organisations do not endorse this website.



