Reversing GO Binaries With Ghidra
summary
Shows how Ghidra extensions parse Go runtime metadata and recover real symbols and strings from statically linked, stripped binaries, turning ~1,100 anonymous functions into ~1,800 named functions and turning massive string blobs into 11k+ searchable string entries for real samples (Kaiji, Acrylics). Implements architecture-specific heuristics for dynamic and static Go string structs, handles Go <=1.15 metadata and notes changes in 1.16/1.17, and shares Python/Java scripts that actually run in Ghidra so names and strings appear in the disassembly.
AI-written summary · about
chapters (25)
- 0:00Introduction to talk
- 1:55Why reversing Go binaries
- 3:20About Go language features
- 5:25Malware families in Go
- 7:34Go binaries challenges
- 8:37Hello World comparison
- 10:04Stripped vs unstripped binaries
- 11:08Recovering function names
- 12:52Understanding .gopclntab
- 15:18Scripting for Ghidra
- 18:09Challenges with Ghidra
- 18:53Handling strings in Go
- 21:20String structures in Go
- 22:03Dynamically allocated strings
- 25:12ARM string handling
- 26:36Kaiji botnet example
- 27:57Go 1.17 changes
- 28:20Statically allocated strings
- 30:31Rust binaries note
- 31:35Ghidra data type issues
- 32:38String blob splitting
- 33:40Next steps and improvements
- 35:25Custom types in Go
- 35:46Other reversing tools
- 36:07Conclusion and resources
