Skip to main content
HAT Solution Consulting logo

HAT Insights

61,000+ GitHub repos targeted, cloud keys stolen in bulk

The wfx-loot campaign targeted 61,764 GitHub repos to steal AWS, Azure and OpenAI keys. Firms with dev teams should rotate keys and audit GitHub Actions now.

Published 5 min read

Night view of a miniature town of code-repository boxes marked with the GitHub cat emblem: a huge dark monster snakes its tentacles in through their doors and pulls out glowing keys with cloud-shaped heads

In short: A campaign called wfx-loot has targeted 61,764 code repositories on GitHub. At least 1,835 of them ran the malicious code and lost cloud access keys and API keys for AI services. Any business with a software team, outsourced developers included, should replace the keys its automated pipelines use right away, tighten who can collaborate on its repositories and watch the logs kept by its cloud provider.

What happened to more than 61,000 GitHub repositories

According to Thanh Niên on 14 November 2026, citing TechRadar, researchers at Aikido Security found an attack campaign, wfx-loot, aimed at 61,764 code repositories on GitHub. At least 1,835 repositories are confirmed to have run the malicious code and had their credentials stolen.

The attackers did not break into repositories one at a time. They used 4,837 hijacked GitHub accounts to open pull requests in bulk. More than 10,000 of those pull requests went to repositories the accounts did not own but could still reach, in other words through collaborator access.

The malicious code was planted in GitHub Actions, the workflows a software team uses to test, build and deploy its product every time the code changes. Some repositories were hit through an npm package install script, others through a newly added workflow. The payload is about 1,500 lines long and is built to collect sensitive data from the development environment.

What it looks for: access keys for AWS, Microsoft Azure and Google Cloud, API keys for OpenAI and Anthropic, SSH keys, tokens, and Docker and Kubernetes configuration. Once it has a key, the attacker creates new credentials or changes the cloud service configuration to keep a way back in. The code also reverts its own changes and deletes the GitHub Actions logs, sometimes within about a minute, so anyone who only checks the commit history will see almost nothing.

What the risk is for Vietnamese businesses with software teams

The biggest risk is the keys, not the code. Having your source code read is damage enough, but a live AWS or Azure key lets an intruder into your servers, your customer database and your backups. If an API key for an AI service leaks, someone else can call the models on your account while the bill still comes to you.

Many small and mid-sized businesses in Vietnam set up their software teams in much the same way: one shared GitHub repository, a few in-house developers, plus an outsourcing partner or freelancers invited as collaborators. Cloud keys usually sit straight in the repository's secrets settings so the workflow can deploy to the servers. wfx-loot exploits exactly this setup. One hijacked collaborator account is enough: the malicious code running inside the workflow can read every key that workflow uses.

Companies that build software for overseas clients carry an extra layer of risk. They often hold access to their clients' repositories and cloud accounts, so an incident on one employee's account can spread into a client's systems.

The way wfx-loot covers its tracks also forces IT teams to change how they check. The commit history shows who changed which line of code, but for this campaign that is not enough. You also need the logs on the cloud provider's side, which record which key was used, from where and when. As our article on the AI attack that took over 10+ servers in 3 hours showed, attackers keep getting faster, so the gap between a key leaking and someone noticing is what a business most needs to shrink.

What to do now to protect your source code and cloud keys

Start by treating every key a workflow could ever read as leaked, and replace it. Investigate and tighten access after that. A suggested order:

  1. Rotate keys first, investigate later. Revoke and reissue the AWS, Azure and Google Cloud keys, OpenAI and Anthropic API keys, SSH keys and tokens stored in the repository or in GitHub secrets. Do the keys with admin or write access first.
  2. Look for unfamiliar accounts in the cloud. Because the attackers create new credentials to keep access, list the users, access keys and permissions that have appeared recently on each cloud account, and match them against real people on the team.
  3. Review every workflow. Open the GitHub Actions configuration in each repository, check which workflows are new and which steps call unfamiliar scripts, then check the install scripts in your npm package configuration too.
  4. Tighten collaborator access. Remove accounts that are no longer on the project, require two-factor authentication for every member of your GitHub organisation, and require approval before workflows run on pull requests from outside contributors.
  5. Issue keys with minimal rights and an expiry date. Each workflow should hold only the keys it needs for its own job. Keep test and production keys separate, and set a regular schedule for rotating them.
  6. Set spending alerts. Spending limits and budget alerts on your cloud and AI service accounts help you spot a stolen key in use even after the GitHub logs have been wiped.

A business owner without a technical background can still check by sending three questions to the head of the software team: where are the cloud keys stored, who has access to the repositories, and when were the keys last rotated. A vague answer to any of them is a sign that a review is due. The rules on access rights and backups in our guide to ransomware protection for small businesses apply to cloud accounts as well.

Frequently asked questions

We do not use GitHub Actions. Do we need to worry? Your risk from this campaign is lower, but not zero, because the malicious code also spreads through npm package install scripts. Any team that uses npm or keeps keys inside the repository should still review and rotate its keys.

How can we tell whether our repositories were among those attacked? The source has not published a list of affected repositories. The practical approach is to look for unfamiliar pull requests and workflows added recently, then compare against the key usage logs on your cloud provider's side, since the malicious code reverts its changes and deletes the logs on GitHub.

Will rotating keys disrupt our systems? It can, if one key is shared by several services. List where each key is used, create the new key and finish updating every service before you disable the old one, and do it at a time of day with little traffic.


HAT Solution Consulting helps businesses review how they store cloud keys and AI service API keys, set access rights for in-house and outsourced software teams, and fold these rules into one data governance framework. Send us a chart of your software team and the list of cloud services you use, and we will show you where to tighten first. Contact us for advice, or read our article AI governance for business: a control framework and data security.

Need advice for your business?

Talk to HAT Solution Consulting to get a digital transformation and AI roadmap that fits how you actually work.

Get advice

← All articles