Module 6 of 20 — Threats & Response

Malware Analysis & Threat Landscape

Understanding malware is like understanding your enemy. Each variant has distinct behaviors, motivations, and indicators. Modern threats are sophisticated, evasive, and often state-sponsored. This module provides the foundation for recognizing, analyzing, and defending against malicious code.

Common Malware Types & Characteristics

Each malware category has distinct characteristics, propagation methods, and defense strategies. Recognizing patterns helps identify threats and select appropriate countermeasures.

Viruses

Self-replicating code that attaches to clean files and spreads when executed. Requires human action to propagate.

Real Incident:

CI.Alias (2021): Fileless malware used legitimate Windows tools to avoid detection.

Defense:

Antivirus with behavioral analysis, application whitelisting, regular patching.

Worms

Self-propagating malware that spreads across networks without human interaction, exploiting vulnerabilities.

Real Incident:

WannaCry (2017): Exploited EternalBlue SMB vulnerability, infected 200,000+ systems in 150 countries.

Defense:

Network segmentation, rapid patching, disable unnecessary services, EDR.

Trojans

Malicious code disguised as legitimate software. Creates backdoors for remote access.

Real Incident:

Emotet (2019-2021): Banking trojan evolved into ransomware distributor used by TrickBot.

Defense:

Email filtering, application control, user training, network monitoring.

Ransomware

Encrypts files and demands payment for decryption. Modern variants exfiltrate data first (double extortion).

Real Incident:

Colonial Pipeline (2021): DarkSide ransomware forced fuel pipeline shutdown for 6 days.

Defense:

Immutable backups, network segmentation, least privilege, EDR with behavioral blocking.

Spyware

Secretly monitors user activity, capturing keystrokes, screenshots, and credentials.

Real Incident:

Pegasus (NSO Group): Spyware targeting journalists and activists via iOS/Android zero-days.

Defense:

Anti-spyware tools, mobile device management, app permission restrictions.

Rootkits

Hides presence of other malware by modifying OS kernel or boot process. Extremely persistent.

Real Incident:

Stuxnet (2010): Rootkit component hid malicious PLC code from Windows processes.

Defense:

Secure boot, kernel integrity monitoring, memory forensics capabilities.

Malware Analysis Techniques

Effective malware analysis requires multiple approaches. Static analysis reveals initial indicators, while dynamic analysis uncovers runtime behavior.

Static Analysis

Examining file contents without executing: hashes, strings, headers, imports.

Tools:

PEStudio, ExifTool, strings, file, hexdump, IDA Pro

Use Case:

Initial triage, malware family identification, IOCs extraction.

Dynamic Analysis

Observing malware behavior in isolated environment: file changes, registry, network.

Tools:

Cuckoo Sandbox, Any.Run, VirusTotal, ProcMon

Use Case:

Behavioral patterns, C2 communication, payload delivery.

Memory Analysis

Extracting artifacts from RAM: injected code, decrypted payloads, network connections.

Tools:

Volatility, Rekall, Memoryze

Use Case:

Fileless malware, process hollowing, in-memory execution.

Reverse Engineering

Decompiling and disassembling to understand code logic and capabilities.

Tools:

IDA Pro, Ghidra, x64dbg, Radare2

Use Case:

Zero-day exploit discovery, unpacking, TTP identification.

Threat Actor Profiles

Different adversaries have different capabilities, motivations, and targets. Understanding who you're defending against guides security strategy and investment decisions.

Nation-State (APT)

Motivation: Espionage, political influence, strategic advantage

Tactics: Zero-days, supply chain, long-term persistence, custom tools

Case: SolarWinds (2020): Russian SVR compromised 18,000 organizations via Orion update.

Cybercriminals

Motivation: Financial gain, data theft, ransom

Tactics: Ransomware-as-a-Service, phishing kits, exploit kits

Case: Conti ransomware group: Caused $100M+ in damages across 1,500+ victims.

Hacktivists

Motivation: Political messaging, social causes

Tactics: DDoS, data leaks, website defacement

Case: Anonymous operations against government/corporate targets since 2008.

Insider Threats

Motivation: Money, revenge, ideology

Tactics: Abuse privileged access, steal data, sabotage systems

Case: Edward Snowden: Leaked NSA documents exposing global surveillance programs.

Indicators of Compromise (IOCs)

IOCs are forensic artifacts that indicate a system has been compromised. These atomic indicators power detection systems and threat intelligence feeds.

File Hashes

MD5, SHA1, SHA256 of malicious files for exact matching.

IP Addresses

Command and control servers, malicious infrastructure.

Domains

Phishing sites, malware delivery, C2 domains.

Registry Keys

Persistence mechanisms, configuration data.

Email Addresses

Phishing senders, business email compromise accounts.

Filenames

Common malware naming patterns and dropped files.

Key Takeaways

  • Malware types differ in propagation, persistence, and impact—choose defenses accordingly.
  • Static analysis is safe but limited; dynamic analysis reveals runtime behavior.
  • Threat actors range from script kiddies to nation-states—know your adversary.
  • IOCs drive detection but are reactive—combine with behavioral analysis.