“Malware” describes malicious software behavior, not one technical mechanism. Different families spread, persist and harm systems in different ways, and one sample can combine several techniques. The nine categories below are a useful learning taxonomy—virus, worm, Trojan, ransomware, spyware, adware, rootkit, keylogger and botnet—but they are not mutually exclusive boxes or a guarantee that a file can be classified with one label. Fileless execution is an additional technique that can appear across categories, not a tenth entry slipped into a nine-item count.
Infection and propagation are distinct questions
A virus typically attaches to another program or file and spreads when an infected host executes or shares that content; it does not necessarily propagate on its own. A worm is associated with automated propagation between systems or across services, often exploiting vulnerable services or weak trust relationships. A Trojan misrepresents its purpose to induce installation or execution; it may subsequently download other malware, steal credentials or open access. Understanding the entry route helps determine which devices and credentials need review, not merely which file should be deleted.
In an illustrative infected-office scenario, suspicious activity on two hosts could be caused by shared malicious attachments, a self-propagating network exploit or centrally managed software that was compromised. That difference changes containment. Disconnecting every machine from the network before checking service criticality can cause additional operational damage; use approved incident procedures, preserve minimal evidence and distinguish necessary isolation from destructive guesswork.
Financial harm, surveillance and persistence
Ransomware may encrypt data, disable recovery or steal information for extortion. It is unsafe to infer that paying a demand will restore data or prevent disclosure. Spyware collects information about a user or system without appropriate consent. Adware can present unwanted advertising and may violate privacy or security expectations, but not every advertising-supported application is malware. The governing question is what behavior is hidden, unauthorized or harmful in the observed environment.
A rootkit can conceal or retain privileged access through changes to the operating system or lower-level components. Detection and recovery may require trusted boot evidence or rebuilding the device from known-good media rather than trusting the compromised OS. A keylogger records keystrokes or related input; credential exposure requires a review of affected accounts, session tokens and authentication controls, not just removal of the logging executable. A botnet consists of multiple remotely controlled devices used for spam, denial-of-service or other coordinated activity, and an individual device can be a botnet member while also containing a Trojan or rootkit.
Look for behaviors, not sensational family names
Defenders usually see events before they know a sample’s name: new scheduled tasks, unusual process parents, abnormal DNS requests, security tooling disabled, sensitive files accessed or backup services modified. Some events also occur during legitimate maintenance. Combine endpoint, identity, network and change evidence before treating an alert as a confirmed incident. Signature-based tools, behavioral analytics and application controls each have blind spots; none offers guaranteed protection against all malware.
Fileless techniques may use legitimate scripting or memory execution and evade simplistic file-scanning assumptions. The presence of PowerShell, WMI or command shells is not automatically malicious. An investigation should evaluate who ran the process, whether it matches an approved workflow, which resources were accessed and which commands or network connections are out of character. Avoid running unknown samples on a personal computer just to “see what happens.”
Differentiate containment from eradication and restoration
Removing one suspicious executable does not prove an incident is over. A Trojan may have created persistence or stolen credentials; ransomware may have used a compromised management identity; a rootkit may undermine the reliability of evidence collected from the running operating system. For each suspected category, ask which additional assets, identities and trusted backups need examination before the service is considered safe to restore.
A classroom exercise can pair one synthetic suspicious process event with normal administrative scripts that look similar. Students should identify the information needed to distinguish them: signer, parent process, user context, command provenance and observed network behavior. After a mock incident, the report should separate confirmed observations, plausible but unverified activity, authorized containment and recovery tests. That prevents both unwarranted panic and false confidence from a clean antivirus scan.
Contain and recover under an approved plan
When compromise is suspected, identify the affected asset and service owner, preserve evidence proportional to risk and obtain approval before isolation or irreversible remediation. Where policy authorizes it, contain accounts or network paths, investigate lateral movement and determine which secrets or backups may have been exposed. A rebuilt host is not necessarily clean if the same compromised credentials or malicious deployment pipeline reconnects it.
Malware recovery should use trusted images, verified backups, patched underlying weaknesses and monitored reintroduction to service. Verify that required business functions still work and that previously unauthorized behavior is not recurring. A phishing report or suspicious attachment should enter the incident queue with minimal exposure of private user content. The useful endpoint of malware education is a proportionate response tied to observable behavior, not a memorized list of frightening names.