Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Astral 25 min read Deep dive mediumAdept

tar-codec: a fast and secure tar parser for the Rust ecosystem

tar-codec is a new Rust tar parser that uv uses from 0.13 onward to read Python source distributions. It runs roughly twice as fast as the previous astral-tokio-tar and cuts exposure to parser differentials, where uv, pip and an index like PyPI could see different contents in the same archive. Security reports against the lenient tokio-tar fork family led Astral to rewrite the parser instead of retrofitting constraints. The post walks through tar's block structure and the V7, UStar/pax and GNU variants, including header layouts, pax extended header records and global/local precedence, explaining where differential risks come from.

Assumes: binary file format parsingPython packaging basics

Related posts

  • Rust at Scale: An Added Layer of Security for WhatsApp

    Meta Engineering easyNovice

    WhatsApp rewrote its cross-platform media consistency library, wamedia, from C++ to Rust and now ships it to billions of devices and browsers across Android, iOS, Mac, Web and wearables, which Meta calls the largest client-side Rust deployment it knows of. The library began after the 2015 Stagefright bug as a way to reject non-conformant MP4 files before vulnerable OS parsers saw them. It now underpins "Kaleidoscope," a set of checks for malformed structures, risky PDF features, spoofed file types and executables. The Rust version was built in parallel and validated with differential fuzzing. It replaced 160,000 lines of C++ with 90,000 lines of Rust and improved performance and memory use, with binary size and multi-platform build support as the main hurdles.

  • Toolchain Horizons: Exploring Rust Dependency-Toolchain Compatibility

    TigerBeetle mediumAdept

    Testing the top 100 crates.io crates by binary-searching Rust releases 1.0–1.94 for the oldest toolchain where `cargo check` succeeds suggests any given Rust compiler stays viable for a dependency-using project for only about two years. The cause is crates bumping `rust-version` in point releases, not language changes. Ecosystem staples like serde (1.31) and futures-core still have wide support, while syn and proc-macro2 pull many crates toward recent toolchains. The TigerBeetle Rust client dropped all dependencies, including hand-rolled replacements for futures' block_on, unfold and oneshot channels, and was backported to Rust 1.39. The shipped client targets 1.63 (about 3.5 years of support).

  • GPT-5.5-Cyber built a zlib fuzzing lab in a day

    Trail of Bits mediumAdept

    GPT-5.5-Cyber, driven through Codex's /goal command, independently chose dynamic testing over static review of heavily audited zlib and built a full fuzzing campaign in a day. It produced ASan/UBSan builds, seed corpora derived from existing edge-case tests, C/C++ harnesses across a dozen entrypoints (inflate, inflateBack, gzFile, MiniZip, puff, blast and more) and compile-time variant builds such as INFLATE_STRICT and BUILDFIXED. Its most productive harness reached valid gz* states that only arise under OS backpressure, and it yielded several findings now in coordinated disclosure. Strict validity rules for what counts as a reportable finding were key: the model logged an unreachable inflateBack null-callback crash and moved on. The recommendation is for defenders to run bespoke fuzzing first, because the expertise barrier to doing it has largely disappeared.

  • Protecting user data through source code analysis at scale

    Meta Engineering mediumAdept

    Meta's Anti-Scraping team encodes known scraping attack vectors as taint-analysis rules in its in-house static analyzers, Zoncolan for Hack and Pysa for Python, so potential vectors are flagged before code ships. Rules define sources (user-controlled parameters such as a result count or target ID) and sinks (data returned to the user), and a possible flow between them is raised as an issue for triage. In a mock followers endpoint, an uncapped count lets scrapers pull entire follower lists in one request and slip past rate limiting. The fix clamps count to a maximum, forcing scrapers into many more requests that rate limits then catch. Static analysis cannot catch scrapers that mimic legitimate usage, so it is one part of a broader defense.

  • How we use /goal to find bugs in Patch the Planet

    Trail of Bits mediumAdept

    Codex's /goal mode works best for vulnerability hunting when the prompt defines a precise, calibrated outcome rather than a path, and when each agent pursues exactly one outcome. In Patch the Planet, Trail of Bits had Codex draft and red-team its own goals from THREAT_MODEL.md files and used agentcov to verify which code the model actually read. They split coverage and bug-finding into separate sessions, which worked far better on zlib. A Rust variant-analysis pipeline spawned one goal-mode agent per P-critical issue and filtered candidates through a security gate, a two-model false-positive check and human review, producing every Rust bug they submitted, including a soundness hole and a miscompilation fixed in Rust 1.98.

The quest for software engineering knowledge.

Look:
Layout: