AI/LLM Security • 100 points (Static) • Easy
A small text model was trained on night-shift notes and published with its letters scrubbed. Models remember more than their makers intend. Challenge Artifacts: MODEL_CARD.md model.json.gz vocab_partial.json
The artifacts suggest a character-level Markov model with scrubbed letters. Let me analyze the model structure first.
The model is a full 6th-order Markov chain trained on one continuous stream (newlines appear inside contexts). Now let me reconstruct the corpus — the counts are the corpus's 7-gram multiset, so this is an Eulerian path reconstruction.
The corpus is a single Eulerian path. Let me reconstruct it.
Reconstruction walked all 119402 edges. Fixing the verification bug:
Perfect reconstruction — all 2072 contexts match exactly. Now I have the exact corpus as an id sequence. It's a simple substitution cipher over the 21 scrubbed ids. Let me examine the structure:
2507 lines, and 8 rare glyphs (C, T, 4, F, }, :, A, {) each appear exactly 7 times — likely a repeated special line. Let me find those lines:
The flag format is CACTF{...}. Now I need to solve the substitution over the 21 scrubbed ids using the English text structure. Let me analyze word patterns:
Only 43 distinct words — a template-generated corpus. Let me see the sentence structure (line templates):
The corpus is a template-generated word pool. Now I'll solve the substitution cipher (21 unknown ids ↔ 21 lowercase letters) with a dictionary-constrained backtracking search:
W11's pattern has 0 candidates in the probable wordlist — I need a bigger dictionary. Let me check candidates and available wordlists:
The probable wordlist is inadequate. Let me try fetching a comprehensive wordlist:
Now a full constraint solve with the common-word pool:
I missed the strongest constraint — the 9-letter word before the flag line. Adding it:
Zero again — some pool word isn't in the common dictionary. Let me diagnose which word is off-dictionary by leaving one word unconstrained at a time:
At least two pool words are outside the common dictionary. Let me fetch a much larger frequency-ranked list and retry:
Zero solutions even with 150k words — my transcribed patterns may have an error. Let me re-derive patterns programmatically:
Patterns confirmed. Now the skip-one diagnosis on the 150k pool:
