Apple Encrypted Archive (AEA) · Works · Source available

Reverse engineering the Apple Encrypted Archive format for a fast Xcode extractor (xaea)

by timsutton RepositorySave and follow3 views
View JSON
Apple Encrypted Archive (AEA): A Rust extractor for Apple's .aea archives, with the format notes written against a real Xcode archive.
Image: GitHub (timsutton/xaea)

Who did what

“Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>”
github.com, checked 20 Nov 2026

Only a few of the 89 commits carry an AI trailer, so the share of the format analysis done by Claude cannot be measured from the history. The README does not describe the working method.

What was done

xaea unpacks Apple Encrypted Archives as used for Xcode downloads. The repository carries Claude co-author trailers and claude/ pull request branches, and its format notes record where a real Apple archive differs from the public spec.

xaea is a command line tool that extracts .aea (Apple Encrypted Archive) files, the container Apple now uses for Xcode distribution in the Xcode 27 beta era. It targets the unencrypted, signed profile 0 case. According to the README it verifies the container, the signing chain and every segment, and extracts a 2 GiB Xcode archive in about 10.6 seconds on an M3 Max, against 40 seconds for Apple's own archiveutil.

The format was worked out against a real Apple artifact. doc/FORMAT-NOTES.md lists four errata in the public specification, such as length prefixes that include their own four bytes, and records the layout of headers, MACs and clusters. A second note file documents the performance work and rejected experiments.

AI use is visible in the history: commits carry Claude Sonnet 5.5 co-author trailers and Claude-Session lines, and pull requests come from claude/ branches. Not every commit carries a trailer. The repository ships no Apple archive; the test fixture folder is empty and only the public Apple root certificate is included. Prebuilt macOS and Linux binaries are attached to releases.

Try it

setup

Install a release binary or run cargo install --path . (Rust 1.87 or newer), then run xaea inspect and xaea extract on an .aea file you downloaded yourself.

Discussion

Your library

Sources

Sources reviewed · Added

An AI model drafted this entry from the sources above. An automated check matched its claims against them on 20 Nov 2026. The figures are the author's. How entries are checked. Something wrong? Tell me.

The weekly dump: new projects, once a week