THE LIST Quire save-file forensics, Mentalist ep5

misc
flag L3m0n{132d56d014b8597603f8974641be1691}

The Mentalist case files, episode 5. "Professional Standards has named the woman the last file's subject answered to. She keeps a list, for someone the Visualize papers only ever call 'him.'" Unseals with episode 4's reference (3c43df8c1215bb123c1a2bdf7e5512bb) and name (JUDITH CAIRNS), releasing a reduced memory capture (CAIRNS-LT_20150922.lime) plus process and VAD listings.

Hint

In September 2015 agents searching the house found her closing something on a laptop screen the moment they arrived. What was on that screen, and did it really get destroyed when she closed it?

Finding the right process

The target process is Quire.exe (PID 5712) - a note-taking app, whose recent-files list names three documents: the list.qre, September room 2015.qre, and Ridge House accounts.qre. "The list" is the obvious one to chase.

Insight

Quire's own file format is mechanical once mapped: QUIREDOC magic, version, header length, a 16-byte document id, a save counter, a record count, a FILETIME, a UTF-16 title, then a zlib-compressed body. Inside that body, records carry a length, type, index, field count, and then UTF-16 fields, each closing with a CRC32 - and every record in the memory dump passes its own CRC. That matters, because it means every recovered save is internally self-consistent, not a half-overwritten fragment.

Three copies, two of them stale

The memory dump holds three separate revisions of the same document:

Found in a freed memory page, and again duplicated in Quire's own "revert to previous save" buffer. Word recovered: EAGLE RUBY. The field for the next name reads NOT YET KNOWN - this save predates the information the challenge actually needs.

Sitting in Quire's live heap, timestamped 21 Sep 2015 23:05 PDT - the night before the search. Its own QUIREDOC magic header happens to be overwritten by unrelated heap metadata, so it has to be located by searching for the document id instead of the magic string. Word recovered: GRANARY ECHO, next name: ELLIS WARREN.

Pitfall

Trusting the older save (52) just because it was easier to find - sitting in a cleanly freed page rather than buried under heap metadata - would have handed over a word (EAGLE RUBY) that unseals nothing, since it's genuinely the stale revision the subject had already replaced. The save counter embedded in each file's header is what actually orders them; "easier to recover" and "most current" aren't the same thing.

Unsealing the next file with the recovered word and name:

output
unseal.py certificate.sealed --seal "GRANARY ECHO" --name "ELLIS WARREN"

gives Certificate DFS-2026-0419, reference 132d56d014b8597603f8974641be1691.

output
L3m0n{132d56d014b8597603f8974641be1691}

Note

A separate decoy sits in an HTML comment inside a cached browser page recovered from the same image: L3m0n{cl0s3d_1s_n0t_g0n3}. It reads almost like thematic commentary on the challenge itself (closing a laptop doesn't actually destroy what was on it) - which is exactly why it's worth a second look before submitting, and exactly why it isn't the real answer.

Next file carries forward under the name ELLIS WARREN.