rotateit

All incidents

Malicious @subql/common 5.8.3 on npm steals credentials and opens a remote shell

Disclosed Oct 5, 2026 · updated Oct 30, 2026 · critical · Active

A SubQuery npm package stole developer and CI keys.

Are you affected?

The free scanner that answers this opens soon. Until then, the steps below work by hand.

What happened

A SubQuery npm release steals keys and opens a shell. StepSecurity says @subql/common 5.8.3, published on 2026-10-05, carries a hidden payload that collects credentials and supports remote shell access; it is OSV MAL-2026-17571. The release commit downloads an archive from ci-artifacts.dev and replaces packages/common before publishing, from a temporary branch, not from main. A postinstall script starts a detached worker, and importing the package starts it too, so disabling install scripts is not enough. It reads .npmrc, .env, AWS credentials, SSH keys, kubeconfig, cloud caches, wallet paths and AI-tool configuration such as .claude.json, the whole process environment and the gh CLI token; on Linux GitHub Actions runners it tries to read runner memory for secrets. It tries AWS Secrets Manager and SSM in 17 regions, Kubernetes secrets and Vault, and uses GitHub tokens with the workflow scope to try to add a secret-stealing workflow to up to 100 repositories. Parent packages such as @subql/cli, @subql/node-core and @subql/query allow 5.8.3 through their version ranges.

Exposure starts
2026-10-05
Exposure ends
Not known yet (the sources do not say when 5.8.3 was removed)
Confidence
medium
Scope
every credential readable by a process that installed or imported @subql/common 5.8.3, including CI runner secrets, and repositories reachable with a stolen GitHub token that has the workflow scope

What to do, in this order

  1. Exclude @subql/common 5.8.3 everywhere, including transitive paths and lockfiles

    StepSecurity's first step; parent packages allow 5.8.3 without a new release of their own.

  2. Isolate hosts and runners that installed or imported it, preserve process and network evidence, and rebuild them from trusted images

    StepSecurity's second step; the detached worker beacons for remote commands, so it would see credentials created on that host.

  3. From a clean machine, revoke GitHub tokens (including the gh CLI token) and npm tokens, then look for an injected codeql_analysis.yml workflow

    StepSecurity says GitHub tokens with the workflow scope are used to add a secret-extraction workflow to other repositories. Advisory inference from the isolation step is to rotate from a clean machine.

    github_pat, github_oauth_token, github_fine_grained_pat, npm_token

  4. Cloud, Kubernetes, Vault and SSH credentials, CI secrets and every other secret the process could read

    StepSecurity says to revoke and rotate credentials available to affected processes, naming CI secrets and cloud, GitHub, npm, SSH, Kubernetes and Vault credentials.

    aws_access_key_id, aws_secret_access_key, private_key, anything else stored there

  5. Block ci-artifacts.dev and review GitHub Actions and cloud secret-access logs

    StepSecurity's fourth step.

Notes

  • StepSecurity says 5.8.3-onf-rt1, a canary published the same day, has the same application code as 5.8.2 and should not be listed as carrying the payload.
  • StepSecurity's analysis is static: it describes attempted behavior and did not observe a successful shell session. It does not report confirmed victims.
  • The branch events name the GitHub account ianhe8x; StepSecurity says this does not establish who controls the account or whether the activity was authorized.
  • SubQuery has not published a statement; StepSecurity says issue 3047 was opened in the SubQuery repository. TODO link a maintainer notice once one is on an allowlisted host.

How to tell if you’re affected

  • @subql/common 5.8.3 in a lockfile or node_modules
  • dist/project/readers/manifest-cache.js in the installed package
  • A tmp.ts018051808.lock file in the OS temp directory
  • Connections to ci-artifacts.dev
  • A new .github/workflows/codeql_analysis.yml or a branch dependabot/github_actions/format/setup-formatter with a format-results artifact

Sources

Rotating the keys

Pro, $49 a year when it opens, plans the rotation of each affected key for this incident, in this order. Automatic rotation is in testing and included.

One email when it opens. Stored: your email, whether you confirmed, and when you signed up. We send a confirmation link first.

By hand, free: the steps above.