Skip to content
Back to skills

Sensitive Info Audit

ASecurity

Scan a repo, patch, or bundle for secrets and private data before sharing or when requested. Report findings with sensitive values redacted.

  • 3 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 6, 2026
ai-agentspythongit

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned November 20, 2026

npx -y skills add bolens/agent-skills --skill sensitive-info-audit --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Sensitive Info Audit?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Sensitive Info Audit
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/bolens-sensitive-info-audit/badge)](https://www.skillsdirectory.com/skills/bolens-sensitive-info-audit)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: sensitive-info-audit
description: Scan a repo, patch, or bundle for secrets and private data before sharing or when requested. Report findings with sensitive values redacted.
---

# Sensitive information audit

Audit the exact publication boundary, including committed history when Git is involved. Do not treat a clean current tree as proof that history is clean.

## Procedure

1. Establish scope: tracked files, untracked files, ignored files intended for packaging, Git history, generated artifacts, archives, logs, screenshots, and metadata.
2. Run `scripts/audit-sensitive.py PATH` for a file or directory. In a Git directory it scans tracked working-tree files. Add `--include-untracked` when untracked content could be published. It scans symlink text without following the target. If packaging dereferences links, audit the resulting package separately.
3. If available, run two independent history-aware scanners such as `gitleaks git PATH --redact` and `trufflehog git file://PATH --only-verified --no-update`. Record unavailable tools as coverage gaps.
4. Review privacy indicators manually: names, email addresses, usernames, home paths, internal domains, private addresses, device IDs, UUIDs, screenshots, location data, and repository remotes. Context determines whether they are sensitive.
5. Inspect suspicious files without echoing credential values. Report file, line, detector class, confidence, exposure boundary, and remediation.

The bundled scanner uses Python 3.9+ and Git for repository file discovery. It emits findings in sorted relative-path order with `/` separators. The bundled scanner redacts match contents. Its per-file read limit defaults to 5 MiB, including files that grow during inspection. A replaced or oversized candidate makes the scan incomplete. Exit 0 means no supported secret detector matched and no files were skipped, 1 means secret material was detected, and 2 means invalid input or an incomplete scan. Secret findings take precedence over skipped files in the exit status. Review the scanned count and every skip. An empty scan is not publication proof. Privacy indicators are warnings because public identity and infrastructure details may be intentional.

For an incremental push, resolve the destination tip and local head to commit hashes before starting a history scanner. Pass those hashes using the installed scanner's range options and verify its reported range and scanned count. A scanner that clones the repository can resolve `origin/main` differently inside its clone. An empty range or zero scanned content does not prove pending commits are clean. For a first publication, audit all reachable history being published.

## Remediation boundaries

Removing a secret from the current file does not remove it from Git history. Before rewriting history, rotating credentials, deleting artifacts, changing repository visibility, or force-pushing, explain the exposure and obtain explicit authorization. Rotation normally comes before history cleanup for a live credential.

Re-run every applicable scanner after remediation. For a public repository, verify remote visibility and the pushed commit after publication.

Files in this skill

  • SKILL.md3.4 KB
  • UPSTREAM.md436 B
  • agents/openai.yaml258 B
  • scripts/audit-sensitive.py5.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.