LWA-2026-7698 MAL-2026-11658 ↗ confirmed malware

@onereach/ts-memoize@1.0.2

Malicious code in @onereach/ts-memoize (npm)

T1195.002 · Compromise Software Supply ChainT1059.007 · JavaScriptT1027 · Obfuscated Files or InformationT1105 · Ingress Tool Transfer

Analysis

@onereach/ts-memoize@1.0.2 is a trojanized version of a legitimate TypeScript memoization decorator. The package no longer ships the memoization code; instead, the preinstall hook (setup.mjs) downloads the Bun JavaScript runtime from github[.]com/oven-sh/bun and executes a 727KB Bun-compiled payload file (math_init.js) at install time. The package.json exports point to dist/ files that do not exist in the tarball. The payload is a compiled binary blob containing eval, Function-constructor, and child_process invocations with a custom decoder, making the payload's full behaviour opaque to static analysis.

analyzed by
Leitwacht
first seen
Aug 4, 2026, 10:39 AM
analyzed
Aug 4, 2026, 10:41 AM

Related advisories

browse all confirmed advisories →

Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.