The umbrella term Malware (Malicious Software) encompasses any code, program, or script deliberately engineered to compromise system confidentiality, integrity, or availability. Modern malicious software has evolved far beyond the primitive floppy-disk boot viruses of the 1990s into militarized, polymorphic, and multi-stage execution payloads deployed by organized cybercrime syndicates.
To accurately diagnose and neutralize digital infections, security analysts classify malware according to how it replicates, hides, and damages target hosts:
| Malware Class | Replication Mechanism | Primary Payload Objective | Historical / Modern Example |
|---|---|---|---|
| Computer Virus | Requires host file attachment & human user execution. | Corrupts files, modifies boot sectors, destroys file systems. | CIH (Chernobyl), Melissa Virus |
| Computer Worm | Self-replicating across networks without human action. | Scans for unpatched network ports, exhausts bandwidth, opens backdoors. | Morris Worm, WannaCry (EternalBlue exploit) |
| Trojan Horse | Disguised as legitimate software (cracks, game mods). | Provides stealth backdoor access, steals passwords, drops secondary payloads. | Emotet, DarkComet RAT, Zeus Banking Trojan |
| Ransomware | Rapid symmetric/asymmetric file encryption on storage. | Extorts victims for cryptocurrency (Bitcoin/Monero) in exchange for keys. | WannaCry, LockBit 3.0, BlackCat/ALPHV |
| Spyware & Keyloggers | Silently monitors user activity in background. | Captures keystrokes, clipboard data, webcam feeds, credentials. | Pegasus Spyware, Agent Tesla |
| Rootkits | Subverts kernel or hypervisor execution layers. | Hides malicious processes and sockets from antivirus and Task Manager. | Sony BMG rootkit, Stuxnet kernel driver |
Ransomware is currently the most lucrative cybercrime business model on earth. Rather than immediately displaying a ransom note upon entry, sophisticated enterprise ransomware employs a disciplined 4-stage execution sequence:
Enters through phishing attachments or compromised VPN credentials. Establishes scheduled tasks and registry run keys to survive reboots.
Harvests LSASS memory using Mimikatz, compromises Domain Controller credentials, and maps out network shares and cloud backups.
Before encrypting, gigabytes of sensitive customer records and financial documents are exfiltrated to cloud drop-boxes to threaten public leakage.
Executes vssadmin delete shadows /all /quiet to destroy Windows recovery snapshots, encrypts files with AES-256, and drops README_RESTORE.txt.
Legacy antivirus engines relied exclusively on static hash signatures (MD5/SHA-256) to detect known malware files. Today's advanced malware bypasses signature engines using dynamic evasion mechanics:
.exe file onto disk, fileless malware executes entirely in RAM using built-in operating system tools like Windows PowerShell, WMI, or mshta.exe.To detect suspicious outbound command-and-control (C2) beacons on a Linux or Windows host, analysts inspect established TCP connections with associated process IDs:
# Linux: List active TCP connections with process names
sudo ss -tulpn | grep ESTAB
# Windows: Show active connections with PID and executable path
netstat -ano -p tcp | findstr "ESTABLISHED"
Broaden your defensive and offensive security knowledge across our curriculum:
How malware payloads are delivered via email lures and weaponized documents.
Track how malware moves from delivery to command-and-control (C2).
Detecting malicious process execution and beaconing in enterprise logs.
Dissecting real enterprise ransomware outbreaks and incident mitigation runbooks.