Skip to content
Adam Omar Saleh

SpookyCTF 2026 "Phobias" logoSpookyCTF 2026Misc

I Feel Like Someone's Watching Me

The letter is a monoalphabetic substitution cipher. Punctuation, capitalisation and word lengths are kept, so the greeting and sign-off give enough known plaintext to recover the whole key.

Competition
SpookyCTF 2026 "Phobias" logoSpookyCTF 2026
Category
MiscEasy
Source status
Source-documented · not platform-verified
Document
PDF edition2 min read

Brief

The challenge

Category
inferno
Difficulty
Easy
Points
50
File
graveyard_letter.txt

A letter is found beside a tombstone in a graveyard, but it seems to have been scrambled around.

Challenge page
Challenge page

TL;DR

The letter is a monoalphabetic substitution cipher. Punctuation, capitalisation and word lengths are kept, so the greeting and sign-off give enough known plaintext to recover the whole key. The decoded letter contains the clue line eyez are watching me and tells you to swap spaces for underscores.

01

Recon

The file reads like an English letter with every letter swapped:

Text
Ypejpof Erpveaypj,​Pmpj odagp zlw rptf, D'mp tprf zlwj eiopagp. ...​pzps ejp xefgcdau hp. Bwof jphphipj waypjogljpo daofpey lt oqegpo eay fl xjeq df gljjpgfrz....Odagpjprz,​Fcp Lap Zlw Rptf Ipcday

Spaces, apostrophes, commas and capital letters are all where you'd expect them. That points to simple letter-for-letter substitution, not a transposition or a polyalphabetic cipher.

02

Recovering the key

The letter's structure gives the first cribs:

  • Ypejpof Erpveaypj, → Dearest Alexander,

  • Odagpjprz, → Sincerely,

  • D'mp → I've, and D on its own → I

  • Fcp → The, zlw → you

Filling these in makes the rest of the text readable, and the remaining letters fall out from words like quick, just, paranoid and windowshop. The full key (ciphertext → plaintext) is:

ciphereigyptucdbnrhalqkjofwmxvzs
plainabcdefghijklmnopqrstuvwxyz

It uses all 26 letters exactly once. Cipher s is the only letter that maps to z, and it appears just once in the whole letter, in the clue.

03

The decoded letter

Most of the letter is story from someone who feels watched everywhere. The important lines are near the end:

Text
But I'll put a clue that should help you find me if you still care.​eyez are watching me. Just remember underscores instead of spaces and to wrap it correctly.

The clue line is the only sentence that starts lowercase, and it deliberately spells eyez with a z. The next sentence gives the formatting: underscores instead of spaces, then wrap it in the event's spooky{} flag format.

04

Solve script

solve.py applies the key, writes decoded_letter.txt, and prints the flag body:

Text
$ python solve.py...flag body: eyez_are_watching_me

Flag

Flag

spooky{eyez_are_watching_me}

Source-documented · not platform-verified

Takeaways

  • Kept punctuation and word lengths make substitution ciphers easy to crack by hand: start with the greeting, the sign-off, and one- and two-letter words.

  • Watch for deliberate misspellings in the plaintext (eyez). They're part of the flag, so don't "correct" them.

PDF edition

Writeup PDF

Formatted edition of this walkthrough, built from my source notes · 4 pages.