Published on 7 October 2026
A single build on the wrong machine – and an attacker could have your GitHub credentials, AWS keys, SSH keys and cloud secrets in hand. That is exactly what makes the current case involving the npm library @subql/common so dangerous. On 5 October 2026, version 5.8.3 of this package was pushed to the globally used npm registry with hidden malware. The security firm StepSecurity analysed the tampered version and reaches an unmistakable conclusion: wherever this version was installed or even merely imported, the affected system must be regarded as fully compromised.
This article explains exactly what happened, who may be affected, how to check for it in your own environment – and which steps you need to take now.
This is not a classic coding error, but a confirmed supply-chain attack – that is, an attack via the software supply chain. Instead of exploiting a vulnerability in a product, attackers inject malicious code directly into a trusted software component that many other projects automatically pull in.
Specifically, on 5 October 2026 at 11:56 UTC, the malicious version @subql/common@5.8.3 was published on npm. The immediately preceding version 5.8.2 (published on 20 November 2025) serves in the analysis as the clean comparison version – it contains neither the malicious payload nor the installation hook required for it.
StepSecurity downloaded the published package archive, compared it with 5.8.2, and found two triggers for the malicious code:
require('@subql/common').This is particularly insidious: you don't even have to use the package deliberately. Merely installing it or loading it in code was enough to launch the malware.
The attackers exploited the project's official publishing route. SubQuery relies on npm Trusted Publishing via GitHub Actions. This procedure is actually considered a security improvement: it replaces long-lived npm access tokens with short-lived tokens bound to a specific automated workflow. The catch: it offers no protection when the workflow itself, or the artefact it publishes, is tampered with.
And that is exactly what happened. According to the analysis, a temporary release commit (506863d6fb82) immediately before publication pulled in an unverified archive from the external address https://ci-artifacts.dev/pkg/@subql-common-5.8.3.tgz. This replaced the previously cleanly built package with a tampered version.
In the malicious version, two mechanisms came together: the postinstall script called node ./dist/project/readers/manifest-cache.js, and in addition an internal file exported precisely this module – which is why a mere import was enough. The loader then unpacked multiply obfuscated JavaScript code (Base64-encoded, encrypted with rolling XOR and gzip-compressed) and executed it in a detached child process.
What this code then attempted to do reads like a checklist of all of a developer's valuable credentials:
.npmrc and .env files,kubeconfig files and wallet paths,gh auth token,The collected data was to be sent out encrypted to https://ci-artifacts.dev:443/router – this is called exfiltration. Beyond that, the payload had a channel for remote commands and a path for a reverse shell – that is, remote access in which the infected system actively calls out to the attacker and opens a command line for them.
Particularly devious: with sufficiently privileged GitHub tokens, the code could covertly create a disguised branch named dependabot/github_actions/format/setup-formatter as well as a workflow file .github/workflows/codeql_analysis.yml – camouflaged as a harmless code analysis – in order to siphon off the secret Actions secrets via an artefact.
Important context: all of these capabilities are substantiated by the technical analysis. However, as of 7 October 2026 there is no public evidence that the payload successfully stole data from any specifically named victim. No victim counts or affected data sets have been published.
The attack unfolded within a few minutes:
ci-artifacts.dev.latest, and rotating all secrets.latest points to 5.8.2 again; version 5.8.3 is no longer contained in the current version object.This rollback to 5.8.2, however, is not a documented, vendor-signed fix release, but merely a rollback to the verified comparison version. At the time of research, no public response from a SubQuery maintainer was visible in GitHub issue #3047.
For an SME with a pure website without its own Node.js development and without a SubQuery dependency, direct technical exposure is unlikely.
The case is highly relevant, by contrast, for:
The reason: numerous SubQuery packages could pull in the malicious version automatically via so-called dependency ranges – that is, via version specifications such as "any version from 5.x onwards". StepSecurity examined 77 discovered @subql packages and, as of the snapshot from 5 October 2026, found 19 current package versions with a potential path to @subql/common@5.8.3: 16 directly and 3 indirectly. This is not a number of affected companies, but a number of possible pull-in routes.
To put the general distribution into context: for @subql/common overall, OpenSourceMalware reports around 4,400 weekly and 303,300 total downloads. These figures apply to the package as a whole across its entire lifetime – not to the malicious version 5.8.3 and not as an infection count.
Important note first: do not start any installation, any import, or any npm ci/npm install in the suspect working directory before you have isolated the environment and checked the version. Because the postinstall script was not the only trigger.
grep -R -nE '@subql/common|5\.8\.3' package-lock.json npm-shrinkwrap.json yarn.lock pnpm-lock.yaml 2>/dev/null
npm ls @subql/common --all
@subql/cli, @subql/node-core, @subql/query, @subql/node-ethereum, @subql/node, @subql/node-solana and @subql/node-starknet. With open version ranges, always check the lockfile value of @subql/common.ci-artifacts.dev, for HTTPS calls to /router, and for the process path dist/project/readers/manifest-cache.js. A single call to /router may also be a harmless connectivity test – correlate the context.$TMPDIR/tmp.ts018051808.lock, and for unexpected, detached node processes. Caution: the absence of the lock file does not prove cleanup – the malware can delete it itself.dependabot/github_actions/format/setup-formatter, the file .github/workflows/codeql_analysis.yml, the commit message "Add CodeQL Analysis", the workflow name "Run Copilot", and the artefact format-results. Also check for subsequently deleted runs or branches in the audit logs.Indicators of Compromise (IoCs): ci-artifacts.dev; dist/project/readers/manifest-cache.js; $TMPDIR/tmp.ts018051808.lock; tarball SHA-256 031267ee37c5a84c25cb0542cbfeb49f30d5604305b0bdccdeafbedcbbe6849b; manifest-cache.js SHA-256 f0c8b0cde86b98a2869a22fd43ffcf61f1dcca252729e2be291e590e3dc5f49a.
If an install or import has been confirmed, treat the system like a potential full compromise. Merely uninstalling is not sufficient, because the detached worker may have continued running and credentials may already have been exfiltrated.
ci-artifacts.dev – at DNS, proxy and firewall level – and retrospectively investigate existing connections.overrides rule to 5.8.2 in the package.json, regenerate the lockfile in a clean environment with scripts disabled, and review the diff.StepSecurity expert Rohan Prabhu sums it up:
"Treat version 5.8.3 as unsafe. Prevent installation and import, block ci-artifacts.dev, and investigate systems where this version ran." (StepSecurity)
And the GitHub Advisory Database puts it even more plainly:
"Any computer that has this package installed or running should be considered fully compromised." (GHSA-9333-3c4x-x3h5)
The mere presence of @subql/common@5.8.3 is not yet a proven data breach. However, if the payload ran on a system holding personal data, database credentials, CI secrets or cloud accounts, the unauthorised access may constitute a notifiable personal data breach.
In that case, the controller must promptly investigate, contain and document the nature and scope. Under Art. 33 GDPR, the competent supervisory authority must be notified without undue delay and, where feasible, within 72 hours of becoming aware, provided there is a risk to the rights and freedoms of natural persons. Processors notify the controller without undue delay. Where a high risk is likely, the data subjects must also be notified under Art. 34 GDPR.
The guidelines of the European Data Protection Board (EDPB) make it clear: "awareness" is reached as soon as there is a reasonable degree of certainty that a security incident has led to compromised personal data – a brief initial investigation must begin without delay. Important: under Art. 33(5), the incident must be documented internally, even if no notification is made.
The risk of fines depends on the individual case. Breaches of Art. 32 to 34 can be sanctioned under Art. 83(4) with up to EUR 10 million or 2% of worldwide annual turnover; more serious breaches under Art. 83(5) with up to EUR 20 million or 4%. These are upper limits, not an automatic penalty – and not legal advice for an individual case. For the SubQuery case itself, no fine or confirmed data breach had been published as of the cut-off date.
This incident is part of a growing number of npm supply-chain attacks. For scale comparison – not as a direct connection: in the npm "Shai-Hulud" incident in September 2025, CISA and CERT/CC documented over 500 compromised packages. Both cases show the same pattern: theft of credentials and abuse of CI/CD and postinstall mechanisms. For the SubQuery case, however, a comparable scale is not substantiated.
The risk is critical wherever 5.8.3 was installed or imported: from a single build or developer host, the combination of credential theft, cloud access, encrypted exfiltration and remote-command capability can give rise to an organisation-wide follow-on incident. At the same time, it holds true that the public reach of the actual damage must not be claimed beyond the evidence – successful data exfiltrations from named victims have not been documented to date.
The clear course of action for development teams and agencies is therefore: check whether the version appeared in the dependency tree – and, when in doubt, respond as you would to a full compromise. Pure website operators without Node.js development can breathe a sigh of relief, but should ask any contracted service providers whether they might be affected. In the modern software supply chain, trust is good – but the controlled, time-delayed adoption of new package versions and the verification of specific lockfile entries are better.