Attackers hijacked two open-source maintainer accounts to plant credential-stealing workflows in over 340 GitHub repositories. Learn how it happened and how to protect your projects.
### The Attack That Slipped Through GitHub's Cracks
Imagine waking up to find that your open-source project—one that thousands of developers rely on—has been quietly weaponized to steal credentials. That's exactly what happened this week to two well-known maintainers. Attackers hijacked their accounts and planted malicious workflows in over 340 repositories.
StepSecurity, a cybersecurity firm, was the first to sound the alarm. They noticed something strange: a workflow that didn't belong. It was pushed using the account of Takashi Kitao, the creator of pyxel, a popular game engine with 18,400 stars on GitHub. The attacker moved fast—pushing the malicious workflow to 27 repositories in a matter of minutes, starting at 13:20 UTC.
### How It Happened
If you're not familiar with GitHub Actions, think of them as little robots that run tasks for you—like testing code or deploying your app. They're incredibly convenient, but they also have access to your secrets: API keys, tokens, and other sensitive data. That's what made this attack so dangerous.
Here's the playbook the attackers used:
- **Compromise a trusted account:** They gained access to a maintainer's GitHub credentials, likely through phishing or a leaked token.
- **Inject a malicious workflow:** Once inside, they added a workflow file that exfiltrated secrets to an external server.
- **Spread quickly:** Using the maintainer's permissions, they pushed the same workflow to multiple repositories, hoping to cast a wide net.
> "Using the account of Takashi Kitao, author of the 18,400-star game engine pyxel, the attacker pushed a malicious workflow to 27 repositories starting at 13:20 UTC," StepSecurity reported.
### Why This Matters to You
Even if you're not a maintainer of a massive project, this attack should raise eyebrows. Supply chain attacks like this are becoming more common because they exploit trust. When you install a package or use a tool from GitHub, you're implicitly trusting that the code hasn't been tampered with. But as we've seen, that trust can be broken.
For businesses and developers in the United States, the stakes are high. A single compromised repository can lead to data breaches, financial loss, and reputational damage. And with the average cost of a data breach now exceeding $4 million, according to IBM, it's not something you can afford to ignore.
### What Can You Do?
You don't have to be a security expert to protect yourself. Here are a few practical steps:
- **Enable two-factor authentication (2FA)** on all your accounts, especially GitHub. It's a simple way to block most account takeover attempts.
- **Regularly audit your workflows.** Look for any suspicious or unfamiliar actions. If something looks off, investigate immediately.
- **Limit permissions.** Don't give workflows more access than they need. Use the principle of least privilege.
- **Monitor for unusual activity.** Set up alerts for new workflows or changes to existing ones.
### The Bigger Picture
This incident is a wake-up call. As open-source software becomes the backbone of modern technology, it also becomes a bigger target. The attackers aren't just after big corporations—they're after anyone with valuable credentials. By staying informed and taking basic precautions, you can reduce your risk.
Remember, security isn't a one-time fix; it's an ongoing practice. Stay safe out there.