How Malware Analysis Works
Taking Hostile Code Apart Safely
Somewhere in every security incident there is a program nobody meant to run. Malware analysis is the craft of taking that program apart, safely, to answer practical questions: what does it do, how does it get in and stay in, who is it talking to, and how do we find it everywhere else it's hiding?
This series is defensive from start to finish. We begin by building an isolated lab for both Windows and Linux samples, then learn to triage a file without running it and read the PE and ELF formats it's built from. From there we pick up the tools of the trade (disassemblers, debuggers, behavioural monitors and YARA), survey what attackers do to slow analysts down (obfuscation, packers, evasion, malicious documents and scripts), and finish with a full walkthrough of a real sample from arrival to report.
Getting Started
A safe lab, first-look triage, and the executable formats every sample is built from.
-
001
Beginner Building a Safe Malware Analysis Lab
Virtual machines, fake internets, snapshots and sample handling: the glovebox you build before you open anything hostile, for both Windows and Linux samples
-
002
Beginner Static Triage: Sizing Up a Sample Without Running It
Hashes, magic bytes, strings, entropy and packer tells: the ten-minute first look that tells you what a Windows or Linux file is, and how much of your time it deserves
-
003
Intermediate The PE Format: Reading a Windows Executable Like an Analyst
DOS stub to overlay: the headers, sections, imports, exports, resources, signatures and TLS callbacks of a Windows program, and what each one gives away about a suspicious file
-
004
Intermediate The ELF Format: Reading a Linux Executable Like an Analyst
ELF header to section table: the segments, sections, symbols, dynamic linking, PLT/GOT and constructors of a Linux program, and what each one gives away about a suspicious file
Tools of the Trade
Disassemblers, debuggers, behavioural monitors and YARA: the instruments analysts use to read, run and recognise a sample.
-
005
Intermediate Disassembly: Reading Machine Code Like an Analyst
From raw bytes to readable functions: how disassemblers decode x86-64, the instructions and calling conventions you need to follow Windows and Linux code, and a workflow for finding what matters in a sample
-
006
Intermediate Dynamic Analysis: Watching a Sample Run
Debuggers, breakpoints, single-stepping and call tracing on Windows and Linux: how analysts run a suspicious program under control inside the lab, what to watch while it runs, and how to make sense of what it does