Open Curriculum · 14 Modules
Learn Ghidra. Read Binaries. Reverse Everything.
A modular, self-paced guide to binary reverse engineering with Ghidra. Start from "what is disassembly" and build to analyzing real malware on Linux x86-64.
> Start Module 00: Setup## Code Example Patterns
Five distinct patterns, introduced progressively as your skill grows. Each serves a different purpose.
| Pattern | Name | Modules | Purpose |
|---|---|---|---|
| A | Compile-then-Reverse | 0 – 5 | Build mental model: what does the compiler do to your code? |
| B | Progressive Annotation | 6 – 8 | Learn the core RE workflow: rename, retype, iterate |
| C | Script-driven Exploration | 9 – 10 | Scale analysis beyond what's manually feasible |
| D | Compare and Detect | 11 | Identify variants, track changes across versions |
| E | Break the Crackme | 12 | Integrate all skills; build RE intuition under pressure |
## Module Map
00
Setup & Orientation
Install Ghidra, compile a test binary, complete the import-analyze-explore cycle.
01
What Disassembly Is
Why disassembly is hard, linear sweep vs recursive descent, ELF format.
02
Reconnaissance
Gather intel before opening Ghidra: file, readelf, nm, strings, ldd.
03
First Contact
Navigate the CodeBrowser: Listing, Decompiler, Symbol Tree, hotkeys.
04
Reading the Listing
x86-64 patterns: prologues, stack frames, conditionals, loops, arrays.
05
Data Types & Structs
Recover structs from offset arithmetic. The Structure Editor transforms output.
06
XREFs & Graphs
Cross-references, call graphs, function graphs. Transition to Pattern B.
07
The Decompiler
Iterative annotation: rename, retype, override signatures, watch output improve.
08
Compiler Fingerprints
Optimization effects, name mangling, finding main in stripped binaries.
09
Scripting
GhidraScript API: function census, dangerous function finder, XOR decoder.
10
Headless Mode
analyzeHeadless for batch processing. Scale to directories of binaries.
11
Diffing & Comparison
Program Diff, Function Comparison, BSim behavioral similarity.
12
Anti-RE
Obfuscation, emulation, patching. Break a crackme with 5 anti-RE techniques.
13
Capstone
Real-world binary analysis. All patterns combined. Professional workflow.
## Prerequisites
- Basic C familiarity (pointers, structs, memory allocation)
- Basic x86 assembly awareness (registers, mov, call, ret)
- Linux command line comfort (gcc, make, shell basics)
- A Linux system (Ubuntu/Fedora recommended) with Ghidra installed
## Tools Used
Ghidra — NSA's reverse engineering framework
GCC — compile exercise binaries
readelf / objdump / nm — binary inspection
strings / file / ldd — reconnaissance