Technical terms with a dotted underline are explained on hover, tap or focus.
Modern software is largely made of other people's code: libraries, build scripts, automation. Whoever attacks that chain reaches many targets at once. In October 2026 three reports appeared that show where this is happening right now. This post summarises them and separates what the sources document from my own assessment.
What this is about
- SlugFest: A flaw in npm's “Trusted Publishing” process made more than 1,500 packages open to takeover, according to Bloom Security. GitHub has tightened the process.
- Fake workflows: Automation files that look like a security check but harvest credentials were pushed to GitHub on a large scale.
- Worm in npm packages (background, August): Microsoft described tampered versions in over 400 packages that steal credentials on install and spread further.
All three cases are about developers' accounts and permissions, not about a bug in your own application.
SlugFest: flaw in npm Trusted Publishing
Trusted Publishing is meant to make publishing npm packages safer: instead of a long-lived password or token, a specific GitHub repository may publish via a short-lived login method (OIDC). That trust is exactly what could be attacked.
- Flaw: npm identified the repository by its “owner/repository” name (slug) and ignored the permanent numeric repository ID until the first successful publish. If a repository was renamed, transferred or deleted, an attacker could claim the freed name and inherit the package's trust.
- Steps (according to the researchers): create a repository under the freed name, run a publish workflow, exchange the OIDC token issued in the process with npm and receive a publish credential. No stolen credentials were needed.
- Discovered by: Bloom Security, who reported it to GitHub on 6 June 2026. The attack is called SlugFest.
- Scale: over 1,500 vulnerable packages with more than 10 million downloads in total.
- GitHub's response (changelog of 2 October 2026): Unvalidated trusted publisher configurations expire 48 hours after creation. After the first successful publish a configuration counts as validated and is bound to the repository's immutable identity. Changing the repository or project identity requires a new trust relationship. npm also rejects trusted publishing tokens from GitHub Actions
issue_commentevents; the existingpull_request_targetrestriction stays.
For package maintainers: Check that every bound name still points to a repository you control. After a rename or transfer, delete the binding and recreate it with the current name. Remove the binding when a repository is deleted. And watch for unexpected publishes. Whether SlugFest was already exploited is not stated in the sources I have.
Fake workflows steal credentials
A workflow in GitHub Actions is a file in the repository that automatically runs tasks such as tests or releases. One campaign abuses that. According to The Hacker News (published 9 October, updated 15 October), the findings rest on StepSecurity, Socket and GitGuardian.
- Method: The attacker most likely obtains a maintainer's GitHub credentials through a leaked access token, for example from infostealer logs or data dumps. Under that identity he then pushes a file to the default branch that disguises itself as a security audit. The known file names are
security-audit.ymlandgithub_actions_security.yml. - Effect: The workflow starts manually or on any push, reads named repository secrets, scans the working tree and the full git history for 13 credential patterns and sends everything over HTTP to a hard-coded IP address (193.32.204[.]199).
- Scale: Socket names over 500 GitHub accounts that allegedly committed the workflow to tens of thousands of repositories since 7 October 2026. In one day one account populated 27 repositories first, eight hours later another populated 318. GitGuardian counted 772 public repositories of 373 users and organisations for 31 August to 30 September.
- What is sought includes GitHub secrets, AWS keys, API keys of Anthropic, OpenAI and OpenRouter, and GitHub and GitLab tokens. The earlier “GhostAction” campaign (September 2025) hit 817 repositories and exfiltrated 3,325 secrets.
- Status: At the time of the report no malicious package releases made with the stolen publishing credentials were known.
Background: worm in 400+ npm packages
This case dates from 6 August 2026 (Developer Tech, based on Microsoft Threat Intelligence), but it explains why the October findings should be taken seriously.
- Scale: more than 400 packages from unrelated maintainers, including keyv, flat-cache and cache-manager. Microsoft speaks of a variant of the Mini Shai-Hulud worm.
- Execution: The tampered archives start automatically through a
preinstallhook before installation finishes. Many versions were patch updates without matching commits, pull requests or tags: the attackers published the archives directly without changing the source repository. - Stolen are npm, GitHub, cloud and CI/CD credentials from environment variables, configuration files, shell histories, SSH keys and the memory of GitHub Actions runners. They are tested against npm, GitHub, AWS, Kubernetes and HashiCorp Vault.
- Spread: With a usable npm token the worm infects packages the account may change, raises the patch version and publishes. A second path targets workflows that use Trusted Publishing; according to Microsoft such packages can even carry valid provenance because they come from a genuine workflow identity.
- Persistence: The malware drops files such as
.claude/settings.json,.claude/setup.mjs,.vscode/tasks.jsonand.vscode/setup.mjsthat can restart it when Claude or Visual Studio Code is used later. A fallback component can react destructively if the monitored GitHub token is revoked. This belongs in your response planning (see checklist). - Exfiltration: encrypted (AES-256-GCM, key protected with RSA) to domains such as npm-cache[.]com, pypi-get[.]com and js-mirror[.]com, alternatively into a public GitHub repository with the description “Shai-Hulud: Here We Go Again”.
What the three cases have in common
This is my assessment, not part of the sources:
- The target is the account, not the code. Whether a name is taken over, a workflow injected or a package tampered with: the attacker needs rights that a developer has.
- Leaked credentials are the fuel. Infostealer logs and old tokens provide the way in, a topic I also cover in the post on ransomware and infostealers.
- Trust markers are no free pass. Even provenance can look genuine when the pipeline itself is compromised.
- Developer machines and CI are high-risk systems. The keys to cloud, repositories and publishing live there.
Checklist for developers and teams
- Check workflows: Search all repositories and branches (including forks and mirrors) for
security-audit.ymlandgithub_actions_security.yml, especially with changes since 31 August 2026. A hit means: assume compromise. - Rotate credentials: Renew everything such a workflow could reach, from an unaffected system. Revoking the GitHub token first without preparation is risky with the worm: according to Microsoft a destructive function can then trigger. Secure or rebuild the machine first, then revoke.
- Audit package bindings: Check trusted publisher entries in npm and recreate bindings after a rename, transfer or deletion.
- Do not pull new versions immediately: Microsoft points to the
min-release-agefeature in npm CLI 12. Pin versions, check lockfiles and transitive dependencies. - Restrict install scripts: According to Microsoft npm blocks unreviewed install scripts by default via
allowScripts;strict-allow-scriptsturns them into errors. Check whether that is active in your setup. - Clean caches: Purge npm/Yarn caches on developer and build machines. CI caches are not signed and can be poisoned.
- Rebuild suspicious machines: Anyone who installed an affected package with lifecycle scripts enabled counts as potentially compromised. Besides the system, rebuild build artifacts, base images and runners, and check
.claude/and.vscode/for unknown files. - Reduce rights: Review token permissions, workflow approvals, protected environments and unusual automated publishing. Use short-lived credentials instead of permanent tokens where possible.
- Secure accounts: Two-factor sign-in (ideally passkey or hardware key) for GitHub and npm. A leaked token alone should not be enough, and the rights behind it should be as narrow as possible.
If you want to know how exposed your own build and release chain is, you can have it tested. That is part of a test of the development environment.
Sources
- The Hacker News: GitHub Tightens npm Publishing After Flaw Left 1,500+ Packages Vulnerable to Hijacking
- Help Net Security: npm Trusted Publishing flaw exposed 1,500+ npm packages to takeover
- The Hacker News: Credential-Stealing GitHub Actions Workflows Planted in Tens of Thousands of Repositories
- Developer Tech: npm supply-chain attack hits 400+ packages and steals developer credentials
Note: Status as of 27 October 2026, based on four trade reports; I did not read the original publications of Bloom Security, StepSecurity, Socket, GitGuardian or Microsoft. Figures come from the researchers and may change. The assessment in “What the three cases have in common” and the notes on the order of revoking are my own judgement.