Cyber Risks · Trail of Bits Blog

Binary type inference in Ghidra

Summary: Trail of Bits released BTIGhidra, a Ghidra extension that infers type information from binaries using inter-procedural analysis that propagates and resolves type constraints between functions. The tool uses flow-sensitive data-flow analyses from FKIE-CAD's cwe_checker to generate subtyping constraints per strongly connected component of the call graph, then solves type sketches to produce more idiomatic decompilation without user interaction.

What you should know: Ghidra's built-in type propagation produces conflicting types across functions that pass parameters directly to each other, and it will not synthesize structs without user intervention - so reverse engineers analyzing stripped binaries are left reconciling void* casts by hand.

Read the original at Trail of Bits Blog ↗