SpookyCTF 2026Cryptography
The Logical Way
- Competition
SpookyCTF 2026- Category
- CryptographyMedium · estimated
- Source status
- Source-documented · not platform-verified
- Document
- PDF edition2 min read
TL;DR
7z (password "LOGIC") → zip → LOGIC.pdf → Vulcan script glyphs → monoalphabetic substitution → English message → translate the Vulcan phrase "V'tosh ka'tur nirak" → flag01
The archive
My_Message_to_you.7z is AES-encrypted, but its file names are visible: it holds a single My Message to you.zip. A small list of Star Trek / Vulcan / logic themed guesses (try_pw.py) finds the password quickly: LOGIC.
The inner zip isn't encrypted and contains My Message to you/LOGIC.pdf.
02
The PDF
The PDF has two pages of glyphs in the Star Trek Vulcan script, one image per character:


Every glyph placement reports the same image xref, so the images can't be told apart from PDF metadata. glyphs.py instead renders each page at 200 DPI, crops every glyph by its bounding box, binarizes it, and clusters the crops by pixel similarity. That gives 177 glyphs drawn from 21 distinct symbols, with word gaps detected from the horizontal spacing.
03
Breaking the substitution
With 21 symbols and repeated word patterns, this is a plain monoalphabetic substitution:
06 02/07 02 00recur together, which fitsDO NOT.08 02 09 09 02 05has the double-letter shape ofFOLLOW.09 02 17 12 13then readsLOGIC.Words wrap across lines without hyphens (
PRIN/CIPLES,REAS/ON), which fills in the rest.
Final key:
| Glyph | 00 | 01 | 02 | 03 | 04 | 05 | 06 | 07 | 08 | 09 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Letter | T | H | O | S | E | W | D | N | F | L | P | R | I | C | V | U | A | G | K | Y | M |
decode.py applies it:
THOSE WHO DO NOT FOLLOW THE PRINCIPLES OF VULCAN LOGIC WILL FAIL.VTOSH KATUR NIRAK.DO NOT PITY THOSE WHO DO NOT FOLLOW LOGIC. HELP THEM SEE REASON.TURN THE VULCAN INTO ENGLISH AND WRAP IT WITH UNDERSCORES TO SEE REASON.04
Translating the Vulcan
The message says to translate the Vulcan phrase V'tosh ka'tur nirak into English:
V'tosh ka'tur means "Vulcans without logic" (Memory Alpha, from ENT "Fusion").
Nirak means "fool". It was originally the name of a soldier who failed to see an army approaching Gol (ENT "Kir'Shara", Memory Beta).
Translated word for word and joined with underscores, that gives vulcans_without_logic_fool.
Flag
Flag
spooky{vulcans_without_logic_fool}
Source-documented · not platform-verified
If the platform rejects this, try the variants spooky{vulcans_without_logic_fools} and spooky{vulcans_without_logic_are_fools}.
Takeaways
When the PDF metadata can't separate the glyphs, render the pages and cluster the pixels instead.
Unknown-script challenges are usually just a substitution cipher. Word shapes like
FOLLOWandDO NOTbreak them quickly.Check for words that wrap across lines without a hyphen before assuming a single letter is a whole word.
