Computer Viruses: The Harmful Code That Copies Into a Host
A computer virus is malicious code that reproduces by inserting copies of itself into other code or files. The material carrying that copy is its host. When the infected host runs, the virus can run too and continue the copying process.
That mechanism gives “virus” a narrower meaning than malware, the general term for harmful software. A program can steal information or damage a computer without reproducing this way.
The National Institute of Standards and Technology’s definition centers on modifying other programs to contain copies of the virus. Its copying method distinguishes it from other harmful software. A particular screen message or symptom does not.
A Virus, a Worm, or a Trojan? The Difference Matters
Following the copy
Suppose an ordinary-looking program has been altered to include virus code. Starting that program also starts the added instructions. Those instructions could find another suitable file and insert a copy there.
The second file is now another host. If it later runs in conditions that allow the virus code to execute, the process can continue.
Different viruses target different kinds of host material. A file-infecting virus modifies program files. A macro virus uses code embedded in documents; a macro is a set of instructions that an application can execute. A boot-sector virus targets disk areas involved in starting a computer.
The institute’s malware-handling guide describes these differences. User interaction often triggers infected material, but a deliberate click isn't the defining requirement. Startup and other automatic execution paths can also start infected code.
Merely moving a file and running its instructions are different events. Finding infected material on removable storage doesn't establish that every computer connected to that storage has executed it.
Copying and damage are separate jobs
A virus's replication spreads the code. Its payload is the additional action it is designed to carry out, such as changing or damaging information. That action may have its own trigger, separate from the copying.
A worm is self-contained malicious software that replicates, rather than needing to insert itself into a host in this way. A Trojan horse describes another property: apparently useful software hiding potentially harmful behavior.
Those labels describe different features. Malicious software can combine characteristics, so a name isn't a complete account of everything it can do.
- Stop ransomware and malware before they reach your files.
- Bank and shop in a browser built to keep transactions private.
- Cover five devices, from Windows and Mac to phones.
Investigate the evidence, not just the slowdown
A slow computer or crashing application is a reason to investigate, not a diagnosis of a virus. Identifying a virus requires evidence about the code and how it behaves.
Security tools can help identify infected material, and an organization's response process can guide what happens next. The investigation may need to find additional infected files and determine what ran. Deleting the first suspicious file doesn't answer those questions; the next host may already hold a copy.
Program Infectors: When a Familiar App Carries a Virus

Macro Virus: How an Ordinary Document Can Carry Copying Code

Computer Worms: How One Infection Can Copy Itself Onward

QUOTE:
"Amateurs hack systems, professionals hack people."
