Computer viruses: infection signs and safer recovery
Your computer has slowed down, a security alert has appeared or files will not open, and you suspect a virus. Strictly speaking, a computer virus is malicious code that attaches itself to another file or program and spreads when that host is run. Worms, trojans and ransomware are malware too, but they spread and behave differently, and that difference affects how you should respond.
Signs that justify a check, and why one sign is not enough
Unexpected processes, security settings that changed by themselves, encrypted files and alerts from your protection software are all good reasons to investigate. Each of them can also have a harmless cause, so do not conclude that you have malware from one symptom alone.
Start with a check you can rely on. Update the operating system and the security definitions, then run a scan with a reputable tool that is already installed. Watch whether the problem comes back after a restart, and look for browser extensions you did not add and account changes you did not make. These observations guide the investigation. None of them identifies a specific malware family without further evidence.
What to do while you are still unsure
If a suspicious program might be capturing what you type, do not enter passwords on that device. Disconnect it from sensitive accounts and networks where that is practical, but first consider whether isolating it would interrupt a service that someone depends on.
On a work device, contact the responsible administrator before you delete anything or reset the system. An organisation may need the evidence for incident analysis, and well-meant cleaning can destroy it.
How malicious code gets a chance to run
A virus needs a way to execute and replicate: an infected program, a document with unsafe active content such as macros, or another executable carrier. Modern attacks also arrive through phishing messages, unpatched vulnerabilities and fake installers. Merely seeing a web page does not prove an infection. A successful exploit or a harmful file must actually run.
Be suspicious of an attachment that insists on urgency, an installer you did not expect and any request to switch off security software. Download programs from trusted sources, take updates through the vendor’s official channel and do not open unsolicited documents with active content. No single habit guarantees protection, but several layers together lower the risk.
Cleaning up, or starting again from a backup
Follow the guidance of your security tool and check what it reports. After a serious compromise, restoring from a backup you know to be clean, or reinstalling the system, may be safer than trusting a partial cleanup.
Then deal with the accounts. Change affected passwords from another device you trust and enable multi-factor authentication where it is available. Review recent account activity and revoke sessions you do not recognise.
A stolen password is not the same as an infected device
Phishing and malicious code are different threats. You can lose your credentials to a fake login page without the device ever being infected, and malware can operate without showing any login page at all. During an incident, check both the device and your important accounts. Fake pages often hide behind look-alike addresses, which the guide to Punycode domain names explains.
Habits that make the next infection less likely
Keep the operating system, browsers and other software updated. Make backups and test that you can restore from them. Use an account with only the privileges your everyday work needs. A firewall limits some traffic, but it cannot replace updates or your own judgement about files.