secrets-in-file-metadata
Extract and interpret embedded file metadata with exiftool — EXIF GPS coordinates, camera make, model and serial, DateTimeOriginal and CreateDate timestamps, XMP and IPTC fields, and Office and PDF properties such as Author, Company, LastModifiedBy, template paths and revision counts. Use when reading EXIF from a photo, checking who really wrote a document, dating a file, fingerprinting a camera or phone, or investigating provenance in JPEG, HEIC, RAW, MP4, DOCX, XLSX or PDF. Applies to document-provenance disputes, insider-leak attribution, evidence handling, and pre-publication redaction checks. Reference at useosint.com/skills/secrets-in-file-metadata.
UseOSINT · 已有静态检查记录
安装与使用
运行命令前先阅读来源与依赖说明。复制命令不会自动安装或执行。
npx skills add UseOSINT/Skills --skill secrets-in-file-metadata技能说明
name: secrets-in-file-metadata description: >- Extract and interpret embedded file metadata with exiftool — EXIF GPS coordinates, camera make, model and serial, DateTimeOriginal and CreateDate timestamps, XMP and IPTC fields, and Office and PDF properties such as Author, Company, LastModifiedBy, template paths and revision counts. Use when reading EXIF from a photo, checking who really wrote a document, dating a file, fingerprinting a camera or phone, or investigating provenance in JPEG, HEIC, RAW, MP4, DOCX, XLSX or PDF. Applies to document-provenance disputes, insider-leak attribution, evidence handling, and pre-publication redaction checks. Reference at useosint.com/skills/secrets-in-file-metadata.
Secrets in file metadata
The fastest lead in an investigation is often already inside the file: GPS to six decimal places, a camera serial that ties four "unrelated" images to one body, a document author who is a real employee, a template path containing a corporate share name.
Two things beginners get wrong. Absent metadata is not suspicious — it is the normal state of anything that passed through a social platform. And present metadata is not proof: every tag is a claim written by whatever software touched the file last, and all of it is editable with one command.
Where to look first, given what you have
| You have | Reach for | Because |
|---|---|---|
| A photo downloaded from a social platform | Expect nothing | Delivery pipelines re-encode. Use find-the-original-image to reach an un-stripped upstream copy. |
| A photo from a forum, CMS, or direct file link | Full exiftool dump | These serve your bytes back. GPS survives here more often than people expect. |
| A messaging attachment | Full dump, and note how it was sent | Sent-as-photo is usually re-encoded; sent-as-file usually is not. |
| A folder from one source | exiftool -r -csv triage | You want the outlier, and the tags shared across files. |
| A DOCX/XLSX/PPTX | exiftool, then unzip the container | Tracked changes, comment authors, revision identifiers and embedded images with intact EXIF are not surfaced by exiftool. |
| A PDF | exiftool, then a structural parser | Producer strings, incremental revisions, embedded files and images with their own metadata. |
| A press or agency photo | IPTC and XMP blocks specifically | Newsroom workflows write caption, credit, named persons and location there, and it often survives when EXIF does not. |
| A RAW or HEIC straight off a device | Full dump including MakerNotes | The richest case: serials, shutter counts, lens data, sub-second timing. |
| A video | exiftool plus ffprobe | Container creation time, encoder string, per-track metadata, embedded GPS tracks. |
exiftool, properly
exiftool -G1 -a -u -g1 file.jpg # everything, grouped into sections — best for reading
exiftool -G -a -u -s file.jpg # everything, one line per tag, real tag names
exiftool -time:all -G1 -a -s file.jpg # every timestamp anywhere in the file
exiftool -gps:all -n file.jpg # GPS as raw signed decimals, ready to paste into a map
Why the defaults lose evidence:
-G/-G1prefixes each tag with its group ([EXIF],[XMP],[IPTC],[MakerNotes],[File],[Composite]). Without it you cannot distinguish a tag the device wrote from aCompositevalue exiftool calculated, or an EXIF timestamp from a filesystem one.-G1gives the finer group.-akeeps duplicate tags instead of showing only the last. Inconsistencies live here: the same timestamp with two different values in two blocks means two programs disagreed, which means the file was edited.-ushows tags exiftool has no name for. Vendor blocks are often the point.-ndisables pretty-printing — signed decimal degrees instead of52 deg 22' 8.40" N.-sprints tag names rather than descriptions, so you can query them again.-eeextracts embedded data, including GPS tracks inside video streams.
Bulk triage, then sort the CSV looking for which files carry GPS at all, a
recurring SerialNumber, timestamps outside the claimed window, and the one file
whose Software differs:
exiftool -r -csv -filename -createdate -datetimeoriginal -modifydate \
-make -model -serialnumber -gpslatitude -gpslongitude -software DIR > triage.csv
exiftool -r -if '$gpslatitude' -p '$directory/$filename $gpsposition' DIR
Full command patterns: reference/exiftool-cookbook.md.
Reading the high-value fields
GPS. Position comes from GPSLatitude/GPSLongitude and their Ref tags,
height from GPSAltitude plus GPSAltitudeRef. The forgotten ones matter more:
GPSImgDirection is the compass bearing the camera was pointed, which places
the photographer and orients the view — decisive when matching street-level
imagery. GPSDestBearing is the bearing to the subject.
GPSHPositioningError is the device's own accuracy estimate in metres and is the
honest radius for your finding. GPSDateStamp/GPSTimeStamp are UTC, making them
the only trustworthy clock in the file.
Device fingerprint. Make and Model give a device type. SerialNumber,
BodySerialNumber, InternalSerialNumber or CameraSerialNumber identify one
physical body — the highest-value tag in the file for link analysis, tying images
across accounts, platforms and years to a single camera. LensSerialNumber does
the same for glass, and a body/lens pair is tighter still. Vendor shutter-count and
image-number tags let you order a device's output and estimate how much shooting
happened between two frames. OwnerName, CameraOwnerName and Artist are
user-set and frequently hold a real name.
Timestamps. DateTimeOriginal is when the shutter fired. CreateDate is when
this digital file was created — identical on a camera, different on a scan, export
or re-encode. ModifyDate is when it was last