Skip to content
Adam Omar Saleh

SpookyCTF 2026 "Phobias" logoSpookyCTF 2026Misc

Eisoptrophobia

The flag is hidden with classic LSB steganography. Reading the least significant bit of every R, G and B value in row order, MSB-first, gives a Base64 string that decodes to the flag.

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

Brief

The challenge

Category
Makuta A
Difficulty
Easy
Points
50
File
Eisoptrophobiactf.png

Something strange is happening in the mirror. What appears to be an ordinary reflection may be hiding something more than meets the eye. Look closely, investigate the image, and uncover what lies beneath the surface.

Challenge page
Challenge page

TL;DR

The flag is hidden with classic LSB steganography. Reading the least significant bit of every R, G and B value in row order, MSB-first, gives a Base64 string that decodes to the flag.

Text
pixel LSBs (RGB, row order) → Base64 → flag

01

Recon

The file is a plain 1365×2048 RGB PNG. Its only chunks are IHDR, IDAT and IEND, so there's no text, XMP or EXIF metadata, and nothing appended after IEND. With nothing outside the pixel data, the hint "what lies beneath the surface" points at the pixels' low bits.

02

LSB scan

analyze.py tries the usual zsteg-style layouts: channel sets rgb, bgr, r, g, b; bit planes 0 and 1; row or column order; and MSB- or LSB-first byte packing. For each one it checks whether the start of the output is mostly printable or contains spooky{.

Only one layout gives readable output, bit 0 of rgb in row order, MSB-first:

Text
c3Bvb2t5e3RoZV9yZWZsZWN0aW9uX25ldmVyX2xpZXN9\x00U%jI[j...

The payload ends with a null byte, and the bytes after it are just the image's original noise.

03

Base64

Text
c3Bvb2t5e3RoZV9yZWZsZWN0aW9uX25ldmVyX2xpZXN9  →  spooky{the_reflection_never_lies}

04

Solve script

solve.py:

Python
img = np.array(Image.open("Eisoptrophobiactf.png").convert("RGB"))data = np.packbits(img.reshape(-1) & 1).tobytes()b64 = re.match(rb"[A-Za-z0-9+/=]+", data).group(0)print(base64.b64decode(b64).decode())
Text
$ python solve.pyLSB payload: c3Bvb2t5e3RoZV9yZWZsZWN0aW9uX25ldmVyX2xpZXN9flag       : spooky{the_reflection_never_lies}

Flag

Flag

spooky{the_reflection_never_lies}

Source-documented · not platform-verified

Takeaways

  • A PNG with no extra chunks and nothing after IEND is a strong hint to check pixel LSBs next.

  • Grepping for the flag prefix alone would have missed this, because the payload is Base64. Check whether the output is printable, not just whether it contains spooky{.

PDF edition

Writeup PDF

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