Skip to content
OSINTblogs

Document metadata OSINT: what PDFs and Office files give away

Documents carry hidden details about who made them, when and with what. How to read metadata in PDF and Office files with ExifTool, find an organisation's published documents, spot failed redactions and tracked changes, and how far to trust any of it.

· 7 min read

When someone saves a report as a PDF, the software quietly records who they are logged in as, what program and version they used, and when the file was created and last changed. Word and Excel files keep more: the last person to save, the total editing time, the template, and sometimes text that was deleted.

Organisations publish thousands of these files without looking inside them. For a researcher, document metadata answers questions about authorship and timing that the visible text does not, and across many files it maps an organisation's people and software.

What documents contain

Field

Found in

What it suggests

Author, Creator

PDF, Office

The account name of whoever created the file

Last Modified By

Office

The account that last saved it

Company

Office

The organisation name set in the software licence

Create Date, Modify Date

PDF, Office

When the file was made and last saved, with time zone if recorded

Producer, Creator Tool, Application

PDF, Office

Software and version, and often the operating system

Template

Office

The template's file name, sometimes with a network path

Revision Number, Total Edit Time

Office

How much the file was worked on

Title, Subject, Keywords

PDF, Office

Often an earlier working title

Printer and path names

Various

Internal server and device names

Reading metadata with ExifTool

ExifTool is free, runs on every platform and reads almost every file type.

# Everything, with the group each field comes from
exiftool -a -G1 -s report.pdf

# The fields that matter most, across a folder, as a table
exiftool -csv -Author -Creator -LastModifiedBy -Company -Producer -CreatorTool -Software -CreateDate -ModifyDate -Template ./documents > metadata.csv

The second command turns a folder of downloaded files into a spreadsheet, which is where patterns appear.

Modern Office files are ZIP archives containing XML, so you can read the properties directly:

unzip -p report.docx docProps/core.xml
unzip -p report.docx docProps/app.xml
unzip -l report.docx

core.xml holds the author, last modifier and dates. app.xml holds the application, company, template and editing time. Listing the archive shows embedded images and other files, each of which may carry metadata of its own, including photos with GPS coordinates that were pasted into the document.

For PDFs, pdfinfo from the Poppler tools gives a quick summary, and pdffonts lists fonts, which helps when comparing two documents said to come from the same source.

Finding an organisation's documents

Search engines index documents by type. See our Google dorks cheat sheet for the operators.

site:example.com filetype:pdf
site:example.com (filetype:docx OR filetype:xlsx OR filetype:pptx)
site:example.com filetype:pdf "internal use only"

Older files are usually the richest, because awareness of metadata was lower. The Wayback Machine lists every address it has captured for a site, including documents that have since been removed.

Download what is relevant, keep the original files untouched, and run ExifTool over the folder. Download files through a browser or a tool that does not alter them, and record where each came from. See preserving web evidence.

What a collection reveals

One document is an anecdote. Fifty are a picture.

  • People. Author fields list names or account names of staff who produce documents, including people who appear nowhere on the website.

  • Username format. If authors appear as jsmith, apatel and mjones, you know how the organisation builds account names, and probably email addresses. See email OSINT.

  • Software estate. Producer and application fields show which office suite, PDF tools and operating systems are in use, and how up to date they are. This is the kind of detail an attacker collects, which is why defenders should check their own.

  • Internal structure. Template paths and printer names can show server names, department folders and office locations.

  • Outside authors. A "company" report whose author field names a consultancy, a law firm or a public relations agency tells you who actually wrote it.

  • Timeline. Creation and modification dates against the date a document was supposedly written or published.

Questions metadata helps answer

Who really wrote this?

An anonymous leaflet, a "leaked" memo or a letter signed by one person may carry the account name of another. Combine the author field with the software and time zone to narrow the origin.

Was it written when it claims?

A letter dated March whose file was created in June was not written in March, or at least this file was not. A document whose creation tool was released after its stated date cannot be genuine.

Are these two documents from the same source?

Compare author, software version, template, fonts and the pattern of dates. Matching uncommon combinations support a shared origin.

Has it been altered?

A modification date long after creation, a PDF producer that differs from the creator tool, or a PDF saved incrementally several times all suggest later changes. They do not say what changed.

How far to trust it

Common misreadings:

  • The author is the template's author. Files made from a template or by editing an older document inherit the original creator's name. The named "author" may have left the organisation years ago.

  • The author is the software's licence holder. A shared or second-hand computer signs documents with someone else's name.

  • Dates follow the computer's clock, which may be wrong, and many fields have no time zone.

  • Conversion resets fields. Saving to PDF, printing to PDF, uploading to a web service or passing through a document management system rewrites dates and producers. A creation date may be the conversion date.

  • Platforms strip or rewrite metadata. Files from social media and messaging apps often carry none, or the platform's own.

  • Absence means nothing. Many organisations now clean files before publishing.

Beyond the properties

Failed redaction

A black rectangle drawn over text in a PDF hides it from view and leaves the text in the file. Select the area and copy, or extract the text:

pdftotext -layout redacted.pdf -

If the hidden words appear, the redaction failed. This has exposed names in court filings and government releases many times. Reading text that a publisher included in a public file is not hacking, but what you do with it still falls under privacy law and ordinary ethics, particularly where the redaction protected a victim or a source.

Tracked changes and comments

Word files can retain deleted text, earlier wording and reviewers' comments with names and times. Open the file in a word processor with change tracking shown, or look for comments.xml inside the archive.

Hidden content

Spreadsheets may have hidden sheets, rows and columns. Presentations have speaker notes. PDFs can have layers and attached files. Check each.

Embedded images

Pictures inside documents are often the originals, with their own camera metadata. Extract them from the archive and examine them. See our guide to verifying an image.

Printed pages

Many colour laser printers add a faint pattern of yellow dots to every page, encoding the printer's serial number and the time of printing. A scan of a printed document can carry them. This has identified sources of leaks, and is one reason journalists handle leaked paper with care.

Clean your own files

Everything above applies to what you publish.

# Remove all metadata ExifTool can write, keeping a backup of the original
exiftool -all= report.pdf

For PDFs, ExifTool's removal can be reversed by someone with the right knowledge, so rebuild the file as well, for example with qpdf --linearize in.pdf out.pdf, or use a dedicated cleaner such as mat2. Office programs have a built-in document inspector. For redaction, use a tool that deletes the underlying text, then test it by trying to copy from the redacted area. Our guide to OPSEC for OSINT covers other ways your own outputs give you away.

A workflow

  1. Collect the organisation's public documents and log each source address.

  2. Keep originals read-only and work on copies.

  3. Run ExifTool to a spreadsheet.

  4. List distinct authors, companies, software versions and templates.

  5. Sort by date and compare with claimed dates.

  6. Check individual files of interest for tracked changes, hidden content and embedded images.

  7. Corroborate names against other sources before relying on them. See OSINT pivoting.

  8. Record how each conclusion was reached and how it could be wrong.

Frequently asked questions

How do I see the metadata of a PDF?

Open the file's properties in a PDF reader for the basics, or run exiftool -a -G1 -s file.pdf for everything.

Can metadata prove who wrote a document?

No. It shows what the software recorded, which may be a template's creator, a licence holder or a deliberately false name. It is a lead that needs corroboration.

Can document metadata be faked?

Yes, trivially. Any field can be rewritten with free tools, and dates depend on the computer's clock.

Does converting to PDF remove metadata?

It removes some and adds its own. Author and title often carry over, and the PDF gains producer and date fields from the conversion.

How do I remove metadata before sharing a file?

Use the document inspector in Office, or ExifTool or mat2 for other files, then check the result with ExifTool. For redactions, use a proper redaction tool and test that the text is gone.

More from Dheeraj Yadav

Report this post