跳至正文
OpenAgentSkill
浏览已开放 · 目录记录日期 2026-11-21 · 自动更新和账户服务暂时关闭。
文档处理

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 haveReach forBecause
A photo downloaded from a social platformExpect nothingDelivery pipelines re-encode. Use find-the-original-image to reach an un-stripped upstream copy.
A photo from a forum, CMS, or direct file linkFull exiftool dumpThese serve your bytes back. GPS survives here more often than people expect.
A messaging attachmentFull dump, and note how it was sentSent-as-photo is usually re-encoded; sent-as-file usually is not.
A folder from one sourceexiftool -r -csv triageYou want the outlier, and the tags shared across files.
A DOCX/XLSX/PPTXexiftool, then unzip the containerTracked changes, comment authors, revision identifiers and embedded images with intact EXIF are not surfaced by exiftool.
A PDFexiftool, then a structural parserProducer strings, incremental revisions, embedded files and images with their own metadata.
A press or agency photoIPTC and XMP blocks specificallyNewsroom workflows write caption, credit, named persons and location there, and it often survives when EXIF does not.
A RAW or HEIC straight off a deviceFull dump including MakerNotesThe richest case: serials, shutter counts, lens data, sub-second timing.
A videoexiftool plus ffprobeContainer 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 / -G1 prefixes each tag with its group ([EXIF], [XMP], [IPTC], [MakerNotes], [File], [Composite]). Without it you cannot distinguish a tag the device wrote from a Composite value exiftool calculated, or an EXIF timestamp from a filesystem one. -G1 gives the finer group.
  • -a keeps 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.
  • -u shows tags exiftool has no name for. Vendor blocks are often the point.
  • -n disables pretty-printing — signed decimal degrees instead of 52 deg 22' 8.40" N.
  • -s prints tag names rather than descriptions, so you can query them again.
  • -ee extracts 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

阅读完整来源 ↗