THE TIP LINE two dictations, only one is the real source

misc
flag L3m0n{444bf57d2a2a0b4737426d81447dd77c}

The Mentalist case files, episode 2, chained directly to episode 1 (Red Smile). A sealed archive and the tool to open it: unseal.py derives a scrypt key from two things - the evidence seal of the exhibit you recovered the name from, and the name the source registered under - and only releases the payload if the HMAC checks.

Hint

Two dictations sit in the same file, both claiming to be the same caller. Only one of them can be telling the truth about that.

Opening the sealed file

tip_line_06-1147.sealed starts with a JSON header naming the two inputs it wants: the seal (Red Smile's flag, 34ed8ffb576461f4758511b909556c9c) and the name (tent 2's index card from that same recovered photograph, LANTERN MOTH).

bash
1python3 unseal.py tip_line_06-1147.sealed \
2    --seal 34ed8ffb576461f4758511b909556c9c \
3    --name "LANTERN MOTH" --out ./_unsealed

That releases call_log.csv (a tip-line call register) and transcripts.txt (full dictations for the one caller who spelled out letter groups instead of speaking).

Note

The header's own scrypt cost parameters (n=131072, r=8, p=1) amount to about 128 MiB and half a second per attempt - cheap once, but exactly expensive enough that you're meant to cite the correct seal and name rather than brute-force them.

The wrong turn

The call register's obvious hit is a SOURCE row, TL-1164A, where a caller claims to be the original source and says his earlier groups "were read wrong and should be thrown out" - and asks for a reference to go in the register: L3m0n{m0th_t0_th3_fl4m3}. It reads exactly like a flag.

Pitfall

That decoy bounces, and two details sitting right in the same row explain why. Its entered_by/entered_at fields are jkeller, 2014-08-02 23:07 - eight years after the call's own timestamp, while every other row was entered by the operator who took the call, on the day of the call. And the custody log from the previous episode shows J. KELLER accessing exhibit 14 at 22:51 that exact same night with "Reason: (none entered)." Sixteen minutes later, this row appears in the register. It's the same unattributed access, not a coincidence.

The real caller's own transcript

transcripts.txt holds both dictations in full. The register's framing makes TL-1131 (the original call) sound like garbage that TL-1164A corrects - exactly backwards.

Insight

TL-1131 is 299 groups of five letters, and its opening is a self-identifying crib: the caller states who he is. Decrypting against FORTHEAGENTONTHEMARSHCASE reveals a period-9 keystream, and the whole opening section decodes cleanly:

output
FOR THE AGENT ON THE MARSH CASE AND NOBODY ELSE EVELYN CALLED ME LANTERN
MOTH I WAS HER SOURCE FOR THE STORY ON THE FACES I WILL SAY THIS ONCE I
WILL NOT CALL THIS LINE AGAIN AND IF ANYONE CALLS AFTER TONIGHT USING MY
NAME IT IS NOT ME ... PUT A NOTICE IN THE PERSONAL COLUMN OF THE LODI
PAPER AND QUOTE THE REFERENCE I GIVE AT THE END AND NOTHING ELSE ...

The real source warns the desk, on the night of his own call, that any later call using his name is an impostor. TL-1164A is exactly that later call - nine days on, claiming to be the same man, telling the desk to discard TL-1131, planting a fake reference - and it only entered the register in 2014, via the same clerk who'd just accessed the exhibit alone. TL-1164A is the plant; TL-1131 is the real source.

Recovering the reference

Pitfall

A single-key decode of TL-1131 turns to noise about three-quarters of the way through. The caller re-keys partway in, and the tail decodes cleanly with the same 9-letter key simply rotated one position - a detail easy to miss if a decode degrading looks like "wrong key" instead of "key changes mid-message."

output
... EVELYN NEVER KEPT HER WORK IN THE HOUSE SHE MADE COPIES OF EVERYTHING
HER NOTES AND HER TAPES AND KEPT THEM IN A RENTED BOX UNDER A NAME THAT
WAS NOT HER OWN ... ASK FOR THE BOX HELD BY CLARA HOLLOWAY I SPELL IT
FIRST NAME CHARLIE LIMA ALPHA ROMEO ALPHA SURNAME HOTEL OSCAR LIMA LIMA
OSCAR WHISKEY ALPHA YANKEE THE REFERENCE REFERENCE BEGINS <...>
REFERENCE ENDS I AM SORRY ABOUT EVELYN SHE WAS BRAVER THAN I AM XXXX

The reference is spelled in NATO phonetics between explicit REFERENCE BEGINS/REFERENCE ENDS markers - self-delimiting, so it can't be thrown off by an off-by-one at the key-rotation seam:

output
FOUR FOUR FOUR BRAVO FOXTROT FIVE SEVEN DELTA TWO ALPHA TWO ALPHA ZERO
BRAVO FOUR SEVEN THREE SEVEN FOUR TWO SIX DELTA EIGHT ONE FOUR FOUR
SEVEN DELTA DELTA SEVEN SEVEN CHARLIE
output
444BF57D2A2A0B4737426D81447DD77C
output
L3m0n{444bf57d2a2a0b4737426d81447dd77c}

Note

The message also names who to ask for next: CLARA HOLLOWAY, spelled out letter by letter in NATO phonetics (CHARLIE LIMA ALPHA ROMEO ALPHA / HOTEL OSCAR LIMA LIMA OSCAR WHISKEY ALPHA YANKEE) - not CURTIS DRAY, a name that exists only in the impostor's planted message and is itself the tell that the two calls aren't the same person.