offensive-tools/re/ghidra/SKILL.md
NSA's open-source reverse engineering suite with disassembler, decompiler, and scripting. Use when statically analyzing malware, firmware, or binaries to understand logic, find vulnerabilities, or recover algorithms.
npx skillsauth add aeondave/malskill ghidraInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
NSA open-source RE suite — disassembler + decompiler + scripting for static analysis.
./ghidraRun (Linux/macOS) or ghidraRun.bat (Windows)| Window | Purpose | |--------|---------| | Symbol Tree | Functions, labels, imports | | Decompiler | C pseudocode of selected function | | Listing | Assembly view | | Data Type Manager | Struct/enum definitions | | Program Trees | Segments/sections | | References | Cross-references to/from |
Find interesting functions:
Search > For Strings → look for "password", "exec", "http"
Window > Symbol Tree > Functions → filter by name
Rename and annotate:
Right-click function → Edit Function → rename
Right-click variable → Rename Variable
Scripting (Python/Java):
# Script Manager > New Script (Python)
from ghidra.program.flatapi import FlatProgramAPI
api = FlatProgramAPI(currentProgram)
funcs = list(api.getFunctions(True))
print([f.getName() for f in funcs[:10]])
Malware static analysis:
Find hardcoded credentials:
Search > For Strings → password/key/secret
Double-click result → decompile surrounding function
| File | When to load |
|------|--------------|
| references/ | Script examples and struct recovery tips |
development
Auth/lab ref: Unicorn Engine CPU-only emulation for shellcode, decryptors, custom VM handlers, instruction tracing, memory hooks, and register-level experiments.
development
Auth/lab ref: Renode board and SoC simulation for MCU/RTOS firmware, UART/GPIO/peripheral modeling, GDB remote debugging, REPL platforms, and RESC scripts.
development
Auth/lab ref: Qiling OS-layer binary emulation for PE/ELF/Mach-O/UEFI/shellcode with rootfs, syscall/API hooks, filesystem mapping, and runtime patching.
databases
Auth/lab ref: QEMU user-mode and full-system emulation for cross-arch binaries, firmware, kernels, disks, serial consoles, networking, and GDB stubs.