The short version: Attackers stole developers’ GitHub tokens, rewrote commits those developers had already made, and force-pushed them back. The commit history still looked normal. Anyone who cloned the repo and opened it, built it or ran its tests could run the malware. More than 7,600 repos were hit.
This one bothers us more than most supply-chain stories. It didn’t need a fake package or a typo. It used repos people already trusted, with the real author’s name on the commit.
What happened
| Repos hit | 7,609, owned by 2,330 accounts (Apiiro) |
| Who | Linked to North Korean threat actors, assessed as running alongside the “Contagious Interview” fake-job campaign |
| Entry | GitHub tokens taken from developer machines that were already compromised |
| Disguise | The original commit’s author, message and date kept; the loader hidden after a long run of spaces |
| Trigger | Importing a conftest.py or small utils package, running npm run build, or in the newest wave just opening the folder in VS Code |
| Payload | Reads instructions from an Ethereum transaction, runs them with Node.js, then plants itself in VS Code, Cursor, GitHub Desktop and Discord |
The commit didn’t look forged. It was the developer’s commit, with something folded in, which is why reviewing the author list won’t catch it.
Check your repos today
1. Look for force-pushes you didn’t make. GitHub’s repository activity API lists them:
gh api "repos/OWNER/REPO/activity?activity_type=force_push" \
--jq '.[] | [.timestamp, .actor.login, .ref] | @tsv'
2. Look for code hiding behind long runs of whitespace. Legitimate code rarely has a run of 150 or more spaces:
grep -rnE ' {150,}[^ ]' --include='*.py' --include='*.js' --include='*.json' --include='*.cjs' --include='*.mjs' .
3. Search for the campaign’s marker. Researchers found the hex string below in the attacker’s wallet addresses. It decodes to helloipbot!!:
grep -rni '68656c6c6f6970626f742121' .
If any of these turn something up, treat the developer’s machine as compromised: revoke that person’s tokens and SSH keys, and rebuild the machine before issuing new credentials.
The five controls that stop this
- Block force-pushes on protected branches. A branch ruleset that forbids force-pushes and requires pull requests on
mainstops the quiet rewrite. A stolen token can still open a pull request, but now someone has to approve it. - Use short-lived, narrowly scoped tokens. Fine-grained personal access tokens can be limited to specific repos and set to expire. A token that only reaches three repos for 30 days does far less damage than a classic token with full
reposcope that never expires. - Turn on alerts for force-pushes. Stream the audit log to wherever your team actually looks. Finding out in minutes is better than finding out from a news article.
- Treat cloning as running code.
conftest.pyexecutes the moment pytest starts. Build scripts execute onnpm run build. Open unfamiliar repos in a container or throwaway VM, and keep VS Code’s Workspace Trust on so unknown folders open in Restricted Mode. - Keep AI coding agents in a sandbox. An agent that clones a repo and runs its tests by itself will hit the trigger without a human ever reading the code. Give it a disposable environment with no access to your tokens.
Signed commits help, but they aren’t a complete answer. If the signing key lives on the same infected laptop, the attacker can sign too. Store keys on a hardware token so they never sit on the laptop’s disk.
Why it matters past this campaign
Most supply-chain defenses check what you install. PolinRider attacked where your code lives. Branch protection and token scope are boring settings, and they’re the ones that would have mattered here. We cover the rest of a small-team setup in DevSecOps for small teams, and the same sandboxing concern runs through code execution with MCP.
Want a second pair of eyes on your GitHub organization’s settings, tokens and pipelines? Talk to us.
