privacy-scan

Scans Git pushes for API keys, tokens, passwords, and phone numbers before publishing.

6|1|Updated May 11, 2026
One-click install
npx skills add https://github.com/yakeworld/Synthos --skill privacy-scan-yakeworld
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: privacy-scan
Source: https://github.com/yakeworld/Synthos/tree/main/skills/private/devops/privacy-scan
Command: npx skills add https://github.com/yakeworld/Synthos --skill privacy-scan-yakeworld

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Accidentally pushing API keys, GitHub tokens, passwords, or phone numbers to a remote Git repository causes real credential leaks that are hard to remediate. This Skill intercepts sensitive information at the pre-push stage and provides a full cleanup protocol when leaks occur. ## Core Features & Use Cases - Pre-Push Secret Scanning: A pre-push hook scans commits for API keys, GitHub tokens, passwords, phone numbers, and a configurable KNOWN_SECRETS blacklist, blocking the push on any hit. - Leak Remediation Workflow: Guides history rewriting with git-filter-repo, credential rotation, and git ls-tree secondary verification when secrets reach historical commits. - .gitignore Audit: Detects contradictions between .gitignore comments and actual rules, and removes mistakenly tracked private files with git rm --cached. - Use Case: Before running git push on a repository containing a .env file with a GitHub token, the hook blocks the push, reports each hit, and walks you through removing the credential, adding it to the blacklist, and rotating the exposed key. ## Quick Start Ask the agent to scan this repository for leaked API keys, tokens, or phone numbers before I push to the remote.

Frequently Asked Questions about privacy-scan

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent API keys from being pushed to GitHub?

Install a pre-push hook that scans outgoing commits for patterns like GitHub tokens, API keys, passwords, and phone numbers, and blocks the push on any match. Maintain a KNOWN_SECRETS blacklist in the scan script so previously leaked credentials are always intercepted.

How to remove a leaked secret from Git history?

Use git-filter-repo to rewrite all affected commits and purge the secret from history, then rotate the exposed credential immediately. Verify the cleanup with git ls-tree to confirm the sensitive file is no longer tracked in any commit.

Can I skip the pre-push secret scan in an emergency?

Yes, git push --no-verify bypasses the hook, but only after manually confirming the repository contains no sensitive information. Skipping the scan without verification risks a real credential leak, as demonstrated by a documented 267-commit incident.

Why is my .gitignore not excluding private files from Git tracking?

Files already tracked by Git are not affected by .gitignore rules, and comments may contradict the actual rules. Run git rm --cached on the mistakenly tracked files, add an explicit directory exclusion like skills/private/, then verify with git ls-tree.

What types of secrets does a pre-push scan detect?

The scan covers GitHub tokens with the ghp_ prefix, generic API keys, passwords, phone numbers, and any entries in a user-maintained KNOWN_SECRETS blacklist. New leaked credentials can be added to the blacklist to strengthen future interception.