Skip to content

[security] : Malicious release @subql/common@5.8.3 (postinstall credential stealer) #3047

Open

Description

@sailikhith-stepsecurity

Summary

@subql/common@5.8.3 (published 2026-10-05 11:56 UTC, currently the latest tag) contains a malicious payload that is not present in 5.8.2. It was published through the project's npm trusted publisher (GitHub Actions OIDC) from gitHead 506863d6fb82bd2714970cf8c6f1bf364374b009. This suggests the release pipeline or a commit feeding it may be compromised.

Please treat this as urgent: deprecate/unpublish 5.8.3, move latest back to 5.8.2, and rotate CI secrets.

REF:

What we found

Compared with 5.8.2, 5.8.3 adds:

  • package.json: "postinstall": "node ./dist/project/readers/manifest-cache.js"
  • New file dist/project/readers/manifest-cache.js (62,124 bytes)
  • dist/project/readers/index.js: __exportStar(require("./manifest-cache"), exports);, so a plain require('@subql/common') also triggers it

The new file holds an array MANIFEST_CACHE_SEED of 459 base64 strings. They are decoded with a rolling XOR (start key 0x5a) and gunzip, then run via new Function(...) in a detached process. The decoded 83 KB bundle:

  • Collects environment variables, gh auth token output, SSH keys, .npmrc, cloud credentials (AWS/GCP/Azure), Kubernetes and Vault secrets, crypto wallets and AI-agent configs
  • Sends the data encrypted (RSA-OAEP + AES-256-GCM) to https://ci-artifacts.dev/router
  • Uses stolen GitHub tokens to push a branch dependabot/github_actions/format/setup-formatter containing .github/workflows/codeql_analysis.yml, which dumps toJSON(secrets) to an artifact. The commit author is spoofed as github-advanced-security[bot].
  • Installs a reverse-shell/command implant that beacons to the same host

Indicators

  • Domain: ci-artifacts.dev
  • Tarball SHA-256: 031267ee37c5a84c25cb0542cbfeb49f30d5604305b0bdccdeafbedcbbe6849b
  • manifest-cache.js SHA-256: f0c8b0cde86b98a2869a22fd43ffcf61f1dcca252729e2be291e590e3dc5f49a
  • Lock file: $TMPDIR/tmp.ts018051808.lock
  • Branch name: dependabot/github_actions/format/setup-formatter

Related version

5.8.3-onf-rt1 (dist-tag redteam, published 2026-10-05 11:24 UTC, 32 minutes earlier) contains no payload. Please confirm whether it is an authorized test publish.

Suggested actions

  1. Deprecate/unpublish @subql/common@5.8.3 and reset the latest tag to 5.8.2.
  2. Review commit 506863d and the release workflow run that published 5.8.3 for unauthorized changes.
  3. Rotate the npm trusted-publisher configuration, GitHub tokens and all CI/Actions secrets for the repo and org.
  4. Audit the repo and org for branches or workflows named as above and for unexpected runs.
  5. Publish an advisory so users who installed 5.8.3 know to rotate credentials.

Guidance for anyone who installed 5.8.3

Treat the machine or CI runner as compromised. Rotate GitHub, npm, cloud, Kubernetes and Vault credentials, and check your repos for the branch and workflow above.

Activity

  1. ianhe8x commented on Oct 10, 2026

    @ianhe8x
    Collaborator

    Thanks for reporting. We have deleted the compromised token, and start the process to review this security leaks issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      ⌂ Proxy