LLMs can read and write executables byte by byte from a hex dump
Experiments show that frontier LLMs can read, patch, write, and analyze binary executables directly from hex dumps without compilers or disassemblers.
read it The post provides detailed experimental logs and model reasoning traces that reveal how LLMs parse machine code byte by byte.
summary
Researchers tested GPT-6.1 Sol and DeepSeek V4.1 Flash on raw hex dumps of executables without providing compilers, assemblers, or disassemblers. The models successfully identified program functions, patched binaries in place, generated working ELF files from specs, and analyzed malicious PE files. While technically impressive, the approach essentially forces the LLM to perform manual disassembly through raw token processing. The findings suggest traditional reverse-engineering tools may be bypassed by LLMs, though context window limits remain a major constraint.
key points
- GPT-6.1 Sol correctly analyzed functionality and found an upstream bug in a stripped FreeBSD ministat binary purely from its hex dump.
- Both GPT-6.1 Sol and DeepSeek V4.1 Flash successfully analyzed an unknown Windows malware sample, mapping its PE structure and extracting IOCs without tool assistance.
- Context size limits restrict this approach to small binaries, as a 67 KB file consumes roughly 163,000 tokens.
who should read it
Security researchers, reverse engineers, and developers interested in the capabilities and limitations of LLMs on raw machine code.
discussion skeptical
consensus
Commenters point out that forcing an LLM to read raw hex is an inefficient substitute for standard, deterministic disassemblers like objdump, which have solved this trivially for decades.
pushback
A few commenters argue that bypassing traditional tools is useful when debugging proprietary formats or working with raw object files and microcontrollers where traditional tooling is poor.
Like the weight space stuff, I think there's a small misdirection in how this is presented: Phrases like "write directly in machine code" seem to imply that ordinary LLMs intuitively understand machine code as just another language, like English or JavaScript, that they read from context and write directly as tokens, and that this intuitive understanding could mean increased efficiency or capabilities if you ask the LLM to just use the bytes rather than asking it to use the tools that human reverse engineers use.
If that's what you assumed, the DeepSeek reasoning trace shatters that …
It highlights that the post conflates cheap disassembly with expensive decompilation and questions the practical benefit over existing tools.
Generated by an LLM from the article and thread. Check the sources before relying on it.