Works with the AI Agents you already use

    PII & Secret Redactor: Free Offline Privacy Scrubber

    by ClumsyMoney

    1

    Sanitizes logs, CSV exports, HAR captures, and .env files locally before sharing with teammates or AI tools.

    Free

    Security scanned
    PII & Secret Redactor: Free Offline Privacy Scrubber

    PII & Secret Redactor: Free Offline Privacy Scrubber

    Example session with this skill installed

    Scrub ./raw/support_export.csv and ./raw/staging.env into ./clean/ using reversible tokenization with vault ./private/run.vault.json, then run the zero-leak verification gate.

    • Read your context and instructions
    • Compiled the pii & secret
    • Generated the data export

    Offline Privacy Scrub Summary

    • Verification Gate: PASS (exit code 0)
    • Mode: tokenize (Vault saved to ./private/run.vault.json, mode 0600 — keep out of Git/chat)
    • Files Processed: 2 sanitized, 0 warnings, originals untouched
    CategoryMatches RedactedValidation Method
    EMAIL3RFC 5322 syntax (RFC 2606 skipped)
    PAYMENT_CARD1ISO/IEC 7812 Luhn Mod-10
    ENV_SECRET2Sensitive key & URI credential parser

    Zero residual leaks detected across ./clean/support_export.csv and ./clean/staging.env.

    support_export.csv

    CSV · data export

    Generated

    Example file from a real run - the skill writes it into your workspace.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Sanitizes logs, CSV exports, HAR captures, and .env files locally before sharing with teammates or AI tools. Masks customer PII, auth tokens, and production API keys offline with zero network calls while preserving original file structure.

    PII & Secret Redactor is a 100% free, 100% offline Python 3.9+ privacy scrubber that cleans local files before they ever leave your machine—with zero pip installs, zero API keys, and zero network requests.

    What It Does

    • Checksum- & Entropy-Validated Detection (redact_files.py): Detects emails (skipping RFC 2606 example domains), US SSNs (filtering invalid SSA areas), payment card numbers (ISO/IEC 7812 Luhn Mod-10), IBANs (ISO 13616 Mod-97 across 24 countries), public IPv4/IPv6 addresses (preserving RFC 1918 private and RFC 5737 doc IPs by default), provider tokens (AWS, GitHub, Stripe, Slack, Google, JWT, Bearer headers, PEM keys), and high-entropy secret assignments—while ignoring UUIDs, Git commit SHAs, and non-Luhn order IDs.
    • Format-Preserving Redaction: Parses JSON, JSONL, HAR 1.2, CSV, TSV, and .env natively so sanitized outputs stay valid, parseable, and column-aligned. Scrubs HAR headers, cookies, postData.text, and request.queryString + request.url in sync.
    • Permanent Masking or Reversible Tokenization (restore_tokens.py): Choose permanent [REDACTED:EMAIL] masks or deterministic reversible <<EMAIL_001>> tokens backed by a local 0600 vault JSON so you can restore values locally after debugging.
    • Independent Zero-Leak Verification Gate (verify_zero_leak.py): Re-scans sanitized outputs against all active rules and vault fingerprints without printing raw secrets, exiting 0 (PASS) or 1 (FAIL) with exact file:line:col locations.

    Supported File Formats

    1. Logs & plain text (.log, .txt, .md, .sql)
    2. Structured tables (.csv, .tsv)
    3. JSON & newline-delimited JSON (.json, .jsonl)
    4. Browser network captures (.har 1.2)
    5. Environment configs (.env, including database URI credentials)

    This toolkit scrubs text-based formats (logs, Markdown, CSV/TSV, JSON/JSONL, HAR 1.2, .env, SQL) using deterministic rules, checksums, and entropy thresholds; it does not perform OCR on binary images/PDFs or contextual NER for arbitrary unformatted person names in free-form prose.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Free to use

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 3 days ago

    • Free with an Agensi account

    Software
    Python 3.9+

    Permissions

    Terminal / Shell
    Write Files
    Network Access
    Listed3 days ago

    What's inside

    Frequently Asked Questions

    No. Every script runs 100% offline using Python 3.9+ standard library only. Zero network requests, zero API keys, and zero raw secrets are ever printed to stdout.

    No. Structured formats are parsed natively with Python's json and csv modules, scrubbed at the leaf-value level, and re-serialized cleanly so quotes, escaping, and column counts remain valid.

    Payment cards require ISO/IEC 7812 Luhn validation, IBANs require ISO 13616 Mod-97 checksums, US SSNs filter invalid SSA area codes (000, 666, 900-999), UUIDs and Git SHAs are allowlisted, and RFC 1918/5737 private/doc IPs plus RFC 2606 example domains are preserved by default.

    Yes. Run redact_files.py with --mode tokenize --vault ./private/run.vault.json to generate deterministic <<TYPE_NNN>> placeholders, then run restore_tokens.py locally to restore original values.

    Only Python 3.9 or newer. There are no pip installs or external dependencies.

    New in Security

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Security.

    Free