Can You Trust AI Decompilation? How to Verify LLM Reverse Engineering
Use when someone has AI-generated reverse engineering results (function names, summaries, decompiled or refined code, "found a backdoor" claims) and needs to know whether to trust them. Gives the evidence checks, recompile-and-compare for decompiled code, cross-reference checks for renames, dynamic confirmation, multi-tool cross-checking, and an evidence table to report with.
by skillstore33 · MIT
The skill
Use when someone has AI-generated reverse engineering results (function names, summaries, decompiled or refined code, "found a backdoor" claims) and needs to know whether to trust them. Gives the evidence checks, recompile-and-compare for decompiled code, cross-reference checks for renames, dynamic confirmation, multi-tool cross-checking, and an evidence table to report with.
Can You Trust AI Decompilation? How to Verify LLM Reverse Engineering
Rule for using this skill: Ask what the AI produced (renames, summaries, code, a vulnerability or backdoor claim) and what it will be used for. Apply the checks in proportion: a rename for your notes needs a cross-reference check; code you'll reuse needs recompile-and-compare; a security finding needs dynamic confirmation and a second tool.
Why this matters
AI reverse engineering output is often plausible and wrong:
- In Quesma's BinaryAudit test (backdoors hidden in about 40 MB binaries, AI with Ghidra), the best model detected 49% of backdoors and raised false positives on 28% of clean binaries.
- A June 2026 study found agents driving Ghidra over MCP took shortcuts and gave up without a correctness signal; recompiling and comparing each function fixed it.
- Models invent plausible function names that the cross-references don't support.
Check 1: every claim cites evidence
Require each finding to come with:
- the address (function or instruction),
- the decompiled or disassembled lines that support it,
- the strings, imports or cross-references involved.
No address, no finding: send it back.
Check 2: renames against cross-references
For each AI-suggested name:
- Look at the function's callers and callees. Does the name fit how it's used?
- Check the strings and imports it touches (a "decrypt_config" that never touches a key or a config string is suspect).
- Confirm parameter and return types match the name's claim.
Mark names as confirmed, likely or guess in your notes, and only build on confirmed ones.
Check 3: recompile and compare decompiled code
For any decompiled or AI-refined function you'll reuse or reimplement:
- Compile the AI's C with the same compiler family and similar flags as the original.
- Compare with the original function:
- Behavior: run both against the same inputs (unit tests, or a harness calling each with recorded arguments) and compare outputs.
- Structure: diff the disassembly (for example with radare2's
radiff2) to spot missing branches or constants.
- Iterate until the behavior matches. Code that doesn't compile, or behaves differently, is not a correct decompilation.
Check 4: confirm dynamically
For behavior claims ("sends the token to this host", "persists via this registry key"):
- Run the target in an isolated VM and observe: network capture, file and registry monitoring, a debugger breakpoint at the claimed address, or a Frida hook.
- Seeing it happen settles it; not seeing it means re-examining the claim.
Check 5: a second tool for important findings
Different decompilers make different mistakes. For anything important (a vulnerability, a backdoor, a malware capability):
- Re-run the analysis with a second tool (Ghidra plus radare2, Binary Ninja or IDA) and look for agreement.
- SentinelOne Labs builds this in: each tool acts as a skeptical verifier of the others, because single-tool runs inherit that tool's decompiler artifacts.
Report with an evidence table
| Claim | Address | Evidence | Check done | Status |
|---|---|---|---|---|
parse_license() validates the key format |
0x401a20 | Compares input to 4 hex groups; string "INVALID KEY" | Xrefs + dynamic test | Confirmed |
| Sends telemetry on start | 0x4033f0 | Calls send() with a hardcoded host |
Network capture in VM | Confirmed |
| Hidden admin backdoor | 0x405100 | AI claim only | Second tool disagrees | Rejected |
Sources
- Quesma, BinaryAudit: https://quesma.com/blog/introducing-binaryaudit/
- LLM agent-assisted reverse engineering with quantitative readability metrics (arXiv 2606.06838): https://arxiv.org/abs/2606.06838
- NHI Mgmt Group, verify cited addresses and xrefs: https://nhimg.org/ai-assisted-reverse-engineering-for-defenders-guide
- SentinelOne Labs, adversarial consensus engine: https://www.sentinelone.com/labs/building-an-adversarial-consensus-engine-multi-agent-llms-for-automated-malware-analysis/
- SentinelOne Labs, VerifiedIDA: https://www.sentinelone.com/labs/verifiedida-making-llm-driven-reverse-engineering-inspectable-continuable-and-reusable/
Use this skill
Connect your agent to the Skill Store MCP server and ask for it by ref: skillstore33/how-to-verify-ai-decompilation-15767756754.
Details
- Publisher
- skillstore33
- Category
- Security › Application security
- License
- MIT
- Updated
- 2026-11-30
References
More from skillstore33
Acrylic Color Reference Cards on White and Black Know exactly how your colors mix before you paint
Stencils, Mouth Atomizer and Glue Gun Stencil Techniques Spray and sponge crisp patterns with homemade stencils
Staging Action and Reaction in Storyboards Show action, character reaction and pacing clearly across panels
Drawing Characters of Different Ages Make babies, kids, teens, adults and seniors read at a glance