liveBook · Manning

Computer virus

As explained in Fundamentals of Cybersecurity

A computer virus is malware that infects legitimate programs or files and replicates when an infected file or program is activated.

A computer virus is malware that infects legitimate programs or files. It needs a person to activate it, such as by opening an infected file or running a compromised program. Once active, it can attach to other files and spread without the user noticing. section 12.3.1

A virus typically has three parts:

  • An infection mechanism finds other programs or files to infect. section 12.3.1
  • A trigger sets when it activates, such as a date, time, or user action. section 12.3.1
  • A payload carries out the malicious task. section 12.3.1

A download that reaches colleagues

Someone runs a free application installer from an unofficial website. Hidden virus code infects other executable files. If colleagues receive those files through a shared folder or email and run them, the virus activates again. Ordinary file sharing can thus carry an infection across an organization. section 12.3.1

Type of Malware
Description
Method of Propagation
Virus
Infects files and spreads with user action (e.g., opening infected files)
Requires the user to open an infected document or program
Worm
Self-replicates and spreads automatically across networks
Exploits system or application vulnerabilities; needs no user action
Trojan
Disguises itself as legitimate software to trick users into installing it
Downloads from untrustworthy sources; social engineering
Rootkit
Embeds deep within system to maintain hidden access
Installed by other malware, or after exploitation of a system vulnerability
Spyware
Secretly monitors activity and collects data
Bundled with freeware, phishing email attachments, web-based exploits
Adware
Displays unwanted ads, may collect user data
Bundled with free software or deceptive application installers
Bots (Botnet Malware)
Turns devices into remotely controlled bots for attacks
Spread though Trojans, worms, phishing campaigns, or other malware
Ransomware
Encrypts data/locks systems and demands payment to restore access
Delivered by phishing e-mails, compromised web-sties, exploit kits

The malware comparison table distinguishes a virus, which spreads when someone opens an infected file or program, from a worm, which spreads automatically across networks. section 12.3.1

Because malware can disrupt operations or compromise systems and information, organizations use layers of security controls rather than relying on one defense. section 12.11

How Fundamentals of Cybersecurity covers it

How deep it goes
Explains infection mechanisms, triggers, and payloads, but stops short of code-level implementation or removal procedures.
Examples
Traces an infected unofficial installer through executable files shared by network folder and email.
What it assumes
Defines malware and viruses directly without requiring prior cybersecurity terminology.
What you can do after
Evaluate/understand how running infected files can make ordinary sharing a route for virus spread.
How it connects
Connects viruses to malware, worms, and defense in depth.

Also explained in

Compare how 2 books explain computer virus →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Fundamentals of Cybersecurity. The section links point to the parts of the book it draws on.