Repository navigation
Releases
gitghost v1.4.1
polish release, mostly smarter email attribution.
smarter email attribution
the biggest complaint about v1.4.0's metadata report: scanning an account flagged every author email found in their repos, so one contributor with a personal email in a shared repo got pinned on you as "your exposed identity." now attribution actually requires evidence before an email is called yours:
- matches the public profile email
- is a
users.noreply.github.comaddress embedding your login - has an author name that casefold-matches your name or login
- or spans 2+ of your repos
emails with no such signal land in a separate co-author emails (not the subject) cell instead. note this means plain --local scans no longer guess at attribution at all (no profile to check against), which is the honest behavior.
--local path guard
gitghost --local demo/ where demo/ isn't itself a repo used to silently scan whatever repo contained it (git walks up to the parent). now it refuses and tells you to pass the repo root.
readme refresh
new preview screenshot, and every em dash in the readme is gone because fair enough.
pipx upgrade gitghost-scanner # if you already have it
pipx install gitghost-scanner # if you don'tgitghost v1.4.0
What's new since v1.3.0:
Force-push recovery (the big one)
- Force-pushed a secret away? No clone contains it anymore — but your recent public push events still list the orphaned commit SHAs, and GitHub still serves those commits when fetched by SHA
- gitghost now pulls your recent PushEvents, fetches every orphaned commit into the clone, and scans exactly what the force-push tried to bury: only blobs missing from HEAD are reported
- Findings carry a "removed via force-push" badge in the dossier and count as their own score driver
Gist revision history
- Secrets you edited out of a gist stay readable at the old revision URLs — deleting is not rotating
- Every gist's edit history is now walked; secrets that only exist in past revisions are flagged as ghosts (labeled
gist:<id>/<rev>) and deduped against the current version
Profile enrichment
- Public name, company, location, blog, twitter, account age, follower/repo counts — shown in the console during identity scans and in the dossier header
Under the hood
- 18 tests (up from 16), including an offline orphan-commit recovery test that reproduces the force-push scenario with real git objects
- Green on Python 3.10–3.12, zero dependencies as always
Everything from earlier releases still applies: detection-only, public data only, findings shown as non-reversible fingerprints. Rotate, don't delete.
pipx install git+https://github.com/cy3erm/gitghost
gitghost
gitghost v1.3.0
What's new since v1.2.0:
Detection
- 25+ new credential formats: OpenAI project keys, GitHub fine-grained PATs, GitLab, Google OAuth refresh tokens, Groq, Perplexity, xAI, Notion, Shopify, Square, Razorpay, Stripe restricted keys, HashiCorp Vault, Firebase FCM server keys, PlanetScale, DigitalOcean, Doppler, Postman, Sentry, Netlify, Linear, Figma, Replicate, and more
- Slack rule now also matches xapp- app tokens
Guided interactive mode
- Running
gitghostwith no arguments now clears the screen, prints the banner, and walks you through a scan: pick a target (user / org / repo / local checkout), type it in, go. The one-shot CLI flags all still work.
Deeper recon
--org/--members: scan an organization and every public member's repos--network: crawl an account's followers/following- Gist scanning: every public gist is fetched and scanned
- Deep history attribution: ghost findings now carry the introducing commit, author, date, and how many days the secret has been exposed
Reliability & UX
- Fixed a crash when scanning with
--network - Friendly GitHub API errors (404 vs rate limit, with fix-it hints)
- Consistent colored status output (respects NO_COLOR, plain when piped)
- Graceful Ctrl+C,
--debugfor tracebacks, argument validation - Fixed ghost exposure-age parsing on Python 3.10
- Scanning is faster (rule matching hoisted out of the per-line loop)
Everything from v1.2.0 still applies: detection-only, public repos only, findings shown as non-reversible fingerprints.
pipx install git+https://github.com/cy3erm/gitghost
gitghost
gitghost v1.2.0
What's new since v1.1.0:
- Added a startup banner (shows on interactive runs, hidden when output is piped)
Everything from v1.1.0 still applies: scans a GitHub account's public repos for leaked secrets, recovers ones deleted from current code but still in git history, exposure score, linked HTML report with a fix guide. Detection-only, public repos only.
pipx install git+https://github.com/cy3erm/gitghost
gitghost <username>
gitghost v1.1.0
What's new since v1.0.0:
- Now pip-installable: pipx install git+https://github.com/cy3erm/gitghost
- Added a test suite and CI (runs on every push across Python 3.10-3.12)
- Cleaned up the codebase
Everything from v1.0.0 still applies: scans a GitHub account's public repos for leaked secrets, recovers ones deleted from current code but still in git history, gives an exposure score and a linked HTML report. Detection-only, public repos only.
pipx install git+https://github.com/cy3erm/gitghost
gitghost <username>
gitghost v1.0.0
First stable release.
gitghost scans a GitHub account's public repos for leaked secrets and scores how exposed the account is. The part most scanners miss: it digs through git history and recovers secrets that were committed, "deleted," and left behind in old commits.
What's in it:
- Exposure Score (0–100) with a shareable HTML report
- Recovery of "deleted" secrets still reachable in history
- Detection for AWS, GCP, Stripe, GitHub, OpenAI, Slack, private keys, DB URLs
- Scan a whole account, a single repo (--repo), or a local checkout (--local)
- Clickable links straight to the file/line or commit of each finding
- A how-to-fix guide (rotate first, then purge history)
- Findings shown as non-reversible fingerprints, so reports are safe to share
- Zero dependencies — Python 3.10+ standard library only
Detection-only, public repos only. Point it at your own account first.
python3 -m gitghost <username>