Monday, 23 November 2026

Trusted News Discovery – Powered by AI and Verified by Humans

AI model reads and writes working executables byte by byte from a hex dump, with no compiler or tools

An AI model given only hex dumps read four programs, patched three by editing bytes and wrote three Linux executables from scratch, researchers say.

Produced with AI assistance and reviewed by the Badiyaa Editorial Desk. How we work.

Grok Fact CheckCheck it yourself in one tapVerify with Grok ↗Ask @grok on X ↗
A collection of older computer processor chips laid out on a flat surface.
Image: Martijn Boer, Public domain via Wikimedia Commons

An AI model handed nothing but a wall of hexadecimal numbers worked out what four compiled programs did, rewrote three of them by editing raw bytes, and produced three working programs from scratch without ever touching a compiler. Researchers George Xenos and Sotiris Giannopoulos describe the experiments in their November 2026 write-up, "Programming in the Machine Code Space", and argue it hints at a future where AI writes software directly in binary.

The model was GPT-6.1 Sol, run at high effort through OpenAI's Codex command-line tool. Every tool was stripped from each request by a local relay, the authors say, so the model could not run code, call a disassembler or look anything up. Each task got one reply and no second try.

What a hex dump is

A compiled program is just a long run of bytes. A hex dump prints each byte as a two-digit hexadecimal number, usually in rows of 8 or 16, as Wikipedia's hex dump entry explains. Programmers normally use disassemblers and decompilers to turn those bytes back into something readable. The researchers pasted the dumps straight into the prompt instead, at roughly 2.4 tokens per byte.

The four tests

  • Reading: the model correctly identified a word counter, an AES encryption tool, a bank-ledger program and FreeBSD's ministat statistics tool, which was stripped of symbols and had some of its text hidden. In ministat it spotted a real bug: the option labeled 99.5% confidence actually applies values for about 99.8%.
  • Extending: asked to add one feature to each of three programs, it returned lists of byte edits. All three patched files passed every hidden test. The word counter needed just 74 changed bytes, 1.4% of the file.
  • Writing: given only a written description, it emitted every byte of three Linux executables, headers included. All ran and matched reference builds on every test case.
  • Analyzing: it described the behavior of a real 4,608-byte Windows malware sample in 211 seconds, and the authors say a public sandbox report on the same file confirmed its main findings.

Tiny files, big token bills

The from-scratch programs came out far smaller than the compiler's versions. The word counter written by the model was 391 bytes against 5,432 for the GCC build, about 14 times smaller. The AES tool was 4,144 bytes against 9,408, and the ledger 3,584 against 8,896. Those numbers come from the authors' own tables.

Part of the challenge is format. Linux programs use the Executable and Linkable Format, whose header alone is 64 bytes on 64-bit systems and starts with the magic bytes 0x7F followed by the letters E, L and F, according to Wikipedia's ELF article. One wrong field and the operating system refuses to load the file, which is why writing it by hand is so rare.

An open model tried too

The team then gave the same sample to DeepSeek V4.1 Flash, an open-weights model released under an MIT license. That model reached the same overall conclusion and the same server address, but recovered 9 of 13 hidden function names against Sol's 13, used about 17 times as many reasoning tokens and took 859 seconds instead of 211.

The limits

The authors are clear that these are small programs. Their biggest test file, at 67 KB, already filled roughly 163,000 tokens of the prompt. Scale that to a 10 MB application and the bill climbs to around 24 million tokens, far past what one prompt can hold. They also note that the malware comparison covers one sample and one run, that some details could not be confirmed, and that they did not ask either model to modify or write malicious code.

The work adds to a run of AI-in-computing stories Badiyaa has followed, from Architect Labs' claim that AI agents designed a CPU to a Linux kernel release packed with AI-found fixes. The researchers' next idea is a harness that lets a model read a binary piece by piece, starting with the headers and following jumps, so far larger programs fit.

Sources

Image: Martijn Boer, Public domain via Wikimedia Commons

This article was produced with AI assistance and reviewed by our Editorial Desk. How we work.

Grok Fact CheckCheck it yourself in one tapVerify with Grok ↗Ask @grok on X ↗