Hackers compromise 4,800 GitHub accounts to steal cloud credentials
A campaign dubbed 'wfx-loot' targeted tens of thousands of GitHub repositories, using 4,837 compromised accounts to steal cloud and developer credentials from at least 1,835 targets.
Intelligence analysis by Gemini 2.5 Flash

Threat actors leveraged stolen GitHub credentials to open malicious pull requests, injecting a sophisticated shell script designed to exfiltrate a wide array of sensitive data, including cloud access tokens and developer secrets. The campaign, identified by Aikido, also led to the release of backdoored packages on public indexes, posing a significant supply chain risk.
Imagine someone snuck into a big online clubhouse (GitHub) where people share their computer code. They got the secret keys to almost 5,000 members' lockers (accounts) and then tried to open doors to over 60,000 other lockers. If they got in, they quickly copied all the secret passwords for other important online places, like cloud storage or special AI tools, and then vanished without a trace, leaving behind a tricky program that could even let them pretend to be the real owner of those cloud accounts.
Analysis
The 'wfx-loot' campaign represents a sophisticated and broad-reaching attack targeting the software development ecosystem, specifically GitHub. The attackers initiated their operation by compromising 4,837 GitHub accounts, which were then used as a springboard to probe 61,764 repositories for write access. This initial reconnaissance phase involved opening pull requests disguised as 'docs: dependency audit notes,' a tactic designed to appear innocuous and avoid immediate detection by legitimate repository owners. The fact that 92% of these malicious pull requests remained open, as reported by Aikido, underscores a significant challenge in maintaining vigilance across large open-source projects and organizational repositories.
wfx-loot Campaign Mechanics
Once write access was confirmed, the threat actors injected a 1,500-line credential-stealing shell script. This script was delivered through various methods, including modifying existing GitHub Actions workflows, adding new workflows on short-lived branches, or planting npm install hooks. The script was meticulously designed to collect an extensive range of sensitive data, encompassing GitHub Actions secrets, workflow GITHUB_TOKENs, OIDC, and Actions runtime tokens. Beyond GitHub-specific credentials, it also targeted cloud credentials for major providers like AWS, Azure, and Google Cloud, including those exposed via instance metadata on self-hosted runners.
Furthermore, the script sought developer and infrastructure credentials from Git, SSH, GPG, Docker, Kubernetes, npm, PyPI, Vault, and Terraform. It also extended its reach to AI service and developer-tool credentials for platforms such as OpenAI, Anthropic, Gemini, Hugging Face, Cursor, and GitHub Copilot. The exfiltration process involved compressing the collected data into tarballs and sending them via HTTP POST to attacker-controlled endpoints, with the entire operation, including reverting changes and deleting logs, completed in under a minute to minimize detection.
4,837 Compromised Accounts
The scale of the initial compromise is particularly alarming, with 4,837 GitHub accounts being leveraged in the attack. These compromised accounts belonged to a diverse range of high-profile targets, including Fortune 100 organizations, the US General Services Administration, the French government, Nextcloud, and WebdriverIO. A critical aspect of this compromise is that approximately 50 of these accounts possessed publishing rights on other open-source software ecosystems and package indexes such as npm, PyPI, Go, crates, and Packagist. This capability allowed the attackers to push backdoored versions of legitimate packages, as seen with Packagist’s digitalelvis/neuronai-studio 3.14.3 and two versions of the Go module github.com/onuragtas/docker-env. This indicates a clear intent to exploit the software supply chain, potentially leading to further downstream compromises for users who integrate these affected packages into their projects.
Aikido's Findings and Recommendations
Application security company Aikido played a crucial role in uncovering the 'wfx-loot' campaign, detailing its initiation around 12:45 UTC on November 10. Their research confirmed that secrets were stolen from at least 1,835 targets, highlighting the effectiveness of the attacker's methods. Aikido's analysis also revealed the script's advanced capabilities, including cloud privilege escalation by exchanging GitHub OIDC tokens for temporary AWS, Azure, and GCP cloud sessions. In AWS, it could chain into additional IAM roles to create long-lived credentials, and in GCP, it could impersonate identities using collected service-account credentials. These findings underscore the potential for persistent access and significant control over cloud environments.
In response to their discoveries, Aikido provided specific recommendations for repository owners to detect and mitigate the impact of the attack. They advised looking for the 'wfx-docs' branch, the probe pull request, and any gaps in workflow run numbers as indicators of compromise. Crucially, where payload execution is confirmed, all secrets and cloud roles available to the affected workflows should be considered compromised and rotated immediately. This proactive measure is essential to prevent further exploitation and secure affected environments against the long-term implications of this sophisticated credential-stealing operation.
Key points
- The 'wfx-loot' campaign compromised 4,837 GitHub accounts to target 61,764 repositories.
- Hackers stole cloud credentials for AWS, Azure, and Google Cloud, along with various developer and AI service credentials.
- The attack involved injecting a 1,500-line shell script via malicious pull requests and workflow modifications.
- Approximately 50 compromised accounts had publishing rights on package indexes like npm and PyPI, leading to backdoored package releases.
- Aikido researchers confirmed secrets were stolen from at least 1,835 targets and provided detection and mitigation advice.
The rapid detection and detailed analysis by security researchers like Aikido provide crucial intelligence, enabling affected organizations to quickly identify compromises and rotate credentials. This swift response, coupled with increased awareness, could lead to improved security practices and better monitoring for similar supply chain attacks in the future.
The widespread compromise of GitHub accounts, including those with publishing rights on major package indexes, poses a significant and ongoing supply chain risk. The fact that many malicious pull requests went unnoticed suggests a potential lack of vigilance, which could allow backdoored packages to propagate further and lead to more extensive cloud environment breaches.


