hubsweep
Have my GitHub repos been hit? hubsweep answers that for every repo your GitHub login can reach, and, if you
like, for the computer you run it on. It looks for the traces supply-chain campaigns leave behind, using one rule
pack per campaign, so it keeps working when the next one comes along.
- Read-only. It only makes GET requests through the GitHub CLI and only reads files on your machine. It never
closes, deletes, rotates or comments on anything.
- Honest about gaps. Anything it can't read is listed under "Couldn't check", never counted as clean.
- No dependencies. Node 22+ and the GitHub CLI (
gh). Windows, macOS and Linux, tested on all three.
- A Claude skill included, for Claude Code and Claude chat.
New to supply-chain attacks? Start with the explainer at pacphi.github.io/hubsweep: what happened, why it matters in the AI era, a message for each role, and Breach Sweep, a small game that teaches you the signs.
Ships with packs for wfx-loot (November 2026) and GhostAction (October 2026).
How this started
On the morning of 12 November 2026, a LinkedIn post by Mackenzie Jackson, Field CTO at
Aikido Security, turned up in my feed: "We are currently tracking a massive GitHub Actions
supply chain attack where 4,800+ compromised accounts are pushing secret-stealing workflows to over 61,000
repositories." It credited Oliver Smith's research and listed things to search for: a PR titled
docs: dependency audit notes, branches named wfx-docs or chore/…, commits like ci: refresh build cache, and
"skipped or missing run numbers" in Actions history.
That last one is the nasty part. Oliver Smith's write-up,
wfx-loot campaign pushes CI secret stealer to tens of thousands of repositories,
explains why: the attacker uses each stolen token to open a probe PR, pushes the payload, reverts it within a minute
and deletes the workflow run and its logs. A gap in the run numbers is often the only trace. The payload takes
every secret the workflow can see, swaps OIDC tokens for AWS, GCP and Azure sessions, and leaves back doors that
survive rotating secrets.
I look after a few hundred repos across my own account and several organisations. GitHub's search box can find the
probe PRs, but not a payload pushed to a branch that was deleted a minute later, or a run that no longer exists. So I
asked Claude to plan a survey, keep it strictly read-only, and then run it. The first version was a single script.
It swept 243 repos (including archived repos and forks) and 77 local checkouts in under an hour, and found nothing.
That was a relief, but the useful part was the script, so this is that script made general: rule packs instead of
hard-coded strings, flags instead of my account names, every operating system, tests, and a skill so anyone can ask
Claude to run it.
Quick start
gh auth login # once; hubsweep reads GitHub as you
npx --yes github:pacphi/hubsweep # sweep every repo you can reach
npx --yes github:pacphi/hubsweep --local ~/code # ...and this computer, plus the git checkouts under ~/code
Or clone it and run node bin/hubsweep.mjs. Try --plan first to see the checks and the steps without reading anything. If gh isn't installed, hubsweep offers to install it (Homebrew,
winget, apt, dnf, zypper or pacman) and only does so if you say yes.
It writes hubsweep-report.md and hubsweep-report.json and exits with:
| Exit | Meaning |
|---|
| 0 | nothing found |
| 10 | high findings: treat them as real |
| 11 | things to check by eye |
| 12 | nothing found, but some checks couldn't run (see "Couldn't check") |
| 2 / 3 | bad arguments / gh missing or not signed in |
Options
--owner <login> only these users or orgs (repeatable); default: every repo your login can reach
--repo <owner/name> only these repos (repeatable)
--since <when> a date or a number of days (14d); default: the packs' earliest start, at most 90 days back
--pack <id> only these rule packs; --rules <dir> add your own packs; --list-packs show them
--local <dir> also check this computer and the git checkouts under <dir> (repeatable); --local-only skips GitHub
--doctor check the prerequisites and exit; --plan also show what the sweep would do, and exit
--no-forks, --no-archived, --concurrency <n>, --out <dir>, --yes
Every run starts the same way, before it reads a single repo: it checks what it needs (Node 22+, gh installed and
signed in, the token's access, the API budget left this hour, git for --local, a writable report folder), then
prints, step by step, what it is about to read and what it will not do. --plan stops there so you can look first.