r/ExploitDev • • 39m ago

How I stopped LLMs from hallucinating assembly offsets and faking decompilation results (Open Source)

https://github.com/nexus-redteam/nexus-3.5

As 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

1 Upvotes

3 comments sorted by

1

u/Potential_Head_3944 29m ago

Would be very interested government contracting

1

u/Careful-Bag-6346 26m ago

Thanks! That's exactly the direction I built it for. The strict scope, 5-stage verification ladder, and artifact classification were designed with high-stakes enterprise/gov environments in mind, where unverified AI outputs can cause real damage.

Would love to hear your feedback if you run it through your workflows. If you want to discuss the enterprise use-case further, feel free to DM me here or reach out via the contact info on GitHub.

•

u/Potential_Head_3944 6m ago

Send me request I will contact ASAP