My GitHub Account Got Hacked
writingOn 17 November, at two minutes to noon, GitHub sent me two emails one second apart. The first said my account had been flagged and everything public on it was now hidden. The second said I had been suspended. Both said my account had been used to support attacks on other people.
I saw them a couple of hours later, and by the time I went to change my password there was nothing left to sign in to. My account, rohzzn, has been a 404 ever since, and more than 200 private repositories went with it.
What happened
Six days earlier, someone had used my account to push code into one of my repositories. It was uidna, a developer tool I built in October, and my last change to it was on 20 October. On 11 November a commit I didn't write appeared on its main branch, called "ci: refresh build cache". On 12 November it happened twice more, and each time a second commit, "ci: restore", followed about ten seconds later.
| Commit | UTC | Signed | Message |
|---|---|---|---|
| df47cc3 | 20 Oct 23:10 | rohzzn | feat: docs on the website, generated from the repository |
| 5f6270e | 11 Nov 09:50 | Rohan | ci: refresh build cache |
| 5034d85 | 12 Nov 05:39 | Rohan | ci: refresh build cache |
| dd60d03 | 12 Nov 05:39 | Rohan | ci: restore |
| 69d34fc | 12 Nov 13:17 | Rohan | ci: refresh build cache |
| e6defbb | 12 Nov 13:17 | Rohan | ci: restore |
Every commit I make from my own computers is signed rohzzn. These five were signed Rohan, the display name on my profile, which is how commits look when they are made through GitHub's API with someone's token instead of with git on a computer.
Each "refresh build cache" added about 1,500 lines to one of the repository's GitHub Actions workflows. When the workflow ran, those lines collected every secret saved in the repository's settings, the temporary token GitHub gives each run and any cloud credentials they could reach, and sent them to the attacker. Each "restore" deleted the lines again. The first copy, from 11 November, was never deleted. It was still in the repository six days later, when GitHub found it.
It wasn't just me
The week it happened, the security company Aikido wrote up the whole campaign, which they call wfx-loot. Starting on 10 November, someone holding stolen GitHub tokens used 4,837 accounts to open pull requests titled "docs: dependency audit notes" in 61,764 repositories, to find out which ones each token could write to. Wherever it could, it pushed the payload, then reverted it within a minute and deleted the workflow run along with its logs. By Aikido's count, at least 1,835 repositories ran it and had their credentials stolen. My five commits match what they describe, down to the commit messages.
The first step shows up on my account too. GH Archive keeps a public record of everything that happens in the open on GitHub, and it shows my account opening pull requests on two of my other repositories on 11 November, hxh at 08:43 and portfolio_v1 at 09:22 UTC, both from a branch called wfx-docs. Twenty-eight minutes after the second one, the first commit landed on uidna.
How they got in
I still don't know. GitHub emails me whenever a new app is given access to my account, and the only two in the two months before were "Sign in with GitHub" buttons on other sites, which can read my name and email address and nothing else. So whatever was used most likely already existed: a token I had made, or a login saved on one of my computers.
My first guess was npm. I had published two packages from uidna three weeks earlier, and Aikido found that at least 50 of the hijacked accounts publish packages too. But nothing has been published to either package since 20 October. They are exactly as I left them.
GitHub's security log would say which token made those pushes and from where. I can't read it while the account is suspended.
What I did that day
I filed an appeal with GitHub with all of the above: the five commits, the name they were signed with, and the dates. Then I made sure I couldn't lose anything else. I backed up every git repository on my laptop, 66 of them with their full history, 3 GB in all, and pushed them to a new account as private repositories, with GitHub Actions switched off on each before anything went up. GitHub only lets you create repositories so fast, so after the first nine the rest went up one every three minutes, into the next day.
The attacker's commits never made it into my own copies. Two projects, Argus among them, now exist only on the Mac I use as a server at home.
What's gone
rohzzn had 78 public repositories and more than 200 private ones. The ones I had on my laptop or my Mac survived. For the rest, GitHub was the only copy, and they went with the account, along with 302 stars, 94 followers and my commit history going back to 2019. There are 52 links to rohzzn on this site, most of them on the projects page, and every one of them now goes to that 404.
What the Internet Archive kept
The Internet Archive saved my profile ten times between September 2024 and December 2025, so I can still see it. This is the last capture, from 27 December 2025:

My commit history
My commits on GitHub went back to 2019, more than 6,000 of them.
If you use GitHub
- Search your repositories for pull requests titled "docs: dependency audit notes", branches called wfx-docs, and commits titled "ci: refresh build cache".
- Keep a copy of every repository somewhere GitHub can't take away, including the private ones you haven't opened in years. The ones on my laptop survived. More than 200 that only lived on GitHub didn't.
- Give your tokens an expiry date, and check which apps can reach your account under Settings, Applications.
As I write this, rohzzn is still suspended. If GitHub gives it back, the first thing I'll do is download every one of those private repositories. The second is deleting those five commits.
