I was getting set up with TurboTax 2026 and had to copy last year’s .tax2025 file over so it could carry forward. I’ve always wondered what’s actually in a TurboTax file, and I’d poked at it before without getting anywhere — whatever they do to keep it encrypted, or at least non-obvious and non-extractable, had always prevented me from learning more. This time I decided to actually see it through, so I copied the file aside as delme.tax2025 and started digging.

It’s worth noting how I got to this point, because it was a little bit of “LLM drama.” I started with my standard daily driver, gpt-6.2-sol, which has generally never stopped me from researching something or making progress on it — but this time it just outright refused. I keep a Claude subscription on the side, so I tried opus-5.5. It refused too, and offered to downgrade me to opus-4.8. I didn’t really have a choice, so I accepted, and it was willing to work on the problem with me, and resulted in success!

I wanted to know how much of the file I could read outside of TurboTax. It turned into a longer afternoon than I expected. The container was trivial. Getting the keys took the rest of the day. Most of that was working around obstacles rather than the crypto itself, and some of it was me trusting my tools too much.

I ended up with three files I could parse offline:

  • an XML index,
  • the return itself in some format they call “TaxML” (read more here), and
  • JSON for the state of the app.

I’ll keep the actual keys and the return contents out of this; they unlock a real return.

What unzip gave me #

I started with these two commands (substitute your own filename).

file return.tax2025
unzip -l return.tax2025

file called it a ZIP archive. unzip listed three entries: manifest.xml and two files whose names are GUIDs. They used ordinary ZIP deflate compression and there was no ZIP password, so extracting them was nothing. Even so, the thing called manifest.xml came out as binary.

Entry Size Role
manifest.xml 848 B the index
1EBE8178-… (GUID) ~2.3 MB the tax return (TaxML)
D92C4D79-… (GUID) 864 B TurboTax “experience” state (JSON)

I tried gzip and zlib in case TurboTax had compressed the payloads before putting them in the ZIP. Neither could read them. All three had close to 8 bits per byte of entropy, their lengths were multiples of 16, and I couldn’t find a repeated 16-byte block in any of them. That’s the signature of a block cipher in a chaining mode with padding, so I went looking for AES in the app. The mode I eventually confirmed was AES-256-CBC with PKCS#7.

So the container was the easy part. The harder part was figuring out how the entries were encrypted and with what key.

Finding the manifest key #

I pulled apart the Mac app’s binary. It’s an x86_64 Mach-O that still has its Objective-C symbols, which made the file-format layer easy to follow. There’s a PersistenceContainer class with methods like getManifestXMLFromUnzippedFile:, decryptData:key:vi:, and determineDocEncryptionType, a Manifest and a SecurityData class for the XML, and crypto wrappers over both CryptoPP and Apple’s CommonCrypto.

The app reads manifest.xml first. In the build I looked at, the code that reads it calls decryptData:key:vi: with a key and IV that are built into the binary, chosen by a current-year-versus-prior-year branch. I followed the string constants to their bytes, got a 32-byte key and a 16-byte IV, and decrypted the extracted manifest.xml with OpenSSL. It parsed as XML.

The manifest maps each document’s entityKey to the GUID used as its filename, and an entityType says what each one is. The big entry is the return in TaxML; the small one is the experience data. The identity fields were empty and there was no SecurityData element, so this file wasn’t password-protected or bound to a recorded account identity.

Then I tried that same key and IV on the two document entries and got garbage. The manifest key is hardcoded and universal for this app version, but the documents are encrypted with something else. (It turned out to be another hardcoded key, but I didn’t figure that out until much later.)

Chasing the document key at runtime #

determineDocEncryptionType picks among three schemes: an account (Intuit) key, a password-derived key, or a default. My manifest had empty identity fields and no password metadata, so it was the default path. In the disassembly the manifest key was easy to trace to its bytes, but I couldn’t immediately see where the default document key came from. It looked like it was handed to the decrypt call from somewhere I hadn’t followed yet. The one promising local item was an Intuit login session in the Keychain, which made me wonder whether the app had to call Intuit for it.

So I turned off networking and opened the return without signing in. It came right up. That killed the “server-held key” theory: the app already had everything it needed to open this return on this machine, with no password and no network. My working theory became that the key was built at runtime and only lived in memory, so the plan was to let the app decrypt the file and watch the key go by.

Working from that theory, I needed a debuggable copy of a hardened app, and that’s where the afternoon went:

  • lldb can’t attach to the stock app — hardened runtime, no get-task-allow, SIP on.
  • DYLD_INSERT_LIBRARIES is silently stripped by the hardened runtime under Rosetta, even though the app carries the entitlement that’s supposed to allow it. I confirmed this by seeing zero library lines with DYLD_PRINT_LIBRARIES=1.
  • arch -x86_64 strips DYLD_* too. The app is x86_64-only, so it needs Rosetta, but the arch wrapper sanitizes the environment. Direct-exec’ing the binary lets the kernel invoke Rosetta without that.
  • nohup also dropped the injection in practice.
  • dyld refuses inserts when any path component is world-writable, which rules out the usual /private/tmp scratch location.
  • An injected dylib has to be universal (both architectures), because the app spawns arm64 helper children that inherit the variable and abort on an arch mismatch.

The thing that actually worked was to re-sign a copy of the app without the hardened runtime, keeping its entitlements:

codesign --force --deep --sign - --entitlements <orig-entitlements> ~/TT2025dbg.app

Now it signs ad-hoc, and both lldb and injection work. Two more snags along the way: the app forces a program update every launch when its binary is behind the server, which kept relaunching the process and dropping my instrumentation (fix: update the genuine app first, then re-copy and re-sign), and killing lldb abruptly leaves the target wedged in a traced-stop state (fix: detach cleanly).

The crypto wasn’t where I first looked #

With the copy running under lldb, I started on the CryptoPP and Objective-C crypto I’d found in the binary. I saw small decrypts during startup — licensing and config, a few hundred bytes each — and then nothing there when I actually opened the return. The tax-container decryption just wasn’t going through the path I’d instrumented. There’s a WebCrypto master key in the Keychain, so for a while I thought the real work was happening in the WebKit/JavaScript layer, out of reach of a native hook.

The quicker test was to breakpoint Apple’s CommonCrypto instead. CCCrypt and the CCCryptorCreate functions are exported symbols, so lldb resolves them reliably, and they’re the common choke point for native AES no matter who calls them. I re-attached with breakpoints on those, dumping the operation, key, IV, and input length, and reopened the file.

Three decrypts fired on open. The first used the hardcoded manifest key I’d already found, and its length matched manifest.xml. The other two shared one key and IV (the document key), and their sizes lined up with the two document entries. (The big TaxML decrypt ran against a larger in-memory working buffer than the on-disk entry, but the same key and IV decrypt the archived bytes fine.) I also saw the same two sets of key material when the app re-encrypted on save.

Checking the XML and JSON #

I took the captured document key and IV back to OpenSSL and ran them against the two encrypted entries I’d unzipped at the start. Both decrypted. The big one parsed all the way through as TaxML with a TaxReturns root and a USIndividualTaxReturn for tax year 2025. That’s the full return, with thousands of detail rows.

The smaller one parsed as JSON. One field, ueData, held another JSON document encoded as a string, and inside it was the navigation and client state (where I’d left off in the interview), not tax data. So the archive holds the return and the bookkeeping TurboTax uses to drop you back where you were.

The key was in the binary the whole time #

At that point I had everything decrypted and figured I was done, but it bugged me that I’d had to run the app at all. The manifest key was sitting in plain sight in the binary. Why would Intuit hide the document key any better, when the app clearly didn’t need a server or a password to use it?

So I went back to the Mach-O, and it turned out the problem was my disassembler. otool -tvV prints every one of these key constants as @"bad cfstring ref" (it can’t resolve the CFString objects), so grepping the disassembly for the key text finds nothing. That’s why my first pass at the binary came up empty and I assumed the document key was a runtime secret. Instead of reading the disassembly, I pulled the raw __cstring section out of the binary and scanned it for printable runs of exactly 32 and 16 bytes.

They were right there: four key/IV pairs, back to back, in the same region as the manifest key. Two for the manifest and two for the documents, each role split into a current-year pair and a previous-year pair, selected by the same current-versus-prior flag the manifest loader uses. The document key I’d gone to all that trouble to capture at runtime was byte-for-byte one of them. The app doesn’t generate it at all. It just reads it out of its own binary.

To make sure I wasn’t fooling myself, I tried all sixteen key/IV combinations against every entry. Exactly one pair produced valid manifest XML, and exactly one produced valid TaxML and JSON. That held for both an older copy of this return and a fresh one I re-exported, and re-encrypting each plaintext reproduced the original ciphertext byte for byte. So the document key isn’t per-file and isn’t tied to my machine. It’s a constant compiled into TurboTax 2025, the same in every install. The Intuit login session and the WebCrypto master key in the Keychain were both red herrings, and the default path never touches either one.

What the format actually is #

Short version:

  • A .tax2025 file is a plain ZIP of three AES-256-CBC (PKCS#7) blobs. At open, they’re decrypted natively through CommonCrypto’s CCCrypt.
  • Both the index and the documents are encrypted with keys hardcoded in the app. The binary carries four of them: a manifest pair and a document pair, each with a current-year and a prior-year version. A plain, unprotected return like mine decrypts end to end with nothing but the file and the app’s own constants: no password, no sign-in, no network, and no need to run the app at all.
  • TurboTax does have stronger modes. The manifest can carry a SecurityData block whose key is wrapped by your password (through PBKDF2) or by an Intuit account key fetched online, and determineDocEncryptionType branches on which one applies. My file used neither (empty identity, no SecurityData), so it went down the default path with the universal keys. A password-protected file is the one that would actually be bound to something only you know.

So I spent the afternoon convinced the document key only existed at runtime, built a whole debugging setup to catch it, and caught it. Meanwhile the key had been sitting in the binary next to the manifest key the entire time, and the only thing hiding it was a disassembler that couldn’t print it. The runtime capture was still a fun detour, but the short version is simpler: a default .tax2025 is a ZIP you can open offline with four constants pulled out of the app. That’s also why the keys stay out of this post. They’re the same for everyone who has TurboTax 2025, and there’s no reason for me to be the one who publishes them.

Anyway, I’d wondered about this for years. Now I know!