CIDADAXSEC CTF
← Back to CTF
SteganographyMedium250 points

The least important bits

The flag is hidden in the low bits of the RGB channels, MSB first, null-terminated.

Changing the last bit of each colour channel is almost invisible to the eye. One Nordvik image carries a message that can only be read if you know the order and encoding.

Objective

Extract the LSBs from the RGB channels and reconstruct the flag.

Useful tools
zstegStegSolvePython + zlibPIL (optional)
Files
lsb.png
Download
Hints
Hint 1
Open lsb.png in a text editor or with exiftool. A comment explains the method: RGB, channel order, MSB first, terminated by 0x00.
Hint 2
Decode the PNG into pixels. For each pixel, take the last bit of R, G, B in order. Group 8 bits into one byte, MSB first, until a zero byte is found.
Hint 3
Use zsteg -a lsb.png or stegsolve. Manual Python: read the IDAT, decompress, take pixel & 1, assemble bytes, then decode UTF-8. The result is the flag.