GitHub’s token era fueled massive repo credential heists

The gist
GitHub’s switch from passwords to tokens supercharged a wave of credential heists that let attackers hijack thousands of trusted repositories from the inside.
What to know
- Attackers stole tokens and keys at scale in October–November 2026, exploiting GitHub's shift away from password authentication.
- Compromised maintainer accounts were used to plant secret-stealing malware via legitimate workflows, bypassing provenance checks and repository controls.
- The GhostAction campaign alone hijacked 1,900 GitHub accounts, infecting over 30,000 repositories and exposing secrets from nearly 5,000 developer accounts.
Tokens Became the Weak Link
GitHub’s move to token-based authentication made machine credentials the new prize for attackers, fueling automated secret theft at unprecedented scale.
The October-November 2026 credential-theft campaigns were able to spread through GitHub at unusual scale because the platform had already standardized authenticated Git activity around reusable machine-friendly credentials rather than passwords. GitHub said on 2020-12-15 that it would “retire password authentication for Git operations due to security risks like credential theft and phishing,” replacing it with “token- and key-based methods,” a shift that made stolen tokens, keys, and app credentials the practical currency for repository access, workflow changes, and the automated secret harvesting that defined those late-2026 intrusions.
That architecture became mandatory on 2021-08-13, when GitHub stopped accepting account passwords for authenticated Git operations and required “personal access tokens, OAuth tokens, SSH keys, or GitHub App tokens instead.” By the time coordinated attackers moved in during October and November 2026, the ecosystem’s core authentication path was therefore built around exactly the kinds of credentials that can be silently reused inside CI/CD and cloud-connected development workflows, helping explain how malicious workflow injections could repeatedly exfiltrate secrets across large numbers of maintainer-controlled repositories.
Malware Hid in Trusted Code
Attackers leveraged stolen maintainer credentials to inject secret-stealing malware into legitimate workflows, turning trusted packages into covert exfiltration tools.
Account takeover matters because it gives attackers the same credentials maintainers and automation already trust, letting them place malicious code where it will run before defenders usually look. Sonatype and Qualys describe the pattern as credential-first: a package or workflow only needs to execute once on a developer machine or CI runner to search for tokens, cloud keys, and configuration data, and “The Shai-Hulud campaign emerged in September 2025 and compromised popular npm packages… The injected worm scanned infected environments for cloud credentials and exfiltrated them to a public GitHub repository created” under the victim’s own account. The same playbook appeared outside npm: the compromised LiteLLM 1.107.0 package executed automatically during Python startup, collected cloud credentials, SSH keys, AI provider tokens, and browser data, and installed a backdoor capable of retrieving additional payloads.
Once attackers hold valid tokens, they can quietly turn trusted repositories into secret-harvesting infrastructure. Qualys found that “The May 19 wave compromised 639 package versions across 323 packages… Its payloads targeted GITHUB_TOKEN, AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, KUBECONFIG, VAULT_TOKEN, and other cloud and infrastructure secrets,” and that “By May 2026, Mini Shai-Hulud had shifted execution to the preinstall lifecycle hook, meaning credentials could be stolen even if the package installation was cancelled after the hook fired”; Wiz then showed the same logic in GitHub workflows, where “The workflow ‘prints the job's environment and every secret the job can read, encoded in base32,’” and recovered “more than 13,500 planted branches from more than 850 compromised accounts.”
Provenance Signals Outwitted
Compromised maintainer accounts allowed attackers to publish poisoned releases with valid attestations, rendering traditional trust checks ineffective.
Trusted signals failed because the attackers did not counterfeit legitimacy; they used authenticated maintainer workflows. Venture Beat’s analysis of Shai-Hulud found that poisoned releases carried valid provenance because the attacker pushed malicious files straight to the main branch and released through the maintainer’s own GitHub Actions flow, so npm generated a real attestation rather than a forged one. GhostAction Returns showed the same pattern, with 500+ GitHub Accounts Compromised Starting October 7 and attackers using compromised maintainer accounts to push a malicious workflow named security-audit.yml.
Normal repository controls also did not stop the attacks because access was legitimate at the moment of abuse. CrowdSec describes a chain in which a stolen GitHub OAuth token from that account followed a poisoned TanStack dependency, 170 private repositories were cloned in two hours, and the account was removed from the GitHub organization on May 25, three days after the theft. In GhostAction, the trusted workflow sent secrets to 193.32.204.199 and downloaded entire Git histories to find credentials developers deleted years ago, including AWS, GitHub/GitLab, OpenAI and Anthropic keys, Slack, and PyPI and crates.io.
GhostAction’s Industrial-Scale Breach
Coordinated credential theft campaigns hijacked thousands of accounts and repositories, proving that mass compromise is now an ecosystem-wide threat.
By October 2026, the scale alone made dismissal impossible. The Hacker News reported, “GhostAction hijacks 1,900 GitHub accounts, plants credential-stealing workflows in 30,000 repositories,” while Wiz wrote, “We have recovered more than 13,500 planted branches from more than 850 compromised accounts, ranging from personal projects to enterprise organizations' private repositories.” Even before those waves, the pattern had already shown industrial potential: “One phishing email put crypto stealing code into the dependency tree of thousands of downstream applications in under two hours,” and a prior worm “compromised over 200 packages and 500 versions” in four days.
November turned that warning into a measurable ecosystem event. The Hacker News said Aikido Security found stolen credentials for 4,837 GitHub accounts were used to “plant a secret stealer” and that it ran in “at least 1,806 repositories,” after the attacker opened test pull requests in “61,764 repositories” from “wfx-docs” branches; separate reporting also carried the headline, “GhostAction Hijacks 500 GitHub Accounts to Steal Developer Secrets.” Against that backdrop, late-2025 precedent mattered: researchers had already tied “hundreds of malicious NPM packages” to Contagious Interview, showing these were campaigns with repeatable mass reach, not isolated noise.



