Protet Intel / npm

Is @basis-theory-elements/api-client malicious?

Yes. Protet confirmed 1 version of @basis-theory-elements/api-client as malicious

First confirmed on 2026-11-18.

Affected versions

VersionConfirmedProtet record
99.9.12026-11-18PROTET-NPM-2026-249

What it does

@basis-theory-elements/api-client 99.9.1 is a dependency-confusion package with an inflated version number and no code of its own (index.js exports an empty object; the 0.0.0-stage placeholder published four minutes earlier is inert and not listed). It declares a single dependency, ltidisafe, as a tarball URL outside the npm registry (https://ltidi.storage.googleapis.com/depenconf/ltidisafe-4.0.9.tgz). That tarball's preinstall script runs node test.js with all output discarded. The script reads the OS user name, host name and home directory, hex-encodes each, and sends each one as the leading label of a cleartext HTTP GET to basis-theory-elements.3z3m8pklr6jii5uhsorwmxf0trzlnbb0.oastify.com, a Burp Collaborator out-of-band callback host, so the values leave the machine through the DNS lookup alone even if the HTTP request fails. It runs on install without the package being imported. The script collects the machine's non-internal IPv4 addresses but does not send them. The name imitates the @basis-theory vendor namespace; the package belongs to the same campaign as @clickwraps/fetch (MAL-2026-20119), @clikwraps/navigate and react-native-datepickerror, which use the same payload with per-package callback hosts. The payload is hosted outside the registry, so the publisher can change it without a new npm release. Remove the package, treat any machine that installed it as having disclosed its host identity, and block the callback and tarball hosts on build hosts.

Other reports

What to do if you installed it

  • Remove the package from every project that uses it, directly or through another dependency.
  • Pin a clean version if you need the package: one that is not listed above and that you have checked yourself, or replace the package. A version missing from this page is not cleared.
  • Check your lockfiles (package-lock.json, yarn.lock, pnpm-lock.yaml) for the affected versions, including as a transitive dependency, and in CI caches.
  • Rotate credentials that were reachable from any machine or build that installed it: npm and GitHub tokens, cloud keys, SSH keys, and secrets in environment variables or CI settings.

Status history

  • 2026-11-18: 99.9.1 named by Protet Intel

Want to know if your own builds pull packages like this? Add the Protet GitHub Action.

Think this is wrong? Write to hello@protet.io and we will look at it. Feeds: NDJSON, Atom. How Protet Intel works.