Skip to main content
Back
IntrusionSaaS
3 min read

A malicious SubQuery library release reached npm

Victim
SubQuery, publisher of the affected npm package
When
Oct 5, 2026Disclosed Oct 5, 2026
Entry
SubQuery’s trusted release process published a modified library. The account associated with repository changes does not identify the person who controlled it.

On October 5, 2026, the SubQuery project’s trusted release process published a malicious version of its common library. StepSecurity found code capable of collecting credentials from developer machines and build systems. GitHub lists version 5.8.3 as affected, and the public evidence does not identify a compromised downstream host.

What happened

Internet
Release changes
Package publication
Downstream risk
Project repository
Trusted release
Package consumers

A malicious SubQuery library release reached npm

  1. 1

    Release changes

    Changes recorded under a maintainer account altered the release workflow. The identity behind that account is unknown.

  2. 2

    Package publication

    The trusted release workflow published version 5.8.3. GitHub’s advisory identifies this version as malware.

  3. 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.

Internet
Release changes
Package publication
Downstream risk
Project repository
Trusted release
Package consumers

A malicious SubQuery library release reached npm

1 · Release changes

1 Contained1 Not covered

2 · Package publication

2 Contained

3 · Downstream risk

3 Contained3 on other clouds

Key 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. 1.
    SubQuery Ecosystem Compromise: Hidden Credential Theft and BackdoorsStepSecurity · Oct 5, 2026 · ResearchObserved activity, dates and limits of the investigation
  2. 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. 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.

More cloud attack breakdowns

All breakdowns