Repository navigation
Description
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:
- https://www.stepsecurity.io/blog/subql-ecosystem-compromised
- https://app.stepsecurity.io/oss-security-feed/@subql/common?version=5.8.3
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 plainrequire('@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 tokenoutput, 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-formattercontaining.github/workflows/codeql_analysis.yml, which dumpstoJSON(secrets)to an artifact. The commit author is spoofed asgithub-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.jsSHA-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
- Deprecate/unpublish
@subql/common@5.8.3and reset thelatesttag to 5.8.2. - Review commit 506863d and the release workflow run that published 5.8.3 for unauthorized changes.
- Rotate the npm trusted-publisher configuration, GitHub tokens and all CI/Actions secrets for the repo and org.
- Audit the repo and org for branches or workflows named as above and for unexpected runs.
- 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
ianhe8x commentedon Oct 10, 2026
Thanks for reporting. We have deleted the compromised token, and start the process to review this security leaks issue.