PicoCTF extensions Writeup: Fixing a Misleading File Extension
A picoCTF forensics walkthrough showing how file signatures can reveal the real file type behind a misleading extension.
PicoCTFForensicsFile Analysis

extensions is a picoCTF 2019 forensics challenge about trusting file signatures over filenames. The downloaded file looks like a text file, but the content tells a different story.
File Type Check
file flag.txt
mv flag.txt flag.png

The file signature identifies the data as an image, so renaming it to .png makes it easier to open normally.
Flag
open flag.png

Key Takeaways
- File extensions are labels; file signatures are evidence.
- The
filecommand is one of the fastest first checks in forensics. - Renaming a file can be enough when the underlying bytes are already valid.