Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
Malicious package

ts-ecronpm

ts-ecro is a confirmed malicious npm package (MAL-2026-5647) that typosquats a legitimate package to trick installs (malicious versions 0.0.5, 0.0.6). Do not install it — remove it immediately and rotate any exposed credentials.

Malicious code in ts-ecro (npm)

MAL-2026-5647
Immediate action
Remove the package, then rotate any secrets the build/runtime could reach.
npm uninstall ts-ecro

What this malware does

Package is published as 'ts-ecro' but ships a verbatim copy of big.js v7.0.1 with the original author's copyright, email, and GitHub repository URL — a typosquat/impersonation façade for the upstream big.js library. At module top-level, the entrypoint require()s a sibling attacker-controlled package and immediately invokes its from_str() method, executing arbitrary code from that dependency on every import. The CommonJS variant (big.js:606-608) loads 'websocket-slot' and calls doc.from_str().then(...).catch(...); the ESM variant (big.mjs:606-608) wraps require("parket-slot") + doc.from_str() in a try/catch that swallows errors so the import appears clean. package.json declares 'parket-slot': '^0.0.6' as a runtime dependency, ensuring the loader executes on a default install. The genuine big.js library has no such require call — the loader is appended on top of an otherwise-legitimate codebase to disguise the attack. Any project that installs and imports this package automatically runs whatever code parket-slot / websocket-slot ships, with attacker control over those packages' contents.

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.

Malicious versions

2 flagged
0.0.50.0.6

Indicators of compromise (SHA-256)

37901692194f47c987610aab18ef37d4361e8ab01efd1a8008876920dd8b8aa2
6c0bc0efa5cfcc82b1f5b92bdbe69263b1da4cd9430a12c3e115e32002deda7e
8f2e942dcd86b8cef2bd0eb8809553bdd339bfc9c30b23ed3908df264a28fac0
f7dba297ddf69a33859e42330e69aefaba884b2893aae47b98d531129c45d212
df2a8949f08aa95cbb792e388cbd5a4e4775ead2606277185203a77264f2389a

Detection & response playbook

Typosquat
  1. Find it

    Scan your lockfiles (package-lock.json, pnpm-lock.yaml, yarn.lock, requirements.txt, poetry.lock, etc.) and build artifacts for ts-ecro (2 malicious versions). O3 Security's supply-chain scanner checks every dependency against known-malicious package intelligence at install time and in CI, flagging ts-ecro across your stack and pipelines.

  2. If you installed it — respond

    ts-ecro is a typosquat — you almost certainly intended a legitimately-named package. Remove ts-ecro, install the correct package, and rotate any secrets exposed during the install since post-install scripts may have already run.

  3. Did it already run?

    If ts-ecro was ever installed, its post-install/runtime payload may have already executed. O3's L7 egress monitoring and runtime eBPF sensors detect the credential exfiltration or command-and-control callback after install and block the malicious outbound channel, so you catch and contain the actual compromise — not just the presence of the package.

  4. How O3 protects you

    O3 blocks ts-ecro before install through its supply-chain scanner, and if it has already run, detects and severs the exfiltration or C2 callback at runtime through L7 egress monitoring and eBPF.

Frequently asked questions

No. ts-ecro on npm has been identified as a malicious package (versions 0.0.5, 0.0.6 flagged). It should be removed immediately — do not install or keep it in your dependency tree.

Campaign

IN-MAL-2026-005741IN-MAL-2026-005744IN-MAL-2026-005743IN-MAL-2026-005742GHSA-cwjv-7gg4-fp86

References

Credits

  • Amazon Inspector · finder

Detect & block this

O3 blocks ts-ecro-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the malicious outbound activity and severs the channel.

Explore

ts-ecro (npm) malicious package — MAL-2026-5647 | O3 Security