What happened
A malicious SubQuery library release reached npm
- 1
Release changes
Changes recorded under a maintainer account altered the release workflow. The identity behind that account is unknown.
- 2
Package publication
The trusted release workflow published version 5.8.3. GitHub’s advisory identifies this version as malware.
- 3
Downstream risk
Analysis established what the package could do. No source identifies a downstream host from which credentials were taken.
Impact
The affected library was available through npm. Researchers found credential-collection capabilities in the distributed package. The public reports do not establish that it stole credentials from any particular installation.
Could this have been prevented?
Require independent approval for production releases
Bind the npm trusted publisher to a protected GitHub environment and require an independent reviewer before releases can proceed. That reviewer must be able to assess the artifact being approved. Trusted publishing by itself identifies an authorized workflow and cannot establish that its output is safe.
Incident control assessments
- 0
- Prevented
- 6
- Contained
- 1
- Not covered
How it could have been prevented
The same replay with the controls in place. Green marks where a step is refused, blue where it is bounded, and red where no control reaches it. Open a row to read the control, why it acts, and its caveat.
A malicious SubQuery library release reached npm
1 · Release changes
1 Contained1 Not covered2 · Package publication
2 Contained3 · Downstream risk
3 Contained3 on other cloudsKey facts
- StepSecurity recorded publication of @subql/common 5.8.3 at 11:56 UTC on October 5, 2026.
- The npm latest tag pointed to 5.8.3 when the researchers examined the registry.
- StepSecurity identified 19 of 77 reviewed SubQuery packages with direct or indirect dependencies on the library. This was a dependency count, not an installation or victim count.
- A project collaborator reported on October 10 that the compromised token had been deleted. The public evidence does not date npm’s removal of the release.
- The package contained code directed at AWS, Kubernetes and GitHub credentials. The public investigations do not establish access to a downstream account, cluster or repository.
Sources
Every fact in this breakdown comes from the public reporting below. The replay is a model of that reporting, not a reconstruction of the environment it describes.
- 1.SubQuery Ecosystem Compromise: Hidden Credential Theft and BackdoorsStepSecurity · Oct 5, 2026 · ResearchObserved activity, dates and limits of the investigation
- 2.[security] : Malicious release @subql/common@5.8.3 (postinstall credential stealer)SubQuery (GitHub repository subquery/subql) · Oct 10, 2026 · Vendor reportProject response and token deletion
- 3.Malware in @subql/commonGitHub Advisory Database · Oct 5, 2026 · AdvisoryMalware designation and affected version
The estate in the replay is illustrative and drawn at the level of attack stages; the victim's real environment is not public. Verdicts describe what a control does when it is in place before the incident. They are not an assessment of the victim's security program.