Calling all malicious software a virus and every suspicious email malware hides evidence. Scenarios mix delivery, behaviour and impact. This guide classifies behaviour, traces an incident and maps controls within the GATE CS preparation category, without claiming official marks or weightage.
Build the vocabulary before naming the attack
In one chain, payroll.csv is the valuable asset. Allowing an executable attachment is a vulnerability, email is the attack vector, and user execution enables the attack. The criminal operator is the threat actor, possible harm is a threat, and the method using the weakness is an exploit or technique. Credential theft followed by encryption makes an incident, an event that compromises or threatens security.
The same asset explains the CIA triad. Reading or stealing it harms confidentiality, changing salaries harms integrity, and encrypting the only accessible copy harms availability. Ransomware directly harms availability and integrity. Confidentiality requires separate exposure or theft evidence.
Risk combines likelihood and impact. A weakness is not an attack, an indicator is not proof, and threats need no malware. Insider copying, DDoS and a malicious attachment are different paths.
Classify malware by behaviour, not by one filename
Class | Depends on host content | Self-propagates | Usual user action | Main behaviour | Typical evidence |
|---|---|---|---|---|---|
Virus | Yes | Not alone | Opens infected content | Infects executable, macro or boot record | Modified host |
Worm | No | Yes | None after entry | Copies across systems | Automatic copies |
Trojan | No | No | Opens apparent legitimate item | Deceives during delivery | Disguised file |
Ransomware | No | No | Varies | Denies access, often by encryption | Encrypted files |
Spyware | No | No | Varies | Monitors or steals data | Collection traces |
Keylogger | No | No | Varies | Captures input | Input hooks or logs |
Rootkit | No | No | Varies | Hides or preserves access | Concealed changes |
Bot | No | No | Varies | Accepts remote commands | Command-and-control traffic |
Logic bomb | May | No | Varies | Waits for a specified condition | Trigger logic |
Labels overlap. A sample may arrive as a Trojan, steal like spyware, preserve access like a rootkit, become a bot and run ransomware. Fileless, polymorphic and metamorphic describe execution or evasion, not a complete chain.
Ask six questions before naming it: How did it enter? What executed? Did it replicate? How did it persist? Did it contact command and control? What happened to data or service?
Separate the entry vector, attack technique and payload
Organise non-malware concepts by route: phishing is social engineering; brute force and credential stuffing are password attacks; spoofing, man-in-the-middle, replay, session hijacking and DoS or DDoS are network attacks; injection is an application attack. None automatically installs malware, and spoofing alone proves no compromise. DoS and DDoS differ by source distribution, not traffic volume.
A fake invoice email is the vector, impersonation is the technique, and invoice.pdf.exe is the disguise. Its loader is Trojan-style delivery, automatic copying is worm-like propagation, outbound contact suggests command and control, and encryption is ransomware impact. DNS, HTTP and email knowledge from Application Layer MCQs helps interpret this evidence.
Worked incident: classify the chain and calculate exposure
All values are hypothetical. A lab has 50 Windows endpoints on 10.20.0.0/24. At 09:00, 10.20.0.25 receives invoice.pdf.exe from accounts@vendor-payments.example; .example is reserved. The user runs it at 09:04. It adds startup persistence, steals one browser credential and attempts outbound TCP 443 connections to documentation address 203.0.113.27 every 20 seconds.
From 09:05:00 through 09:14:40, the span is 9 minutes 40 seconds = 580 seconds. Thus 580 / 20 = 29 gaps, and the inclusive sequence has 29 + 1 = 30 attempts. A second check finds three attempts (:00, :20, :40) across ten minutes: 10 x 3 = 30.
Using a cached administrative credential, it copies itself without user action to 5 reachable endpoints. That is worm-like propagation, not proof that a copy executed. At 09:15, encryption starts on the original host at a simplified 12 MiB/s. EDR isolates it at 09:17, 120 seconds later:
12 MiB/s x 120 s = 1,440 MiB
Using 1 GiB = 1,024 MiB, 1,440 / 1,024 = 45 / 32 = 1.40625 GiB. This teaching upper bound ignores file-system and encryption overhead. It is not measured loss or recovery across all endpoints.
Evidence supports phishing, Trojan-style delivery, startup persistence, confidential credential theft, worm-like copying, 30 command-and-control indicators, and ransomware affecting integrity and availability. It does not show virus-style host infection.

Break the chain with layered controls
Attachment filtering and visible extensions reduce disguise; allowlisting and least privilege restrict execution. MFA devalues a stolen password but cannot stop encryption on an infected endpoint. SMB policy and segmentation limit movement. Subnetting and IP Addressing MCQs build addressing knowledge, but subnetting alone enforces no policy. Egress analytics and EDR detect the 20-second pattern, isolation contains spread, and tested offline or immutable backups support recovery, not prevention.
Correlate email headers, process trees, startup changes, authentication events, SMB logs, DNS, proxy or flow logs, file changes and EDR alerts. Investigate the regular attempts, but TCP 443 and encryption have legitimate uses.
Respond in order: isolate 10.20.0.25 and the 5 endpoints; preserve evidence; reset the credential; block confirmed indicators; scope, eradicate persistence, restore a known-good backup and monitor. Do not destroy evidence first.

Common classification and control traps
Every malware is a virus: require an infected or modified executable, macro or boot record.
No click means virus: automatic propagation instead supports worm-like behaviour.
A Trojan is the final payload: Trojan describes deceptive delivery.
Ransomware always steals data: encryption shows denial or alteration; theft needs separate evidence.
One sample gets one family: evidence may support several labels.
Thirty attempts mean thirty sessions: attempts are indicators, not confirmed connections.
Five copies mean five executions: copying does not prove execution.
The entire lab lost 1.40625 GiB: that figure is the simplified upper bound for the original host only.
A firewall cannot stop a permitted attachment alone. Signatures may miss altered malware. MFA cannot repair an endpoint. Backups must be isolated, tested and known-good.
How exams and interviews test malware analysis
Questions may ask you to classify scenarios, separate vector from payload, match CIA impact, order stages, choose controls, spot overclaims, or calculate exposure. Infer no frequency, marks or official weightage.
Here, disguise plus user launch supports Trojan-style delivery, automatic copying supports worm-like behaviour, the inclusive sequence gives 30 attempts, and the upper bound is 1,440 MiB, or 1.40625 GiB. Offline backups aid recovery, not prevention. In interviews, justify each label and name preventive, detective, containment and recovery controls. Use the GATE Test Series for practice, not as official-pattern evidence.
Cyber threats and malware attacks in one minute
Identify the asset and CIA impact.
Separate vulnerability, vector, technique and payload.
Classify malware from replication and behaviour.
Allow multiple labels when evidence supports them.
Correlate indicators before declaring compromise.
Layer prevention, detection, containment and recovery.
KnowledgeGate currently has 50+ published questions on Cyber Threats and Malware Attacks.
Redraw the 09:00 to 09:17 chain, recalculate 1,440 MiB, and add one control per stage. Continue with GATE Guidance by Sanchit Sir and the GATE CS preparation category linked earlier.




