@onereach/ts-memoize@1.0.2
Malicious code in @onereach/ts-memoize (npm)
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
- @onereach/ui-components@27.0.4
- @onereach/ui-components-vue2@27.0.4
- @onereach/expression-components@9.1.3
- @ornikar/eslint-config-typescript-nestjs@24.0.1
- @ornikar/eslint-config-typescript-react@24.0.1
- bigops-create-manifest@35.2.4
- bigops-cobrowsing-client@35.1.9
- bigops-chat-transfer@35.3.6
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.