A computer virus is a malicious program or type of code designed to disrupt the way a computer functions. Viruses are written to spread from one computer to another and to self-replicate. A computer virus works by attaching itself to a legitimate document or program to activate the infected code. If activated, the virus can damage software, corrupt data, or destroy information.
What Is a Computer Virus?
SafeWise is an independent review site. We may earn money when you click links on our site. Learn how we rank and review.
How do computer viruses attack?
Computer viruses remain dormant until their code is activated. This means viruses can lie in wait—attached to a file or document—until you run the infected program. While the virus is dormant, it can be difficult to detect. But once your computer is infected, any other devices on the same network are also vulnerable to infection.
The amount of devastation varies from virus to virus, but some of the most common things a virus can do are listed below.
- Log keystrokes
- Steal passwords
- Send spam email (with infected code) to your contacts
- Access and steal data
- Corrupt files
- Completely take over your computer
Some computer viruses are designed to create mischief (like turning all of your files into pictures of squid), which is irritating, but usually manageable. But other viruses target financial data or aim to destroy your hard drive.
Compare the best internet security products
|Best identity theft protection||$179.50/yr.|
$1 million recovery insurance
|Two-factor authentication||View Plans|
|Best VPN||$66.85/yr.**||Works on 6 devices||5,100 servers|
|Best parental control||$99.00/yr.||Unlimited devices||Email and social media monitoring||View Plans|
|Best antivirus/malware software||$59.99/yr.*||Protects up to 10 devices||Includes VPN and password manager||View plans|
|Best password manager||$0.00||Unlimited devices with Premium plan||VPN and dark web monitoring with Premium plan||View Plans|
Data as of post date. Offers and availability may vary by location and are subject to change. SafeWise uses paid Amazon links.
*First year only. Regular price $159.99/yr.
**First year only. Regular price $124.35/yr.