What is antivirus software?
Antivirus software looks for malicious programs on your device, blocks the ones it recognises and removes what it can. It lowers your risk, but it will not catch every new or targeted attack, and a scan that finds nothing is not proof that the device is clean. How well you are protected also depends on updates, backups and what you choose to open.
How antivirus decides a file is malicious
The oldest method is signature detection: the product compares a file with patterns taken from known malware. That works well for threats someone has already analysed and poorly for brand-new ones. So modern products add heuristic and behaviour-based checks, which watch what a program does. Rewriting many documents in a short time, or arranging to start again after every restart, looks suspicious even when the file itself is unknown. Many products also ask a cloud reputation service about files the local engine has never seen.
Each method has limits. A harmless program can trigger a false alarm, and fresh malware can slip past all of them.
What a scan result tells you
Real-time protection checks files and processes at the moment they are opened or started. A scheduled or manual scan goes through the data already on the disk. In both cases the result describes what the product could recognise at that time. It does not prove the device is clean.
When a warning appears, read the details: the file name, where it was found and what the product did with it. Check where the file came from before you restore anything from quarantine. Do not switch protection off just to run an installer you do not know.
What antivirus cannot do for you
It does not patch your software. Security updates close known weaknesses in the operating system, the browser and applications, and malware can exploit an unpatched flaw even when antivirus is running. Use software that is still supported and install updates promptly. Do everyday work from an account without administrator rights, and keep the device firewall enabled where appropriate.
It does not restore your files either. An antivirus product may stop some ransomware, but if it misses an attack it cannot rebuild what was encrypted or deleted. Keep backups, with at least one copy that a compromised device cannot freely overwrite, such as a disk you disconnect afterwards. Test from time to time that files can really be restored.
Is the built-in protection enough?
For a household user the protection built into the operating system may already be sufficient. If you choose another product, pick one that is actively maintained, supports your system and is clear about how it updates and what data it collects. Do not run several active antivirus engines at once: they can conflict and slow the device down.
Get security software from the publisher or an official store. A pop-up that claims your device is infected and offers a “cleaner” is a common way to deliver the very thing you are trying to avoid.
What to do if you suspect a real infection
If a file is flagged, let the product isolate it using its recommended action. If you think the compromise is serious, disconnect the device from the network where practical and keep the relevant alerts. Change important passwords from a separate device you trust, not from the suspect one, and get qualified help. The right response depends on what was exposed.
Phishing does not need a virus
An attacker can steal a password with a convincing login page and never install a malicious file, so scanning alone will not save the account. Treat unexpected attachments and links with caution, even when they appear to come from a colleague, and confirm unusual requests through another channel. Use a password manager, turn on multi-factor authentication for important accounts and review your browser extensions periodically.
When a message looks suspicious, its email headers show which servers it really passed through. When a link contains a domain that looks almost right, the guide to IDN and Punycode names explains how look-alike characters are used to imitate a familiar address.