SpookyCTF 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- Category
- MiscEasy
- Source status
- Source-documented · not platform-verified
- Document
- PDF edition2 min read
Brief
The challenge
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.
pixel LSBs (RGB, row order) → Base64 → flag01
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:
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
c3Bvb2t5e3RoZV9yZWZsZWN0aW9uX25ldmVyX2xpZXN9 → spooky{the_reflection_never_lies}04
Solve script
solve.py:
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())$ 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
IENDis 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{.
