Professor Franklin
Accessibility settings

Preferences are saved in this browser when storage is available.

Getting Started

Chapter 5 · Reading 1 of 3

Signatures, structures and metadata

CHFI domains 1, 3, 5, 6

The Lumen & Vale archive contains a file named brief_final.docx that Word refuses to open. The studio’s owner thinks it is a disguised photograph of a client’s unreleased product. A file’s name and extension are labels anyone can change. Its content is much harder to disguise, and the first few bytes usually say what it really is.

Identify files by signature

A file signature, or magic number, is a fixed byte sequence at a known offset, usually the start of a file, that identifies its format. Some formats also have a footer that marks the end. A signature mismatch, where the extension and the signature disagree, is one of the simplest signs that someone tried to hide a file.

Figure 1. Signatures an examiner should recognizeBytes shown in hexadecimal, from offset 0 unless noted.
FormatHeaderAs textFooter or note
JPEGFF D8 FFÿØÿEnds FF D9
PNG89 50 4E 47 0D 0A 1A 0A.PNG….Ends with an IEND chunk
GIF47 49 46 38 39 61GIF89aOr GIF87a
PDF25 50 44 46 2D%PDF-%%EOF, possibly several
ZIP, DOCX, XLSX, PPTX50 4B 03 04PK..Office Open XML is a ZIP archive
Legacy Office (DOC, XLS), MSID0 CF 11 E0 A1 B1 1A E1ÐÏ.àOLE compound file
Windows executable4D 5AMZ“PE” header at the offset stored at 0x3C
Linux executable (ELF)7F 45 4C 46.ELF

brief_final.docx begins FF D8 FF E1 and ends FF D9. It is a JPEG. A genuine .docx would begin 50 4B 03 04, because Office Open XML documents are ZIP archives containing XML parts such as [Content_Types].xml and word/document.xml. The command-line tool file, and forensic suites that run signature analysis across a whole image, automate this check.

Read encodings and offsets

Examiners constantly convert between representations. ASCII uses one byte per character. UTF-16LE, used inside Windows and NTFS, uses two bytes per character with the low byte first, so “EXIF” appears as 45 00 58 00 49 00 46 00. A keyword search that looks only for ASCII will miss it. Base64 encodes binary data as text using 64 characters, which is how email attachments travel (Chapter 10). An offset is a position counted in bytes from the start of a file or disk, written in hex in most tools. Being able to say “the signature is at offset 0x0 and the Exif header at offset 0x6” makes a finding checkable.

Know the structure inside the file

Formats have internal structures that carry history. A PDF consists of a header, numbered objects, a cross-reference table that locates them and a trailer ending in %%EOF. When a PDF is edited and saved with an incremental update, new objects are appended after the original %%EOF, so earlier versions of the content may still be inside the file. Several %%EOF markers are a clue. Office Open XML documents carry author, last-modified-by and revision data in docProps/core.xml and editing-time data in docProps/app.xml. Legacy OLE documents store similar properties in their own streams.

Read image metadata, then test it

Exif (Exchangeable Image File Format) metadata is stored inside JPEG and other image files by cameras and phones. ExifTool, by Phil Harvey, reads and writes it for hundreds of formats.

Figure 2. ExifTool output for the disguised image, with annotations
File Type                : JPEG
File Type Extension      : jpg
Make                     : Canon
Camera Model Name        : EOS R6
Serial Number            : 0331204417
Date/Time Original       : 2026:10:28 14:02:51
Offset Time Original     : -04:00
Software                 : Adobe Photoshop 26.1 (Windows)
GPS Position             : (not present)
  1. ExifTool reports the real type and the extension that type should have.
  2. A camera serial number can link the image to a specific camera, such as one owned by the studio.
  3. The offset converts the local capture time to UTC: 14:02:51 at −04:00 is 18:02:51 UTC.
  4. The image was opened and saved in an editor, which can rewrite or remove any tag.

Metadata is a claim made by software, and anyone with an editor can change it. Treat it as one source to corroborate. Does the studio own an EOS R6 with that serial number? Does the employee’s calendar place them at the client’s site on 28 October? Does the file system show the file arriving after that date? Each independent match strengthens the conclusion. A contradiction means the metadata, or the story, needs a second look.

On the exam, “the extension does not match the content” is answered by signature analysis, and “when was the photo taken” is answered by Exif with the caution that it can be edited. The next reading, Carving and deleted data, looks for files that are no longer listed anywhere.

Exif block

Inspect the three records, then use the evidence to answer the question.

1. Camera

Make: Canon, Model: EOS R6, Serial: 0331204417

2. Capture time

DateTimeOriginal: 2026:10:28 14:02:51, OffsetTime: -04:00

3. Software

Software: Adobe Photoshop 26.1 (Windows)

Apply the reading

A file begins with the bytes 50 4B 03 04 and has a .jpg extension. What would you check next?

Compare your reasoning

50 4B 03 04 is the ZIP signature, which Office Open XML documents also use. List the archive contents: a [Content_Types].xml and a word/ folder would mean a Word document renamed to .jpg, which is itself worth recording.