Full Account Security Audit
Skill1 starsChanged 4 months agoMITView on GitHub
Comprehensive periodic sweep for leaked secrets across every local repo, every GitHub repo (including full history), local .env files, and GitHub's own secret-scanning alerts. Use on demand or quarterly, not on every push. For that, use pre-push-secret-scan.
- Reads credentials
In this repository25 other files it gives its agents.
- templates/AGENTS.mdAGENTS.md
- braindump-autoSkill
- braindumpSkill
- Capability Claim GroundingSkill
- Derived Figure AuditSkill
- design-review-loopSkill
- Dictation Garble CatcherSkill
- Discord Todo OpsSkill
- Large Task Session SplitSkill
- Personal Dashboard StyleSkill
- Pre-Push Secret ScanSkill
- Project Design DocSkill
- Public Repo Leak RetractionSkill
- repo-hygieneSkill
- Repo Index Drift CheckSkill
- Safe Section DeletionSkill
- Session HandoffSkill
- Skill Overlap AuditSkill
- superbraindumpSkill
- ui-change-visual-verifySkill
- Verify, Don't TrustSkill
- Windows Process Restart (Safe)Skill
- Windows Shell Tool SelectionSkill
- Worktree Task-Pack VerificationSkill
- Zombie Process SweepSkill
The file
Files
Full Account Security Audit
The slow, thorough sibling of pre-push-secret-scan. This has been done by hand three separate times already. This codifies it into one invocation.
Scope
- Every local git repo under the workspace root (owned repos; explicitly skip third-party clones).
- Every GitHub repo on the account, public and private.
- Full git history of each, not just the working tree. A secret removed in a later commit is still in history unless it was rewritten out.
- Local
.envand credential files in every project: confirm each is gitignored and was never tracked (git log --diff-filter=A -- .envreturns nothing). - GitHub's own secret-scanning alerts API for every repo where it's enabled.
The pattern battery
Same core set as pre-push-secret-scan, run against tracked files AND full history:
sk-ant- | sk-proj- # Anthropic / OpenAI
ghp_ | github_pat_ # GitHub
AKIA # AWS
shpat_ # Shopify
AIza # Google
xox[baprs]- # Slack
discord.com/api/webhooks/ # Discord webhooks
hf_ # Hugging Face
-----BEGIN.*PRIVATE KEY-----
eyJ[A-Za-z0-9_-]{10,}\.eyJ # JWT shapePlus a generic key|secret|password|token = "..." pass, and a user:pass@ URL pass, both filtered for obvious placeholders.
Procedure
- Local pass:
git log --all -pper repo piped through the battery (or shallow-then-full-clone if disk space matters), plus a working-tree grep. - Remote pass: for each GitHub repo, either clone locally and run the same check, or use the GitHub secret-scanning alerts API directly (
gh api repos/{owner}/{repo}/secret-scanning/alerts) where available. Note it's typically disabled on free-tier private repos, so don't read a 404/disabled response as "clean." - History-add check:
git log --diff-filter=A --name-onlyacross all branches, filtered for credential-shaped filenames (.env,*credentials*,*secret*,*.pem,*state.jsonwith tokens inside). - Report, don't fix silently: produce a clear list of findings (or confirm zero) before taking any remediation action, especially before recommending or running a history rewrite, since that's
public-repo-leak-retraction's job and is a separate, explicit decision. - Recommend, don't silently enable: flag whether GitHub's Secret Scanning + Push Protection is on for each public repo; enabling it is a settings change and needs the user's go-ahead.
Done-when
A finding-by-finding report (zero findings is a valid, good outcome) covering all five scope items above, with nothing silently skipped. If a repo or branch was excluded from the sweep, say so explicitly rather than letting the report imply full coverage.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

