← 返回技术雷达
Hacker News tech

LLMs can read and write executables byte by byte from a hex dump

Hacker News 热议:LLMs can read and write executables byte by byte from a hex dump(152 赞 / 107 评论,来源 sgiannopoulos.github.io)

一句话概要

With only a hex dump, no tools and one reply, a frontier LLM explains compiled programs, adds features by editing their bytes, and writes working executables from scratch.

原文开头节选

Almost nobody writes machine code by hand. We write source, and a compiler and linker turn it into bytes; to go back, we use disassemblers and decompilers. There are good reasons for this. x86-64 instructions vary in length, jumps are relative byte distances, and one wrong header field means the file won’t load. So what can an LLM do with those bytes when it has none of these tools?

Takehi et al. recently showed that LLMs can read and write neural network weights directly, which they call Weight-Space Programming . We ask the same question about the other artifact we treat as unreadable output: compiled code.

We define Machine Code Programming as a general-purpose LLM reasoning directly about an executable’s bytes, with no compiler, assembler, disassembler or execution between it and the file. We test three abilities and one real-world case:

We gave the model the hex dumps of three programs we wrote ourselves, plus one real binary from FreeBSD, ministat . The LLM correctly identified what all four programs were, with only their bytes as input .

(以上为原文节选,完整内容见下方”原文来源”)

这条动态今日登上 Hacker News 首页(152 赞 / 107 评论,来源 sgiannopoulos.github.io)。技术雷达每日自动聚合 AI 工程、后端架构、DevOps 方向的前沿动态;相关工程落地可浏览下方的相关服务与延伸阅读,或直接与我们团队交流。

原文来源: Hacker News

相关服务