Frontier language models can now read, patch, and synthesize compiled x86-64 executables directly from raw hexadecimal dumps without touching a compiler, assembler, or disassembler. While researchers frame this "machine code programming" as a step toward bypassing high-level languages, its real value lies in toolless malware triage and sandbox security rather than replacing deterministic build toolchains.
What Zero-Tool Binary Reasoning Proves
In a November 2026 report, George Xenos and Sotiris Giannopoulos tested whether a general-purpose model could manipulate compiled binaries the way MIT CSAIL researchers Rikiya Takehi, Jayden Teoh, Alex Zhang, and Omar Khattab recently edited neural network weights in weight-space programming. Instead of source code or assembly, Xenos and Giannopoulos fed GPT-6.1 Sol (via Codex CLI 0.166.0 at high effort) only an xxd hex dump pasted into the prompt, costing about 2.4 tokens per byte.
To ensure the model could not invoke external utilities, a local relay stripped every tool from each request and audited the event stream. Live canary checks also asked the model to read a planted file, run a command, and fetch a URL. Cut off from tools, it reasoned purely over raw byte sequences.
Across four experiments, GPT-6.1 Sol cleared hurdles that punish experienced reverse engineers:
- Reading stripped binaries: It explained all five test executables from hex alone. On a libc-free Linux
ELF64x86-64counter using direct syscalls (read = 0,write = 1,exit_group = 231), it located decimal conversion at0x401190, recognized division-by-ten via the reciprocal constant0xCCCCCCCCCCCCCCCD, and spotted that unsigned 64-bit counters print negative numbers if they wrap into the signed range. On a stripped open-source statistics tool, it found a genuine upstream bug. - In-place patching: It added features to three binaries by editing raw bytes while preserving valid headers and relative jump offsets.
- From-scratch synthesis: Given only a text specification and no hex template, it wrote three working executables byte by byte.
- Malware triage: From an unknown malware hex dump, it reconstructed payload behavior and extracted accurate indicators of compromise (IOCs)—a result the open-weight
DeepSeek V4.1 Flashmodel independently matched under a separate harness.
Why Raw x86-64 Bytes Are Unforgiving

Patching or writing machine code in a single pass is brutal because compiled executables leave almost zero structural slack. Unlike Python or Rust, where variable names and whitespace absorb edits safely, an ELF64 file binds behavior to exact byte offsets.
Offset Raw Bytes Instruction
0x401000 b8 01 00 00 00 mov eax, 1 ; syscall: write
0x40100a 0f 05 syscall
0x40100c 7e 08 jle +8 bytes ; relative offset
Three constraints make manual byte editing fragile. First, x86-64 instructions range from one to fifteen bytes, so misreading one opcode prefix shifts the decoding boundary for subsequent instructions. Second, branches like 7e 08 encode relative byte distances rather than labels; inserting four bytes inside a loop silently breaks every jump crossing that point. Third, one miscalculated field in the ELF header causes the Linux kernel loader to reject the file before execution begins.
Tracking those offset tables in context and emitting valid patches in one turn shows how far working memory in reasoning models has come.
Mental Disassembly Will Not Replace Compilers
Still, extrapolating from small binaries to a future where AI skips source code confuses a capability stress test with a practical build pipeline. Reasoning traces—especially from DeepSeek V4.1 Flash—clarify the mechanism: the model does not treat machine code as an effortless native tongue. Instead, it hand-disassembles opcodes inside its chain of thought, reconstructs control flow, and performs hex arithmetic token by token.
Doing deterministic toolchain work inside a context window carries steep trade-offs:
- Token bloat: At 2.4 tokens per byte, a modest 100-kilobyte binary burns roughly 240,000 input tokens before reasoning starts.
objdumpor Ghidra disassembles megabytes in milliseconds for negligible compute. - Arithmetic fragility: Compilers and linkers enforce type invariants, register allocation, and relocations deterministically. Asking a probabilistic model to recompute hundreds of jump offsets invites silent off-by-one corruption at scale.
- Zero auditability: Engineering teams rely on readable source abstractions. Emitting raw
ELFbytes discards domain types and explicit intent, turning code review into reverse engineering.
Where Machine Code Fluency Actually Matters
Dismissing the experiment as a parlor trick, however, misses its real security impact. Disassembly—turning 0f 05 into syscall—is cheap; semantic triage—inferring intent, catching an integer-wrap bug, or isolating malicious logic in stripped code—is expensive.
Two practical implications stand out for engineering and security teams:
- Zero-execution malware triage: Security pipelines rightly distrust feeding hostile binaries into complex disassemblers or sandboxes, since parser bugs in analysis tools are real attack vectors. Converting small suspicious stages or shellcode into plain ASCII hex lets an isolated, toolless model extract IOCs with minimal attack surface.
- Harder AI sandbox rules: Many agent sandboxes assume that omitting
gcc,clang, and assemblers stops a model from producing native binaries, or that strippingobjdumphides compiled internals. Because frontier models can inspect hex and synthesize validELFexecutables directly as bytes, sandboxes must rely on kernel-level controls—noexecmounts,seccompfilters, and code signing—not missing CLI tools.
Machine code programming proves stripped binaries are no longer opaque walls to language models. Smart teams will keep compilers for building software, while deploying byte-literate models to audit the binaries nobody has source code for.




Loading comments…