Run exiftool to check for hidden strings or warnings like "Unknown bytes after JPEG segment," which often indicates appended data.

Use the file command to ensure the header matches a JPEG ( FF D8 FF ).

When encountering an image file in a CTF, the first step is to verify its integrity and metadata: