analyzing-golang-malware-with-ghidra

Featured

Reverse engineer Go-compiled malware using Ghidra with specialized scripts for function recovery, string extraction, and type reconstruction in stripped Go binaries.

AI & Automation 64 stars 11 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 91/100

Stars 20%
60
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Analyzing Golang Malware with Ghidra ## Overview Go (Golang) has become a popular language for malware authors due to its cross-compilation capabilities, static linking that produces self-contained binaries, and the complexity it introduces for reverse engineering. Go binaries contain the entire runtime, standard library, and all dependencies statically linked, resulting in large binaries (often 5-15MB) with thousands of functions. Ghidra struggles with Go-specific string formats (non-null-terminated), stripped function names, and goroutine concurrency patterns. Specialized tools like GoResolver (Volexity, 2025) use control-flow graph similarity to automatically deobfuscate and recover function names in stripped or obfuscated Go binaries. ## When to Use - When investigating security incidents that require analyzing golang malware with ghidra - When building detection rules or threat hunting queries for this domain - When SOC analysts need structured procedures for this analysis type - When validating security monitoring coverage for related attack techniques ## Prerequisites - Ghidra 11.0+ with JDK 17+ - GoResolver plugin (for function name recovery) - Go Reverse Engineering Tool Kit (go-re.tk) - Python 3.9+ for helper scripts - Understanding of Go runtime internals (goroutines, channels, interfaces) - Familiarity with Go binary structure (pclntab, moduledata, itab) ## Key Concepts ### Go Binary Structure Go binaries embed rich metadata in the `pclntab` (PC Line T...

Details

Author
26zl
Repository
26zl/cybersec-toolkit
Created
7 months ago
Last Updated
yesterday
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category