Definition
A Computer Virus is malicious code that attaches itself to legitimate programs or files and replicates when the infected program is executed, spreading to other files and systems while delivering harmful payloads.
People Also Ask
Common questions about Virus answered by our security experts.
Virus in Practice
A virus is malicious code that replicates by inserting itself into other files or programs, requiring a user to run the infected host for it to spread. It is the oldest malware category and the term most commonly used to mean malware in general.
Strictly defined, very little modern malware is a virus. Attackers have better distribution methods than file infection, and the category survives mainly in product names and casual speech.
Why file infection fell out of use
It is inefficient. Infecting executables spreads only as fast as people share files, and it leaves modifications that integrity checking and signature verification detect readily.
Networks, email and the web offer far faster distribution with less to detect. Code signing made modification of legitimate executables conspicuous, and operating system protections made writing to program directories difficult.
The variant that is very much alive
Document macros. Code embedded in a spreadsheet or document, executed when the file is opened and macros are enabled, spreading because people forward attachments in the ordinary course of work.
It persists because the functionality is legitimate and widely relied upon, particularly in finance and operations. Blocking macros in documents originating from the internet closes most of it, and is now a default worth confirming rather than assuming.
Why the terminology still matters
It matters for expectations. Antivirus products were designed around file scanning, and a great many organisations still treat their presence as sufficient endpoint protection.
Current intrusions frequently involve no malicious file, so file scanning finds nothing to report. Understanding that a clean antivirus console is not evidence of a clean environment is the practical value of the distinction. See fileless malware.
Boot and firmware-level variants
Code infecting boot sectors or firmware persists below the operating system, survives reinstallation and is largely invisible to tooling running on the infected system.
Secure boot and signed firmware address most of this, and it remains relevant for older equipment and for targeted attacks where the effort is justified. See rootkit for how that concealment works.
Removable media, which never entirely went away
Infected drives remain a delivery route, particularly into isolated environments where they are the only way data moves. Industrial and clinical environments frequently depend on them for exactly that reason.
Controls: disable autorun, restrict which devices may connect, and provide a sanctioned scanning station for media entering a sensitive environment, since prohibition alone tends to produce workarounds.
The terminology in contracts and policy
Requirements written as antivirus software shall be installed appear throughout policies, contracts and compliance questionnaires, and they describe a control that was adequate two decades ago.
Where that language exists, it is worth restating as a capability requirement — behavioural detection, response capability, central management, coverage reporting — rather than a product category. Otherwise an organisation can satisfy the clause completely while having no meaningful endpoint detection at all.
Where to start
Confirm that macros are blocked by default in documents arriving from outside your organisation. It is a single policy setting and it closes the one live variant of this category.
See endpoint security. GuardsArm delivers managed detection and response.
Related Terms
Malware
Malware (malicious software) is any software intentionally designed to cause damage to a computer, server, client, or network. Common types include viruses, worms, trojans, ransomware, spyware, adware, and rootkits.
Worm
A Worm is self-replicating malware that spreads automatically across networks without requiring user interaction, exploiting vulnerabilities in operating systems or applications to propagate and deliver payloads.
Trojan Horse
A Trojan Horse is malware disguised as legitimate software that tricks users into installing it, then provides attackers with unauthorized access to the victim's system for data theft, surveillance, or further attacks.
Related Reading
Ransomware Prevention and Recovery: Advanced Defense Strategies for 2025
Learn about ransomware prevention and recovery: advanced defense strategies for 2025 and how it impacts your organization's cybersecurity strategy.…
Microsegmentation in Hospitals: Start Small, Reduce Lateral Movement
Most microsegmentation projects fail by starting too big. How to map real flows, pick a first segment that proves the model, and enforce without…
Software Supply Chain Security: Beyond the Vendor Questionnaire
Your software inherits the security of everything it depends on, most of which you did not choose. Dependencies, build pipelines and the update…
Speak With an Expert
Book a free consultation to discuss virus for your organization.
Related Services
Need Help With Virus?
Our certified security professionals can help you implement the right virus strategy for your organization. Get a free assessment today.