← ClaudeAtlas

secrets-in-git-historylisted

Mine GitHub, GitLab and git history for identities, infrastructure and leaked credentials using commit author emails, GitHub code search, the commit .patch endpoint, trufflehog, gitleaks, git log pickaxe and full-ref history scans. Use when investigating a developer or organisation on GitHub, finding leaked API keys, AWS keys or tokens in code, enumerating org members and their personal repos, or recovering secrets deleted from HEAD but still present in history or forks. Applies to software supply-chain risk, credential exposure response, M&A technical diligence, and insider-threat investigation. Reference at useosint.com/skills/secrets-in-git-history.
useosint/osint-skills · ★ 16 · Code & Development · score 78
Install: claude install-skill useosint/osint-skills
# Secrets in git history A repository is three intelligence products: a list of humans with real email addresses, a map of the organisation's infrastructure, and a credential store nobody meant to publish. The costly mistake is scanning the working tree. Secrets deleted from HEAD stay in history forever, and commits deleted from a branch stay reachable through the fork network — scan only what is checked out and you are searching the one place the secret was definitely removed from. ## What you're holding, and where to start | You have | Start with | Why | |---|---|---| | An organisation name | Public org members, then their personal repos | Corporate repos are reviewed; personal ones are not | | A developer's name or handle | Commit emails across their repos | Yields an email nothing else gives you | | A commit email | Reverse-search across hosts; resolve any noreply ID | Links accounts across orgs and platforms | | A suspected credential leak | Both scanners over a mirror clone, all refs | HEAD-only scanning misses the point entirely | | A specific string — hostname, key prefix | `git log -S` pickaxe across all refs | Tells you when it entered and when it left | | A live domain | Check for an exposed `.git` — see the legal note | Full history from a web server, if authorized | | Nothing but a company website | Code search the org's internal domain names | Finds repos with no obvious link to the org | ## The commit email leak Git records an author identity on every comm