~/talk

Reversing GO Binaries With Ghidra

Talkat HITB+ CyberWeek 2021 · 2021-11-21..11-25· [go, security]
links:none on file
links:none on file
slides:none on file

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

  1. 0:00Introduction to talk
  2. 1:55Why reversing Go binaries
  3. 3:20About Go language features
  4. 5:25Malware families in Go
  5. 7:34Go binaries challenges
  6. 8:37Hello World comparison
  7. 10:04Stripped vs unstripped binaries
  8. 11:08Recovering function names
  9. 12:52Understanding .gopclntab
  10. 15:18Scripting for Ghidra
  11. 18:09Challenges with Ghidra
  12. 18:53Handling strings in Go
  13. 21:20String structures in Go
  14. 22:03Dynamically allocated strings
  15. 25:12ARM string handling
  16. 26:36Kaiji botnet example
  17. 27:57Go 1.17 changes
  18. 28:20Statically allocated strings
  19. 30:31Rust binaries note
  20. 31:35Ghidra data type issues
  21. 32:38String blob splitting
  22. 33:40Next steps and improvements
  23. 35:25Custom types in Go
  24. 35:46Other reversing tools
  25. 36:07Conclusion and resources
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.