r/ExploitDev • u/Careful-Bag-6346 • 6h ago
How I stopped LLMs from hallucinating assembly offsets and faking decompilation results (Open Source)
https://github.com/nexus-redteam/nexus-3.5As a reverse engineer using IDA and Ghidra daily, I found that standard LLMs always hallucinate memory offsets, fake compilation results, and lose track of long reversing projects.
I built NEXUS 3.5 — a 17-section System Prompt framework. It enforces a 5-stage verification ladder (Written -> Compiled -> Tested -> Verified -> Target-tested) and strictly grounds the AI to prevent hallucinations.
Here is a quick example from the README:
Without NEXUS: "The offset is 0x1A2B3C" (Hallucinated, will crash the target).
With NEXUS: "Unknown on your exact build — no dump from this session. From memory, unverified, build unknown. Fastest check: dump ntdll from the target..."
It also forces the model to state its "Artifact Class" (Complete source / Buildable / Runnable) so you know exactly what it delivered.
It works with GPT-4o, Mistral, and Gemini. I've open-sourced it for the community. Let me know your thoughts.
Link: https://github.com/nexus-redteam/nexus-3.5
2
Upvotes
1
u/Potential_Head_3944 5h ago
Send me request I will contact ASAP
2
u/Potential_Head_3944 5h ago
Would be very interested government contracting