4,837 hijacked GitHub accounts harvested cloud credentials
Attackers probed more than 61,000 repositories, and malicious code ran in at least 1,835 of them. In some cases they erased their tracks within a minute.

According to findings shared by security researchers, GitHub's automation features were abused in a large-scale credential-theft campaign. Using 4,837 compromised accounts, the attackers opened pull requests against 61,764 repositories. Malicious code ran in at least 1,835 of them, and secrets stored inside were exfiltrated.
Researchers have dubbed the campaign wfx-loot, after the name the attackers used for their malware and the term they favored for the stolen secrets. The report does not say how the accounts were taken over in the first place.
How GitHub Actions and pull requests were abused
GitHub is a platform used by developers building open-source projects. Each project has a repository holding its source code, configuration files and other resources. To propose changes to public repositories, developers use pull requests, which other developers can review and then approve or reject. Actions is a service that runs tasks automatically, and these automated processes are known as workflows. In carrying out their tasks, workflows can access sensitive credentials.
The attackers first probed repositories with pull requests titled "docs: dependency audit notes", sent from branches named wfx-docs. These requests were not real attacks but probes, meant to reveal which projects could be modified. Of the more than 60,000 matching requests, over 10,000 targeted repositories that the hijacked accounts' owners did not own but could still access.
Malicious code planted in three different ways
Once they gained write access, the attackers activated the malicious script using one of three methods: modifying an existing GitHub Actions workflow, adding a shell script triggered by an npm install hook, or creating a new workflow file on a temporary branch. All three scenarios used the same code of roughly 1,500 lines.
In compromised environments, the code hunted for GitHub Actions secrets, authentication tokens, AWS, Azure and Google Cloud credentials, Docker and Kubernetes configuration files, SSH keys, API keys for AI services such as OpenAI and Anthropic, and developers' shell histories. It also targeted .env files, private keys, and credentials for tools such as npm, PyPI, HashiCorp Vault and Terraform.
Persistence and covering tracks
The malware did not stop at collecting data. It tried to swap stolen tokens for cloud sessions, impersonate service accounts and even create new credentials. By altering AWS and Azure configurations, it aimed to keep access alive even if victims rotated the stolen credentials.
After finishing, the attackers reverted their changes and deleted workflow run logs, sometimes within a minute, which made detection harder. Researchers also say some PHP packages on Packagist and two Go module versions were affected, which may have been an unplanned side effect of the attackers abusing automated release processes.
Advice for affected repositories
Researchers recommend that owners of any repository where the malicious code ran treat every secret and cloud credential its workflows could reach as compromised and rotate them immediately. Rotating credentials stands out as the first step to take in a campaign of this kind.
Add as a preferred source on Google
Comments
No comments yet. Be the first to comment.


