# Secrets in file metadata

> Secrets in file metadata is an open-source agent skill for files and documents. Read and interpret embedded EXIF, XMP, IPTC and Office/PDF metadata with exiftool. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/UseOSINT/Skills/tree/main/skills/secrets-in-file-metadata
- **Repository:** https://github.com/useosint/skills
- **GitHub stars:** 76
- **License:** MIT
- **Skill name:** secrets-in-file-metadata
- **Collection:** https://github.com/UseOSINT/Skills
- **Categories:** [files and documents](https://ai-powered.com/categories/files-and-documents), [security](https://ai-powered.com/categories/security)
- **Listing updated:** 2026-12-03

## About

This skill teaches an agent to pull metadata out of photos, videos and documents using exiftool, and to read the results with care. It explains which tag groups to request so that device-written values can be told apart from values exiftool calculates, and how to triage a whole folder into a CSV to spot outliers, shared camera serials and timestamps that fall outside a claimed window.

The guidance covers the high-value fields in detail: GPS position and compass bearing, camera and lens serial numbers, EXIF timestamps without timezone offsets, editing-software tags and document properties such as author, company and template paths. It also walks through extracting embedded thumbnails and previews, unpacking DOCX and XLSX containers to reach tracked changes, comments and embedded images, and enumerating PDF images, attachments and revisions. A confidence scale helps the agent label each finding as confirmed, probable, unconfirmed or contradicted.

The skill expects exiftool installed locally, along with optional tools such as ffprobe, pdfimages, pdfdetach and qpdf for deeper inspection. It includes a set of ethical and legal limits on handling personal location data and suggests passing related findings to other skills for geolocation or author lookup.

## When your agent uses it

> 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.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/UseOSINT/Skills/tree/HEAD/skills/secrets-in-file-metadata)
- [License: MIT](https://github.com/UseOSINT/Skills/tree/HEAD/skills/secrets-in-file-metadata)

## Features

- **Exiftool command patterns:** Ready-made exiftool invocations for grouped, duplicate-preserving and raw-value dumps, plus bulk CSV triage across a folder.
- **Camera and device fingerprinting:** Guidance on using make, model, serial numbers and vendor tags to link images to a single physical body.
- **GPS and timestamp interpretation:** Explains bearing, accuracy radius, UTC GPS clocks and how to reconcile EXIF times that lack a timezone.
- **Office and PDF provenance:** Steps for reading document properties, tracked changes, comment authors, embedded images and PDF producer strings.
- **Confidence grading:** A four-level scale for labelling metadata findings as confirmed, probable, unconfirmed or contradicted.
- **Legal and ethical limits:** Notes on personal data, minimisation and the risks of precise location data about private individuals.

## Good for

- Check the GPS location and capture time stored in a photo's EXIF data
- Find out who authored or last edited a Word or PDF document
- Link several images to the same camera using its serial number
- Spot the original, un-stripped copy of an image from a CMS
- Triage a folder of photos to find outliers and timestamps that do not fit

## Install

### Claude Code

This skill ships in the `useosint` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add UseOSINT/Skills
/plugin install useosint@useosint
```

Or copy only this skill to `~/.claude/skills/secrets-in-file-metadata`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/UseOSINT/Skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/secrets-in-file-metadata &&
cp -R "$tmp/skills/secrets-in-file-metadata" ~/.claude/skills/secrets-in-file-metadata &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/secrets-in-file-metadata` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/secrets-in-file-metadata` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/UseOSINT/Skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/secrets-in-file-metadata &&
cp -R "$tmp/skills/secrets-in-file-metadata" ~/.agents/skills/secrets-in-file-metadata &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/secrets-in-file-metadata` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/secrets-in-file-metadata` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/UseOSINT/Skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/secrets-in-file-metadata &&
cp -R "$tmp/skills/secrets-in-file-metadata" ~/.cursor/skills/secrets-in-file-metadata &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/secrets-in-file-metadata` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/UseOSINT/Skills.git --path skills/secrets-in-file-metadata
```

Or copy the folder to `~/.gemini/skills/secrets-in-file-metadata` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/secrets-in-file-metadata`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/UseOSINT/Skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/secrets-in-file-metadata &&
cp -R "$tmp/skills/secrets-in-file-metadata" ~/.copilot/skills/secrets-in-file-metadata &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/secrets-in-file-metadata` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/UseOSINT/Skills.git
```

Then copy `Skills/skills/secrets-in-file-metadata` into your agent's skills folder as `secrets-in-file-metadata`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does Secrets in file metadata need to run?

It expects exiftool to be installed locally, and it can also use ffprobe, pdfimages, pdfdetach and qpdf for video and PDF inspection. The skill is a set of instructions and reference files, with no bundled scripts.

### Will Secrets in file metadata change or strip metadata from my files?

It warns to hash and copy files before any editing, since rotating, cropping or opening some files can rewrite tags. The commands shown only read metadata.

### Why do EXIF timestamps need extra care?

EXIF datetimes usually carry no timezone, so they are local device time unless an offset tag is present. The skill suggests comparing them with the UTC GPS timestamp to anchor the clock.

### Does Secrets in file metadata cover video and RAW files?

Yes. It covers JPEG, HEIC, RAW, MP4 and DOCX, XLSX and PDF files, including the extraction of embedded GPS tracks from video streams with exiftool's -ee option.

### How do I install Secrets in file metadata in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/secrets-in-file-metadata to use it in all your projects, or to .claude/skills/secrets-in-file-metadata in one project. Or install the useosint plugin, which includes it: /plugin marketplace add UseOSINT/Skills, then /plugin install useosint@useosint.

### Does Secrets in file metadata run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Secrets in file metadata?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Secrets in file metadata?

The closest alternatives to Secrets in file metadata are Where was this taken, Geolocate from pixels, Is this photo real, Pattern of life from socials and Techstack identification.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Where was this taken](https://ai-powered.com/skills/where-was-this-taken): Where was this taken is an open-source agent skill for security.
- [Geolocate from pixels](https://ai-powered.com/skills/geolocate-from-pixels): Geolocate from pixels is an open-source agent skill for security.
- [Is this photo real](https://ai-powered.com/skills/is-this-photo-real): Is this photo real is an open-source agent skill for security.
- [Pattern of life from socials](https://ai-powered.com/skills/pattern-of-life-from-socials): Pattern of life from socials is an open-source agent skill for security.
- [Techstack identification](https://ai-powered.com/skills/techstack-identification): Techstack identification is an open-source agent skill for security.
- [Track planes and ships](https://ai-powered.com/skills/track-planes-and-ships): Track planes and ships is an open-source agent skill for security.
- [Find exposed servers](https://ai-powered.com/skills/find-exposed-servers): Find exposed servers is an open-source agent skill for security.
- [Google like a spy](https://ai-powered.com/skills/google-like-a-spy): Google like a spy is an open-source agent skill for web search and scraping.

---
Source: https://ai-powered.com/skills/secrets-in-file-metadata
