all-soc-level-12026.05.04
haadi@portfolio: ~

haadi@portfolio:~$ cat malware-classification.md

Room notes · SOC Level 1 · Malware concepts for SOC

Malware Classification

A taxonomy of malware types: what each does, how to recognize it from behavioral symptoms, real-world examples, and the difference between binary and script-based malware.

What This Room Covers

A taxonomy of malware types: what each does, how to recognize it from behavioral symptoms, real-world examples, and the difference between binary and script-based malware.


Key Concepts Learned

Malware Classification by Behavior

TypeWhat It DoesSOC Detection Signal
CryptominerUses CPU/GPU to mine cryptocurrencySustained high CPU usage, unusual process consuming resources
RansomwareEncrypts files and demands paymentMass file modification events, shadow copy deletion, ransom note creation
AdwareGenerates unwanted adsBrowser process spawning popups, unusual browser extensions
Data StealerExfiltrates credentials and documentsOutbound connections to C2, file access on sensitive directories
KeyloggerRecords keystrokesHook-based process injection, credential theft from memory
SpywareMonitors user activity silentlyPersistent background processes, microphone/camera access
WiperDestroys data rather than encrypting itMass file deletion/overwrite, no ransom demand
C2 MalwareProvides remote attacker controlPeriodic outbound connections (beaconing), reverse shell traffic

Real-World Malware Families

  • Agent Tesla: keylogger and credential stealer, delivered via phishing, very common in Pakistan-targeted campaigns
  • Pegasus: zero-click mobile spyware, targets journalists and government officials
  • Akira: ransomware that steals data first, then threatens to leak if ransom unpaid (double extortion)
  • Shamoon: wiper malware targeting energy sector, overwrites files with junk data

Binary vs Script-Based Malware Binary malware (.exe, .dll, .bat) leaves identifiable byte patterns that antivirus can signature. Script-based malware (PowerShell, VBScript, JavaScript) runs in memory using trusted interpreters: harder to detect, no file-based signature. PowerShell is the most commonly abused scripting tool for malware delivery.


Task Answers

QuestionAnswer
High CPU usage malware typeCryptominer
Files encrypted, cryptocurrency demandedRansomware
Browser popups, no data stolenAdware
Internal documents leaked onlineData stealer
Keylogger collecting credentials and screenshotsAgent Tesla
Zero-click mobile spywarePegasus
Ransomware that steals and threatens to leak dataAkira
Malware that overwrote files with junk data (energy sector)Shamoon
Command-line tool used by script-based malware to download payloadsPowerShell
File extension associated with Windows executables other than .exe.bat
Malware type more likely to leave identifiable byte patternsBinary
Final flagTHM{Malwar3_cl4ss1fication_p4ss3d}

Key Concepts for SOC Work

Ransomware detection must happen at earliest kill chain stage possible. By the time encryption starts, the damage is already done. The pre-ransomware indicators: shadow copy deletion (vssadmin delete shadows), privilege escalation, large-scale file discovery: are the real detection opportunity. These appear in Sysmon and Windows event logs before any file is touched.

Agent Tesla is directly relevant to Pakistan. It is one of the most commonly deployed malware families in phishing campaigns targeting Pakistani organizations. Recognizing its behavior: credential harvesting, keylogging, periodic C2 communication: is operationally important for PKCERT work.

Originally published on GitHub

view-source
haadi@portfolio: ~

haadi@portfolio:~$ cat meta

  1. category: room notes
  2. path: SOC Level 1
  3. module: Malware concepts for SOC
  4. topic: Malware concepts for SOC
  5. difficulty: Easy
  6. published: 2026.05.04
  7. read: 2 min

Next writeup

Keepreading