Wfx-loot Campaign Exploits Stolen GitHub Credentials at Scale

Wfx-loot Campaign Exploits Stolen GitHub Credentials at Scale

The rapid expansion of automated software development has inadvertently created a massive attack surface where a single compromised developer identity can compromise an entire corporate infrastructure within minutes. Since late 2025, a highly coordinated campaign known as wfx-loot has been systematically exploiting stolen GitHub credentials to infiltrate tens of thousands of repositories across various industries. Detailed analysis from security researchers reveals that this threat actor has utilized approximately 4,837 compromised accounts to probe more than 61,000 unique repositories with surgical precision. The sheer scale of this operation highlights a significant shift in how attackers view the software supply chain, moving from isolated breaches to automated, industrial-scale exploitation. Because many of these stolen tokens grant broad access to entire organizations, the blast radius of a single successful login is often catastrophic, potentially jeopardizing every repository the victim has permission to modify.

Tactics of Stealth and Persistence: From Malware to Cloud Access

The operational methodology employed by the wfx-loot actors is characterized by extreme speed and forensic evasion, allowing them to operate within the noise of standard CI/CD activities. The attacker typically initiates a pull request with an innocuous title such as “docs: dependency audit notes” to confirm write access to the targeted repository. Once permissions are verified, they push a sophisticated 1,500-line shell script directly into an existing workflow or hook it into standard installation processes like “npm install.” This level of automation allows the malicious code to execute immediately upon the next build or dependency update, effectively turning the victim’s own infrastructure against them. To avoid detection, the threat actor implements an aggressive cleanup protocol that removes most traces of the intrusion within sixty seconds. After the script completes its primary task, the actor automatically reverts the code changes and deletes the associated execution logs from the repository history.

A primary finding of the analysis is the attacker’s focused effort on harvesting high-value cloud and artificial intelligence credentials. The payload is specifically engineered to exfiltrate GitHub Actions secrets, SSH keys, and access tokens for major AI platforms such as OpenAI, Anthropic, and Copilot. Beyond simple data theft, the threat actor implements advanced persistence mechanisms within the victim’s cloud environments to ensure long-term access. This involves creating long-lived AWS access keys, rewriting AWS role trust policies to allow unauthorized cross-account access, and adding federated identity credentials to Azure applications. These techniques provide the attacker with a durable foothold in the infrastructure that survives even the most basic security responses, such as rotating the original compromised GitHub tokens. By targeting the intersection of pipelines and AI services, the campaign effectively gains control over both the intellectual property and the operational infrastructure.

Effective recovery from such a pervasive intrusion necessitated a comprehensive audit of cloud identity policies rather than just a simple password reset or token rotation. Security professionals realized that the absence of local artifacts did not confirm a system was clean because the malware communicated directly with attacker-controlled command-and-control servers. Organizations that successfully mitigated the threat looked for specific indicators like the “wfx-docs” branch or commit messages regarding build cache refreshes. These teams moved toward a model of identity-based monitoring that flagged any unauthorized configuration changes capable of bypassing standard secret rotation protocols. This realization led to the adoption of hardware-based authentication and mandatory short-lived tokens across all critical development workflows. By focusing on the structural weaknesses of identity management, organizations transformed their defensive posture into one that was more resilient against the automated exploitation of trust.

Subscribe to our weekly news digest.

Join now and become a part of our fast-growing community.

Invalid Email Address
Thanks for Subscribing!
We'll be sending you our best soon!
Something went wrong, please try again later