Use this when identifying, containing and preventing malware.
Malware
Malware is software designed to harm or abuse systems — viruses, worms, trojans, ransomware, spyware, rootkits, botnets and fileless malware. Defences combine prevention, detection, least privilege and backups.
1. Malware: viruses, worms, trojans, ransomware, spyware, rootkits, botnets.
2. Prevent (filtering, app control, patching), detect (EDR), respond (isolate).
3. Analyse safely in sandboxes.
4. Share IOCs.
5. Recover from clean backups.
delivery → execution → persistence → actions
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
Subtopics
Go one level deeper into this subject.
Malware fundamentals: malware is classified by how it spreads (virus, worm, trojan) and what it does (ransomware, spyware, backdoor, botnet).
Subtopic VirusA virus is malware that attaches to files or programs and spreads when they are run or shared.
Subtopic WormA worm spreads on its own across networks by exploiting vulnerabilities or weak credentials, without user action, like WannaCry over SMB.
Subtopic TrojanA trojan looks like legitimate software but performs malicious actions once run, such as installing a backdoor or stealing data.
Subtopic RansomwareRansomware encrypts files and often steals data first, then demands payment for keys and silence.
Subtopic SpywareSpyware secretly collects information such as browsing activity, credentials, location or messages and sends it to an attacker or advertiser, often bundled with other software.
Subtopic RootkitA rootkit hides malware by modifying the OS, kernel, bootloader or firmware, so normal tools do not show its files or processes.
Subtopic KeyloggerA keylogger records keystrokes, and often screenshots or clipboard data, to steal passwords and messages.
Subtopic BotnetA botnet is a network of infected computers or IoT devices controlled through command-and-control servers, used for DDoS, spam, credential attacks or distributing other malware.
Subtopic BackdoorA backdoor is malware or a hidden mechanism that gives an attacker persistent remote access while bypassing normal authentication, such as a web shell or a planted SSH key.
Subtopic DownloaderA downloader (dropper) is small malware whose job is to fetch and install the real payload, often from a URL after initial infection through a phishing attachment.
Subtopic Fileless MalwareFileless malware runs in memory using legitimate tools like PowerShell, WMI or rundll32 instead of dropping executables, which evades file-based antivirus.
Subtopic Malware Analysis FundamentalsMalware analysis fundamentals: work in an isolated lab, start with static analysis (hashes, strings, imports), then dynamic analysis in a sandbox watching processes, files, registry and network, and extract IOCs.
- Most malware arrives via phishing or exposed unpatched services.
- Least privilege limits what malware can do.
- Backups are the last line against ransomware.
- EDR malware detections — alerts
yara -r rules.yar <path>— hunt- Email/web gateway blocks — prevention
ReferenceWhy it matters1 section · depth on demand
Common types
| Type | Behaviour |
|---|---|
| Ransomware | Encrypts and extorts |
| Trojan | Disguised as legitimate software |
| Worm | Spreads itself |
| Infostealer | Steals credentials, cookies |
| Loader | Fetches other malware |
| RAT | Remote control |
| Rootkit | Hides itself |
ReferenceImportant terms & boundaries2 sections · depth on demand
How it works
Malware is software written to harm, steal or take control. It usually arrives by phishing, exploited vulnerabilities or malicious downloads, establishes persistence, contacts command-and-control servers and then pursues its goal, such as data theft or encryption.
Types
| Type | Behaviour |
|---|---|
| Virus | Infects files, spreads when run |
| Worm | Spreads itself over networks |
| Trojan | Disguised as legitimate software |
| Ransomware | Encrypts data for ransom |
| Spyware / infostealer | Steals data and credentials |
| Rootkit | Hides itself and other malware |
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Malware. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://attack.mitre.org/techniques/enterprise/ · confidence 94%