CTF Arsenal
DFIR / Command Mistakes & Recovery

exiftool: file format not recognized

1. Error or symptom

exiftool returns an error or no metadata for a file that should have some.

2. Likely cause

The file's extension doesn't match its actual format (renamed file), or it's genuinely corrupted.

3. How to verify

file FILE_PATH to check the true type regardless of extension.

4. Correct command

file FILE_PATH && mv FILE_PATH FILE_PATH_RENAMED.correct_ext

5. Recovery procedure

Rename to the correct extension (on a copy) and re-run exiftool.

6. How to avoid repeating it

Always run 'file' before any format-specific tool — never trust the given extension.