Objective. Students will distinguish among six categories of malware by mechanism of infection, persistence method, and payload behavior, and match each to a real-world example.
This lesson, its worked examples and its practice questions has not yet been verified by an industry-certified professional or by a certification or approval body. It is a study draft and may contain errors. Do not use it as instructions for work on a job site or on live equipment. Always follow your instructor, your supervising professional, and current official references and regulations.
VoTechWorks program approval and accreditation are still in progress. Credentials are issued only by the certifying bodies named in each program, after their own exams.
Malware — short for malicious software — is any program or code designed to damage, disrupt, or gain unauthorized access to a computer system. Security professionals categorize malware by how it spreads, how it stays on a system, and what harm it causes. Understanding these three dimensions helps you identify a threat quickly and choose the right response.
A virus attaches itself to a legitimate file or program. When a user executes that host file, the virus code runs and copies itself into other files on the same system or on connected drives. Viruses require human action to spread — someone must open the infected file. They persist by embedding in executable files, boot sectors, or documents that support macros. Their payloads range from displaying annoying messages to corrupting or deleting data.
Historical example: The Melissa virus (1999) spread through infected Microsoft Word documents sent as email attachments. When opened, it emailed itself to the first 50 contacts in the victim's Outlook address book, overwhelming mail servers.
A worm is self-replicating malware that spreads across networks without any user interaction. It exploits vulnerabilities in network services or operating systems to copy itself from machine to machine. Because it needs no host file and no human trigger, a worm can propagate extremely fast. Persistence is achieved by writing copies of itself to disk or injecting into running processes.
Historical example: The WannaCry ransomware worm (2017) used the EternalBlue exploit targeting the SMBv1 protocol in Windows to spread automatically across networks, infecting hundreds of thousands of systems in over 150 countries within days.
A Trojan (Trojan horse) disguises itself as legitimate software to trick users into installing it. Unlike viruses and worms, Trojans do not self-replicate. Once installed, they open a backdoor for attackers, steal credentials, download additional malware, or give remote control of the system. They persist through registry run keys, scheduled tasks, or startup folders.
Historical example: The Zeus Trojan (first observed around 2007) was distributed through phishing emails and drive-by downloads. It logged keystrokes and stole online banking credentials from millions of users.
Ransomware encrypts a victim's files or locks their device and demands payment — typically in cryptocurrency — in exchange for the decryption key. Modern ransomware often combines a Trojan delivery mechanism with worm-like lateral movement. It persists long enough to encrypt as many files as possible before displaying a ransom note. Even if a ransom is paid, recovery is not guaranteed.
Historical example: The Colonial Pipeline attack (2021) involved DarkSide ransomware, which forced a major US fuel pipeline operator to shut down operations for several days, causing fuel shortages across the southeastern United States.
Spyware secretly monitors user activity and sends collected data to a remote attacker or advertiser. It may record keystrokes, capture screenshots, log browsing history, or harvest passwords and financial information. Spyware is designed to stay hidden; it persists using registry entries, DLL injection, or by masquerading as a legitimate system process. Users often install it unknowingly bundled with free software.
Historical example: The Pegasus spyware, developed by the NSO Group, was documented by Citizen Lab researchers as being used to target journalists and activists by silently exploiting vulnerabilities in mobile operating systems.
A rootkit is designed to conceal the presence of malware — or of an attacker — on a compromised system. It modifies the operating system itself, including the kernel, system libraries, or boot process, so that standard detection tools cannot see malicious files or processes. Rootkits provide long-term, privileged persistence that is extremely difficult to remove without reimaging the system.
Historical example: The Sony BMG rootkit (2005) was hidden on music CDs. When a CD was inserted into a Windows PC, the rootkit installed itself silently to enforce copy protection, but also concealed any file beginning with a certain prefix — a technique that attackers quickly exploited.
| Malware Type | Requires User Action to Spread | Self-Replicates | Primary Goal |
|---|---|---|---|
| Virus | Yes | Yes (with host) | Damage / corruption |
| Worm | No | Yes (standalone) | Propagation / payload delivery |
| Trojan | Yes (tricked) | No | Backdoor / credential theft |
| Ransomware | Often tricked | Sometimes | Extortion |
| Spyware | Often tricked | No | Surveillance / data theft |
| Rootkit | No (installed by other malware) | No | Concealment / persistence |
Working with malware samples — even for analysis — requires strict controls. Always use isolated virtual machines with no network access to production systems. Never upload real customer files to public sandboxes; use only hashes or approved test files. Handling malware samples without authorization may violate the Computer Fraud and Abuse Act (CFAA) and organizational policy. Follow your organization's incident-response procedures and chain-of-custody requirements when preserving evidence.
Answer each question, then check it. Nothing is recorded; this is your own practice.
A free tech program — complimentary, as our commitment to get America working. Help us build VoTechWorks. Tell us what works, what doesn’t, and what you want to learn.