4,837 Hijacked GitHub Accounts and the Case for Self-Hosted ASPM
Since 2024, developers have been receiving emails from notifications@github.com claiming that GitHub has been hacked and that its security team needs the user’s authorization to deal with the consequences. Nobody had to break into GitHub to send them. Attackers mention a user in an issue or pull request, and GitHub’s own notification system delivers the message from its real address. The link leads to an OAuth app that asks for access to private repositories and the right to delete them. One click on Authorize, and the attacker works with your code under your name.
Phishing is one way to get a developer’s access. Infostealer logs and leaked tokens are another, and these credentials are traded and reused between attackers. GitGuardian believes the wfx-loot campaign drew on such a shared pool. Last week showed what happens once thousands of these accounts end up with one attacker.
What happened with wfx-loot
The campaign started with a small test run on October 24–29. The mass wave began on November 10 at around 12:45 UTC, when an attacker used stolen GitHub credentials from 4,837 accounts. Among them were accounts of Fortune 100 companies, the US General Services Administration, the French government, Nextcloud and WebdriverIO.
Each account opened a probe pull request titled “docs: dependency audit notes” to check where it had write access. Aikido Security, which found and named the campaign, counted such pull requests in 61,764 repositories. In more than 1,800 of them, the payload ran and sent credentials out.
The payload is a shell script of about 1,500 lines. It collects:
- GitHub Actions secrets,
GITHUB_TOKENand OIDC tokens; - credential files for AWS, Azure, GCP, Docker, Kubernetes, npm, PyPI, SSH, Vault and Terraform;
- API keys for AI providers and coding tools,
.envfiles and shell histories.
The attacker shipped the same script in four wrappers: injected into an existing workflow, as a new workflow on a short-lived branch, appended to an existing shell script, or as a hidden script started by an npm install hook. GitHub held the runs whenever the payload sat in a workflow file. The npm hook changes no workflow file: the repository’s own trusted workflows run npm install, and that starts the script. According to GitGuardian, the attacker leaned on the hook once the holds began blocking the workflow versions. The same hook also runs on a developer’s laptop if someone installs dependencies from an affected repository.
With the stolen tokens, the script gets into AWS, Azure and GCP. It rewrites an AWS role’s trust policy to accept any AWS account and adds federated identity credentials to Azure applications. Both changes survive secret rotation, so each one has to be found and removed by hand. Within a minute the attacker reverts the commit and deletes the workflow run with its logs. Often the only visible trace is a gap in the run numbers.
The detail that matters most for security teams: 10,431 of the probe pull requests went into repositories the hijacked account didn’t own. The access came through collaborator and organization permissions. One stolen token reached every project its owner could write to.

Not the first campaign this year
wfx-loot is one of several campaigns of this kind in 2026. In May, Megalodon pushed malicious workflows into 5,561 repositories within six hours. Waves of the Shai-Hulud worm hit npm through the spring and summer. From September, the Gheist campaign used stolen tokens from more than 850 accounts and planted more than 13,500 branches. GitHub’s hold stopped it in public repositories, but in private repositories and on GitHub Enterprise Server the workflows ran. The secrets left through GitHub’s own API, so there was no outside server to block.
In October, GhostAction used about 1,900 hijacked accounts to target more than 30,000 repositories. Some of its victims had been hit in earlier waves and had not rotated their secrets. GitGuardian found that 431 of the accounts used in wfx-loot, about 20%, had already been compromised in GhostAction, and in more than 100 repositories the new stealer was injected straight into GhostAction’s own workflow files. Researchers assess the two campaigns as likely run by different actors who drew on the same stolen credentials. GitGuardian’s conclusion: rotating the stolen secrets isn’t enough. The GitHub token used for the push has to be revoked too, or the next attacker will use it.
In March, the target was security tooling itself. In late February, an automated bot used a misconfigured workflow in the Trivy repository to steal a token of the maintainers’ service account. The rotation that followed left part of that access open, and on March 19 the TeamPCP group used it to publish a malicious Trivy v0.69.4 and repoint 76 of 77 version tags of trivy-action. Every pipeline that referenced a tag instead of a commit SHA ran the attacker’s code on its next run. After the secrets were taken, the real Trivy ran as usual, so the pipeline looked successful. Within a week, credentials harvested in that attack led to compromises of npm packages, Checkmarx KICS GitHub Actions, LiteLLM and Telnyx. The European Commission lost AWS keys through the Trivy compromise, and 91.7 GB of data from 71 EU entities was stolen over the five days before detection.
The Cloud Security Alliance drew the conclusion directly: the properties that make a security scanner attractive, such as broad deployment, privileged execution and access to secrets during scans, are the same properties that make it a force multiplier for attackers.

What your security platform holds
An application security platform is one of the most privileged systems in the company. To do its job it needs:
- a token with access to every repository in the organization;
- the full list of open vulnerabilities, with file paths and line numbers;
- every secret the scanners found in code and git history, including the ones nobody has rotated yet;
- integrations with Jira, Slack and the CI/CD system.
For an attacker, that’s a ready-made map: what is vulnerable, where it is, and which keys still work. So it’s worth asking where this platform runs and whose security its safety depends on.
Where the platform lives sets the blast radius
| SaaS ASPM | ASPM inside your VCS (cloud) | Self-hosted ASPM | |
|---|---|---|---|
| Where findings and found secrets are stored | Vendor’s cloud, next to other customers’ data | The same platform as your code | Your infrastructure |
| Who holds the token to your repositories | The vendor | The VCS platform itself | You |
| If the vendor is compromised | Every customer is exposed at once | Code and findings are reached with the same access | Your instance isn’t involved |
| If a developer account is hijacked | Depends on the account’s access to the platform | The same identity reaches both code and security data | Separate access, separate audit log |
| What an auditor sees | The vendor’s certificate | The VCS vendor’s certificate | Data that never left your perimeter |
How Whitespots is built
Whitespots was designed as a self-hosted platform from the start.
- It runs in your infrastructure. Deployment on Docker or Kubernetes. In a closed network, scanner images come from your own registry, and the only outbound request goes to the license server. Findings, found secrets and tokens to your repositories stay in your environment.
- Scanners don’t run inside your pipelines. Whitespots connects with one webhook on your GitHub organization or GitLab group. Code, dependencies, container images, secrets and infrastructure as code are scanned on the platform’s side, so scanners never execute in your CI runners next to your deployment secrets.
- The platform doesn’t have to know your secrets. Scanners are fully configurable, and any flag a scanner supports can be set in the portal. For secret scanners, you choose whether found values are revealed or redacted. With redaction on, the platform stores only where a secret was found, without its value.
- Scanner versions are pinned. The 30+ scanners are updated periodically and never automatically: every update is a manual decision, so a new upstream release doesn’t reach your environment just because it was published.
- Every finding goes to an owner with a deadline. When a secret leaks, the finding gets an owning team and an SLA, and closes after a rescan confirms the fix.

What self-hosting doesn’t fix
A self-hosted platform doesn’t protect a developer whose token was stolen from an infostealer log. wfx-loot would still reach the repositories that developer could write to, and the backdoors it leaves in AWS and Azure would still have to be found by hand. What changes is the size of the damage: the attacker doesn’t get your full vulnerability list and every found secret along with it, and a breach at your security vendor doesn’t become your breach.
Self-hosting also doesn’t make the scanners themselves trustworthy. Whitespots runs open source scanners, Trivy among them, and the platform holds access to your repositories, so a poisoned scanner image would end up next to that access. That’s why scanner versions are pinned and updated as a deliberate step, and why every scanner update deserves the same review as a change to any other privileged system.
Five questions for your ASPM vendor
- Where are our findings and the secrets your scanners find stored, and who at your company can read them?
- What access does your token to our VCS have, and where does it live?
- Do your scanners run in our CI runners, and if so, which of our secrets can they reach?
- How do scanner updates reach us, and can we hold back a release?
- If your platform is compromised tomorrow, what will the attacker have about us?
Sources: Aikido Security, BleepingComputer: wfx-loot, Help Net Security: wfx-loot, GitGuardian: wfx-loot, Barrier Networks, The Hacker News: GhostAction, Help Net Security: Gheist, StepSecurity: Megalodon, Cloud Security Alliance: TeamPCP, BleepingComputer: Gitloker, Kaspersky


