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

(sgiannopoulos.github.io)

51 points | by fortran77 3 days ago

8 comments

  • bita_nidir 10 minutes ago
    I don't think it'll make sense for an LLM to program directly on the cpu opcode level due to the overhead.

    But I hope you all realize that the programming language of the future is going to be for LLMs. It'll tightly optimized for LLMs and we'll get nice tools to understand them. They'll probably be great, with loads of fancy tooling.

    • haolez 2 minutes ago
      It depends. If you design and train a tokenizer for that, I don't see why it wouldn't work, and I'm not even an "AI psychosis" victim :D
  • pier25 1 hour ago
    I've suspected for years that AI companies have been using commercial software to train their models including games, audio plugings, DAWs, etc. It would not surprise me one bit if we find out they used torrented pirated apps like they did with books and music.

    There's certainly eg open source audio dev material out there but not nearly as much as web dev. How else do you explain all the avalanche of vibe coded audio plugins and DAWs appearing this year?

    • xnx 38 minutes ago
      My hunch is that one of the handicaps Google is dealing with (vs. OpenAI and Anthropics) is that Google is not training on pirated media. They are using YouTube, Google book project scans, and purchased copies of media.
    • singpolyma3 21 minutes ago
      Not saying you're wrong, but LLMs can work in areas they've never been exposed to in languages they've never been exposed to. Training is not needed for something to be possible
      • WarmWash 11 minutes ago
        They also use synthetic generated data to train on too

        If it works and it's verified in nine different ways, throw it in the training pile, and then automate the process.

      • devmor 10 minutes ago
        There is absolutely no way to prove that this claim is true because no model advanced enough to do so at a useful level has any fine grained report of its training data that could be used to verify this.
    • mixtureoftakes 53 minutes ago
      There is zero chance models are not trained on pirated media and games, especially most popular ones.

      Makes complete sense to study things people actually want to use and consume

      • basilgohar 48 minutes ago
        I agree 100% with sentiment. It is inconceivable to me that models were not trained, either directly, or indirectly through other aggregates, on code and binaries and, of course, media, fetched from torrent or other filesharing sites.
      • Keyframe 33 minutes ago
        wouldn't that information leak out or somehow found out? too many people already involved. With some, like Seedance it's obvious of course.
    • rhdunn 48 minutes ago
      It should be theoretically possible to use C/etc. source code, assembly output, and compiled output in the training set with equivalence mapping between them. That would make it possible for the LLM to learn disassembly and decompiling to some degree.

      You don't need software for that aside from the compiler/linker tools (which are free for C/C++ compilers, rust, etc.). You can then permutate/generate the source code using tools/techniques like fuzzing.

      There's also things like Intel's instruction set documentation.

      • cedws 28 minutes ago
        An LLM trained on decompilation would be a game changer, but there's no way they'd allow us to use it.
    • petu 53 minutes ago
      > How else do you explain all the avalanche of vibe coded audio plugins and DAWs

      By them being nothing special?

      > appearing this year?

      Vibe coding in general became viable last year, Opus 4.5 is Nov 24, 2025.

    • riggsdk 56 minutes ago
      In that case it would be movie-plot worthy when the LLM was trained on all those embedded viruses and malware. "Believing" it is intentional and then start embedding it into all software it creates for us.
  • MomsAVoxell 36 minutes ago
    Back in the day, thats how we got executables from one system to another, over ASCII-tuned serial lines. I had a colleague in the 80’s who could muscle-memory a “hx.c” which would produce the requisite hex listing given an input, and if that input was a hex listing, reproduce the binary. It was something like 12 lines of C code and it saved our asses so many times, he eventually made a DOS compatible equivalent that could be piped into DEBUG.com to produce the same results.
  • mfuzzey 29 minutes ago
    This can be useful in the reverse engineer / malware analysis case where there is existing machine code and no source but I don't think that AI "writing machine code directly rather than high level languages" makes sense. Code generation by LLMs is a non deterministic process so it makes far more sense to generate higher level compilable source code once and then compile it with a deterministic compiler for each target rather than generate machine code non deterministically several times seperately for each target.
  • Neywiny 2 days ago
    Wow. It can read bytes from a byte output? That's incredible
  • JKCalhoun 54 minutes ago
    An uninteresting case I am sure, but I have been leaning on LLMs to disassemble 6502 hex dumps and it's no doubt easy-lifting for them.

    And the proof of course is that I can reassemble/link, with "modern" tools, their presented assembly and it combines right back into a hex dump mirroring the original.

    Anyway, it's been a joy to take the long-out-of-print book, "The First Book of KIM", and re-typeset it (re-assemble it?) for modern hobbyists like myself. LLMs have allowed me to clean up the poor OCR-extracted text from the original. Claude has not only done that, but found missing labels and "equates" in the assembly, as legitimately printed in the book—not OCR errors.

    Heck, Claude latched on to a bug in the classic "WUMPUS" game that apparently the author was not even aware of. (But I left that bug in for hobbyists to find—or exploit.)

  • layer8 45 minutes ago
    I wonder if prompt injection via an executable is possible. Especially in the context of having AI perform malware analysis.
  • secondcoming 1 hour ago
    I recently watched a video of a guy trying to unbrick his Harley Davidson Livewire electric motorbike. Harley Davidson were unable to do it. Perplexity created an app to sniff the canbus and talk to the battery and other components on the bike. Soon it'll be possible to write your own firmware for things like this.

    [0] is the episode I'm referring to, but the whole series of videos about his woes with this bike are quite interesting.

    [0] https://www.youtube.com/watch?v=Z4Ty0oqA_Bk