# Share-Safe Renders

> Find what a render leaks before you share it: API keys, Discord and Slack webhooks, user names in paths, e-mails, LAN IPs, GPS and hidden MP4 data. The report never prints the leaked text.

Share-Safe Renders is a free AI agent skill on Agensi by PurpleDaddy, in Security. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [PurpleDaddy](https://www.agensi.io/creators/jon-sawa)
- Category: [Security](https://www.agensi.io/skills/security)
- Uses: 2
- Version: 1.2
- Last updated: 2026-10-18
- Security: scan passed (2026-10-16); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/share-safe-renders
- Tags: security, image, testing, privacy, metadata, comfyui, exif, png

## About this skill

Find out what a render leaks before you share it. **Share-Safe Renders** gives your agent one scanner for PNG, JPEG and MP4/MOV files and ComfyUI workflow JSON. It reports what people post by accident: API keys and secret-named fields, Discord and Slack webhook URLs, user names inside home-folder paths, e-mail addresses, LAN addresses, GPS coordinates, and secrets hidden where a text search does not look (bypassed ComfyUI nodes, JSON stored inside a string, compressed PNG chunks, hidden MP4 boxes).

**Questions it answers**
- Does this PNG, JPEG or MP4 carry a key, a webhook, a user name in a path, an e-mail address, a LAN address or GPS?
- Where exactly: which file, which container, which ComfyUI node, and was that node bypassed (it did not run, but its values are still saved)?
- Is anything hidden in a compressed PNG chunk, in JSON stored inside a string, or in an MP4 box that players and `ffprobe` do not show?
- Which files could not be scanned at all (damaged, too big, WebP or GIF), so nobody mistakes them for checked?
- After I re-export a copy without the metadata, does a second scan of the copy still find what was found?

**How it works**
The skill is scan-first. `scripts/scan.py` only reads the files you give it: it never edits, moves or deletes them, and the one file it writes is the JSON report you name. The report never prints the text it found, only the class, the place, the length and a short keyed hash, so a file's metadata cannot put instructions into a report your agent reads. The skill then tells your agent how to export a copy without the metadata (ffmpeg and Pillow commands, run on synthetic files and labelled per build) and to check the copy by scanning it again; another program makes the copy and the scanner checks it, so the check is not circular. The skill tells the agent to give a fixed report: verdict first, then findings, then how to fix, then what the scan cannot see. A file or folder name can contain text that a shell runs, so the skill tells the agent to paste a file name into a command only if the name is plain (ASCII letters, digits, spaces and `. _ ( ) + -`), and only if the folder you name has no `"`, `$`, backtick, `%`, `!` or typographic double quote in it; for any other name it tells the agent to ask you to copy or rename the file, or move it to a plain-named folder, first.

**Honest by design**
A file the scanner could not scan is not reported as clean: it is listed under COULD NOT FULLY SCAN and the run exits 3 when nothing else was found (1 if another file has a finding). Links and file types it does not read, met inside a folder, are skipped, counted and named under NOTES. A run that scanned no file at all exits 3. No verdict line the skill gives the agent says "clean" or "safe", and it tells the agent never to say a file is fine to share. "Nothing found" is not a guarantee: the known misses are written down (data hidden in pixels or in the compressed image and video streams, the contents of C2PA manifests, secrets that were split or re-encoded, vendor key formats outside its list of eight vendors, webhooks of providers other than Discord and Slack). It does not judge your prompt text or what the picture shows.

It does not replace exiftool or trufflehog. exiftool shows more tags than this scanner reads; trufflehog has far more vendor detectors and can check whether a key is live. What this adds is classification (paths, e-mail addresses, LAN addresses, GPS, hidden MP4 boxes), node and bypassed-node attribution, decoding of compressed PNG chunks, a report that never prints the leaked text, and an exit code that does not read a file it knows it could not scan as clean. In a head-to-head on a synthetic corpus (240 files, 194 planted entries; exiftool 13.59, trufflehog 3.99.2), trufflehog scanned none of the real PNG, JPEG or MP4 files as shipped (the only two files it scanned were a text file and random bytes named .png) and, with workarounds, flagged 27 of 68 planted key entries (the scanner: 68 of 68); exiftool's dumps showed 189 of the 194 entries in clear text and classified none. Much of that gap is the shape of the corpus: counted by underlying key, the report lists 32 OpenAI-legacy keys (trufflehog flagged 1; only 1 of the corpus's 43 OpenAI-legacy values has the marker it needs) and 7 lone AWS key ids it never reports, and excluding OpenAI-legacy values and lone AWS key ids trufflehog flagged 33 of the 40 remaining effective K1 entries (82%), a count on a different basis from the 27 of 68. The scanner matched 194 of 194, but 91 of those 194 are classes trufflehog has no detector for, and the scanner was built against that corpus, so that is not an estimate of real-world recall. The numbers and every caveat are in the package.

**What is inside**
One scanner (`scan.py`, standard library only), a demo-file maker (`make_demo.py`) that writes six synthetic files with invented secrets, five reference notes (what leaks and where, how to export a copy, reading the report, known misses, the comparison), a real sample report in Markdown and JSON, and an example session that includes a run that cannot scan everything. A sixth note (references/no-skill-folder.md) is for an agent that receives the skill as text with no skill folder: it names the one file a scan needs (scan.py, about 145 KB) and gives a short program that writes each file the agent loads into a fresh folder in the system temp folder only when its SHA-256 is the published one, and checks that folder before anything runs.

**Requirements**
Python 3.9 or newer. `ffmpeg` is needed only for the export commands and the demo MP4; `ffprobe` is optional. The 692 automated tests ran on Windows 11 and on Linux in Docker (see the compatibility note). They live in the public repository and are not in the zip. Not tested: macOS, and any agent end to end. Free.

**Source and licence**
Source code and tests: https://github.com/sawizzle/share-safe-renders (MIT OR Apache-2.0). The copy you get through Agensi is under Agensi's buyer terms (a personal, non-transferable licence).

## Requires

- Python

## Known limitations

- Does not see data hidden in pixels, or inside the compressed image and video streams, and does not look at what the picture shows. Does not read the contents of C2PA / Content Credentials manifests.
- Opens only PNG, JPEG, MP4/MOV and plain JSON. WebP, GIF, WebM, HEIC/AVIF phone photos, TIFF, PDF and the other formats on its list are reported as not scanned (exit 3 when nothing else was found; with another finding the run exits 1 and still lists them), never as clean. Other file types met while walking a folder are skipped, counted and named under NOTES; the run still exits 0 unless you add --strict.
- Misses secrets that were split, base64- or hex-encoded or glued to a letter, placeholder values (changeme, your_api_key), secret field names outside its list (cookie, credentials, session_id, auth, key), vendor key formats outside the eight vendors it knows, webhook URLs of providers other than Discord and Slack (Teams, Zapier, n8n, Make, Telegram bot URLs), credentials written inside a URL, and a JWT outside a secret-named field.
- Reports only the three private IPv4 ranges and .local/.lan/.internal host names; not IPv6, loopback, link-local, CGNAT or public addresses. Ignores e-mail addresses on example.com, example.org, example.net and example.edu and on the reserved .example, .test, .invalid and .localhost endings; other .org, .net and .edu addresses are reported.
- Does not judge prompt text, model names, seeds or node layout; they travel with the embedded workflow. GPS in a camera's binary telemetry track (GoPro, DJI) is probably missed (no such file was available to test).
- It is a checker. It does not remove metadata; the export commands (ffmpeg, Pillow) were run on synthetic files only, and results differ by build: an ffmpeg PNG re-encode keeps a PNG's EXIF (GPS and e-mail) on ffmpeg 8.1.1 and 9.0.1 but not on 5.1 and 7.1; `-c copy` on a JPEG keeps the GPS block; a plain export of an animated PNG fails and leaves a one-frame file; the MP4 command keeps one video and one audio stream; and ffmpeg's -n option keeps an existing output file but exits 0 on 7.1, 8.1.1 and 9.0.1 and 1 on 5.1. A plain Pillow save keeps metadata on every Pillow version tested (a PNG's EXIF block, a JPEG's COM comment or XMP packet, depending on the version), so the documented command passes empty exif, comment and xmp values; it writes only the first frame of an animated file. Always scan the copy again.
- The comparison numbers come from a synthetic corpus the scanner was built against (in-sample). trufflehog's custom-detector mode was not tested.
- If your agent receives the skill as text, the route in references/no-skill-folder.md needs the agent to run a short Python program given on standard input and to load each script on its own (scan.py, about 145 KB, for a scan). A file that comes back in the conversation must be written by the agent's own file tool, and the program writes only the published bytes and refuses any copy whose content differs from the published file (it repairs only line ends, a byte order mark and the final newline); then the note tells the agent to stop and tell you. The route was tested on a simulated answer of the current shape and the program on real saved answers, not with every agent or host. Do not use it on a Windows machine whose temp folder, or a folder above it, other users can write.
- Tested on Windows 11 and on Linux x86-64 in Docker, not on macOS. A key that was already shared stays exposed; removing metadata does not take it back.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Share-Safe Renders skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### Does it change my files?

No. It reads the files and folders you name and writes only the JSON report path you give it. It never deletes a file, refuses to replace an existing file that is not an earlier report of its own, and refuses a report path inside a folder it is scanning.

### What does "nothing found" mean?

That the checks it has found nothing in the places it opens. It is not a guarantee. It knows the key formats of eight vendors, judges field names by a list, and cannot see split or re-encoded secrets or anything in the pixels. The package lists the known misses. A run that scanned no file at all (an empty folder, only sub-folders) exits 3, never 0.

### Does it make the re-exported copy for me?

No. It tells you how (ffmpeg and Pillow commands that were run on synthetic files, with what was and was not verified) and how to check the copy by scanning it. If you ask the agent to run an export, SKILL.md tells it to write a new file, check that the command succeeded and scan the result.

### Do I need exiftool or trufflehog?

No. They are not used. exiftool shows more tags and trufflehog has far more vendor detectors; the package compares them with measured numbers and caveats.

### What happens with a WebP, a GIF or a damaged file?

The file is listed under COULD NOT FULLY SCAN with the reason and is never reported as clean. The run exits 3 when nothing else was found; if the scan also finds a leak it exits 1 and still lists the file. The skill tells the agent to treat those files as not checked.

### Why does it say my report contains my user name?

The report repeats the paths you gave it. If your files are under your home folder, the paths contain your account name. Look through the JSON before you attach it to a post, and do not keep it inside a folder you are about to share.

### My agent did not pick the skill up. What now?

Say "use the share-safe-renders skill".

### Where are the automated tests?

In the public repository https://github.com/sawizzle/share-safe-renders, not in the zip. The suite has 692 tests.

### My agent received the skill as text and there is no skill folder. Does it still work?

SKILL.md has a short section for that case. It sends the agent to references/no-skill-folder.md, which says that a scan needs one file (scripts/scan.py, about 145 KB) and gives a short program: it makes a fresh folder in the system temp folder, writes each file the agent loads into it only when its length and SHA-256 are the published ones, and checks the folder before the scanner runs. The note tells the agent to delete the folder afterwards. The scanner then runs as usual and its report is the same: it never prints the leaked text. The test suite runs that route on a simulated text-only answer of the current shape (a file saved as plain text or as JSON, or shown in the conversation and written by the agent), and the program was run on real saved answers: scan.py saved as plain text, and both scripts from an older answer that held the whole skill. The program writes only the published bytes: a copy whose content differs from the published file is refused and nothing runs (it repairs only line ends, a byte order mark and the final newline).

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
