Tabs&Spaces
CATEGORY - STEGANOGRAPHY
Last updated
CATEGORY - STEGANOGRAPHY
Last updated
This challenge provides a ZIP file containing multiple files. Our goal is to analyze them and extract a hidden flag, which appears to involve whitespace-based steganography.
The challenge provides a ZIP archive. After extracting it, we see the following files inside:
A Python script is present, which appears to be for checking file integrity and isn't immediately useful.
Navigating into the files/
directory, I checked the contents of all files. One file stood out due to its different color and unusual file extension.
To make it easier to work with, I renamed the file to remove the extra .
in its name.
Since the file was a JPG image, I performed basic steganography checks:
Exiftool → No interesting metadata found.
Steghide (without passphrase) → Extracted a hidden text file named whitespace_flag.txt
.
whitespace_flag.txt
Opening whitespace_flag.txt
in Sublime Text, I noticed that the content wasn't regular text. Instead, it appeared to contain whitespace-based encoding.
Searching online for whitespace steganography, I found tools like stegsnow. However, stegsnow
didn't reveal any meaningful text, suggesting that another encoding method was used.
Upon closer inspection, I saw patterns of tabs (^I
) and spaces (␣
), which indicated binary encoding, where:
Tab (^I
) = 1
Space (␣
) = 0
To decode the message, I used the following command:
This converted the hidden text into a binary string:
For the final step, I converted the binary data to readable text using Perl: