What is Kong: The Agentic Reverse Engineer
mainKong is an LLM-orchestrated framework designed for automated binary reverse engineering. It automates the mechanical layers of analysis by integrating with Ghidra to perform a full analysis pipeline on stripped or obfuscated binaries.
Key capabilities include:
- Function Triage: Classifying functions and building call-graph context.
- Context-Aware Decompilation: Using Ghidra's program database (call graphs, cross-references, string references) to build rich context windows for LLMs.
- Bottom-Up Analysis: Analyzing functions in dependency order (leaf functions first) so that callers benefit from already-resolved names and types.
- Agentic Deobfuscation: Identifying and removing obfuscation techniques like control flow flattening or string encryption.
- Semantic Synthesis: Unifying naming conventions and synthesizing struct definitions across the entire binary.
- Ghidra Writeback: Automatically applying recovered names, types, and signatures back into the Ghidra program database.