Developers • Secret Hygiene

Scrub API Keys, Secrets & IPs Before Pasting Logs to AI

Paste stack traces, .env dumps, HAR snippets, or server logs. Automatically detects AWS, Stripe, OpenAI, GitHub tokens, JWTs, DB URIs, and IPs locally.

Sensitive input
Safe for AI
Masked prompt with [PERSON_1] tokens appears here.

How to clean production logs before debugging with an LLM

  1. 01.Use the "Dev / API Log Scrubber" preset.
  2. 02.Paste your stack trace, Nginx log, or JSON payload.
  3. 03.Secrets like sk-..., AKIA..., ghp_..., Bearer JWTs, postgres:// passwords, and IPs become safe tokens like [SECRET_1] and [IP_1].
  4. 04.Paste cleanly into ChatGPT/Claude, then optionally restore real hostnames/IPs locally.

Why Client-Side Execution Matters

  • Catches PEM private keys, Bearer headers, DB connection strings, JWTs, and cloud provider key prefixes.
  • Enforced `connect-src: self` browser Content-Security-Policy guarantees secrets stay local.
  • Preserves line structure and JSON/stack formatting for accurate AI debugging.

Frequently Asked Questions

Which secret formats are detected automatically?

Maskry detects OpenAI/Anthropic/Stripe keys, AWS access keys (AKIA...), GitHub tokens (ghp_/github_pat_), Slack tokens, Google API keys (AIza...), JWTs, Bearer authorization headers, PEM private keys, and database URLs with credentials.

Why not just paste logs straight into an AI chat?

Accidentally pasting live credentials or internal IP maps into external tools violates most security policies and risks leaking production credentials in chat history.

Related Workflows