@basis-theory-elements/api-client@99.9.1
Malicious code in @basis-theory-elements/api-client (npm)
Analysis
This package is a version-squat and off-registry dependency lure: it publishes as @basis-theory-elements/api-client at version 99.9.1 so that it outranks the real @basis-theory/api-client during version resolution, while its own code does nothing. The tarball contains only two files (366 bytes): package.json, with an empty description and author, a default failing "test" script, and no lifecycle hooks; and index.js, which is a 35-byte stub containing only 'use strict'; module.exports = {};. The payload is displaced into the single dependency, "ltidisafe", which is specified as a raw URL rather than a registry version: hxxps://ltidi[.]storage[.]googleapis[.]com/depenconf/ltidisafe-4[.]0[.]9[.]tgz. Installing this package therefore downloads and installs code from a Google Cloud Storage bucket outside the npm registry, bypassing registry provenance, signature verification and audit tooling; the content of that tarball is arbitrary and is not described or referenced anywhere in the published package. The package has no repository, no README, no description and no test script that actually runs, and the scope adds an "-elements" segment to the real basis-theory organisation name while keeping the real package name intact.
- analyzed by
- Leitwacht
- first seen
- Nov 18, 2026, 03:36 PM
- analyzed
- Nov 18, 2026, 03:37 PM
Related advisories
- @rizzkezik/bailss@1.0.0
- @rizzkezik/bailss@1.2.0
- @rizzkezik/bailseys@6.7.10
- @silent404/baileys@7.0.4
- lianrouter@2.3.4
- @silent404/baileys@7.0.2
- vant@4.9.12
- vant@3.6.13
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.