"Kaitai Struct: because writing parsers is so much fun, we decided to make it a language! ๐ŸŽ‰ Now you too can pretend to enjoy #parsing binary data with just a sprinkle of declarative magic. โœจ With a buffet of languages to choose from, it's like a never-ending cycle of 'which one should I hate today?' ๐Ÿฝ๏ธ"
https://kaitai.io/ #KaitaiStruct #BinaryData #DeclarativeMagic #ProgrammingLanguages #HackerNews #ngated
Kaitai Struct: declarative binary format parsing language

Kaitai Struct is a formal language for binary format specification that can be compiled into parser code

Kaitai Struct: declarative binary format parsing language

Kaitai Struct is a formal language for binary format specification that can be compiled into parser code

We'll also present a talk on #KaitaiStruct tomorrow, 18:30 โ€” https://2025.hack.lu/agenda/#session/9FBZYF/ โ€” meet you there!
Agenda

Agenda - Hack.lu and CTI summit 2025

hack.lu 2025
Hey folks, lead developers of #KaitaiStruct (Petr and Mikhail) are visiting #HackLu 2025 this week. If you want to chat about binary formats, parsing and reverse engineering โ€” give us a shout, happy to connect!
Ah, the "Binary Formats Gallery"โ€”because what the world really needed was a #museum for file formats, complete with GraphViz diagrams and hex dump visualizers! ๐Ÿค“๐Ÿ–ฅ๏ธ I mean, who doesn't want to spend their Sunday afternoon compiling Kaitai Struct libraries just to admire the metadata of a Quake 2 model? ๐ŸŒŸ๐Ÿ”
https://formats.kaitai.io/ #BinaryFormatsGallery #FileFormats #TechArt #KaitaiStruct #Quake2 #HackerNews #ngated
File Format Gallery for Kaitai Struct

Kaitai Struct is a formal language for binary format specification that can be compiled into parser code

#KaitaiStruct, a cross-language binary format parser generator, released a new major version 0.11! Java and Python serialization, partial object tree in the Web IDE, import fixes, `valid/in-enum` to enforce defined enum values, null-terminated UTF-16 strings and much more!

https://kaitai.io/news/2025/09/07/kaitai-struct-v0.11-released.html

The beauty of #kaitaistruct is that I can reuse the parser from a different language. Today I adapted exactly the same code into a #binaryninja plugin that does all the magic using only a single command.

https://github.com/mblsha/binja-qresource

GitHub - mblsha/binja-qresource: QResource extractor for Binary Ninja

QResource extractor for Binary Ninja. Contribute to mblsha/binja-qresource development by creating an account on GitHub.

GitHub

Recently I discovered that Qt apps have an option to store binary resources as part of the execution binary, this motivated me to create a simple #kaitaistruct parser for it.

https://observablehq.com/@mblsha/qresource-blob-parser

Parsing QResource Binary Blobs

This is an interactive demonstration how to parse binary blobs generated by the Qt Resource Compiler (rcc), which are registered within binaries using qRegisterResourceData function. Typically, binary blobs created by rcc comprise three main sections: The `tree` structure outlines the files and directories. Files are tagged with a last_modified timestamp. The `names` section, referenced by the tree nodes, contains binary checksums. The `payload` section includes the size and data of the file. Example: Consi

Observable
I used Kaitai Struct to help in my development of python-pickle.rb, a full Ruby implementation of the Python Pickle serialization format (versions 0-5). Although, Kaitai's documentation and example code only explains the structure of the file format, I still had to read the messy Python source code for pickle.py in order to understand how to process certain opcodes. It's still worth checking out if you're writing a file format parser/writer or serializer/deserializer library.
#kaitai #kaitaistruct #fileformats #ruby #pickle
File Format Gallery for Kaitai Struct

Kaitai Struct is a formal language for binary format specification that can be compiled into parser code

Hello world! Kaitai project and #KaitaiStruct finally got its own its own space in Fediverse!

If you're not familiar with us, we create declarative language for binary format specification โ€” see https://kaitai.io/ โ€” and tooling around it โ€” a compiler which transforms declarative specs into ready-made parsers in variety of programming languages, visualizers and IDE for rapid format spec development and much much more.

Watch this space for more news from us!

Kaitai Struct: declarative binary format parsing language

Kaitai Struct is a formal language for binary format specification that can be compiled into parser code