Published on November 13, 2026

Attacker Targets 60,000 GitHub Repositories in Credential Theft Campaign


Severity

Medium

Detail

Cybersecurity researchers identified a large-scale credential theft campaign known as “wfx-loot,” targeting over 60,000 GitHub repositories using compromised accounts. Attackers injected malicious scripts into GitHub Actions workflows to steal sensitive credentials, including API keys, cloud tokens and repository secrets. The campaign involved payload execution in more than 1,800 repositories, with attackers attempting to conceal their activities by removing malicious changes and workflow records, highlighting significant software supply chain security risks.

How?

The attack begins with threat actors using stolen GitHub authentication tokens associated with legitimate developer or automation accounts. These credentials allow attackers to access repositories where the compromised accounts have sufficient permissions. To identify suitable targets, the attackers automatically submit seemingly harmless pull requests, frequently using the title “docs: dependency audit notes” and the branch name “wfx-docs.” These requests serve as probes to determine whether the stolen credentials permit repository modifications.

Once write access is confirmed, the attackers inject a malicious shell script containing approximately 1,500 lines of code into existing GitHub Actions workflows, newly created workflow files or scripts executed during automated build processes. In some cases, the malicious payload is embedded within npm installation hooks, allowing execution during dependency installation. The modifications are often disguised as routine maintenance activities using commit messages such as “ci: refresh build cache.”

When the affected CI/CD workflow executes, the malicious script attempts to collect sensitive information available within the build environment, including GitHub authentication tokens, repository secrets, cloud service credentials and API keys associated with third-party services. The malware also contains capabilities to inspect GitHub Actions runner process memory and abuse cloud identity mechanisms to obtain additional access to AWS, Azure and other connected environments. These capabilities could enable unauthorized cloud resource access, privilege escalation and persistent access through modified identity configurations.

To conceal their activities, the attackers frequently revert malicious repository changes and delete associated workflow execution records shortly after the payload runs. This anti-forensic technique makes detection particularly challenging because repositories may appear clean during subsequent security reviews. Consequently, organizations relying solely on current repository contents or conventional source code scanning may overlook evidence of compromise.

Recommendation

Organizations should immediately review GitHub repositories, developer accounts and CI/CD workflows for indicators associated with the wfx-loot campaign. Security teams should investigate suspicious pull requests, unexpected workflow modifications, unauthorized commits and unusual automation activity, particularly those occurring from 10 November 2026 onward. GitHub audit logs and workflow execution histories should be examined for deleted workflow runs, unusual access patterns and modifications performed by compromised developer or automation identities.

Organizations should revoke potentially compromised GitHub personal access tokens, review OAuth application permissions and rotate sensitive credentials accessible to affected CI/CD workflows. This includes cloud access keys, repository secrets, deployment credentials and third-party API tokens. Where malicious workflow execution is confirmed, security teams should assume that accessible secrets may have been exposed and conduct a comprehensive investigation of connected cloud environments.

Additional security measures should include enforcing multi-factor authentication, implementing least-privilege access controls, restricting GitHub Actions workflow permissions and requiring approval for modifications to sensitive CI/CD configuration files. Organizations should also review AWS IAM trust policies, newly created access keys and Azure federated identity credentials to identify unauthorized persistence mechanisms. Continuous monitoring of developer identities, automated workflows and cloud authentication activities should be implemented to detect suspicious behaviour and prevent further compromise.

Conclusion

The wfx-loot campaign demonstrates how compromised developer credentials can be leveraged to conduct large-scale software supply chain attacks without exploiting vulnerabilities in the underlying development platform. By abusing legitimate repository permissions and automated CI/CD workflows, threat actors can potentially access sensitive credentials, compromise cloud environments and conceal malicious activity through rapid removal of attack artifacts. Organizations should prioritize credential protection, CI/CD security monitoring and cloud identity governance to minimize exposure to similar attacks. Proactive threat hunting, timely credential rotation and continuous auditing of development environments remain essential for detecting and mitigating credential-based supply chain threats.

Source

https://www.securityweek.com/attacker-targets-60000-github-repositories-in-credential-theft-campaign

https://www.sailpoint.com/blog/wfx-loot-github-actions-attack-nhi-detection