@onereach/time-interpreter@1.0.32
Malicious code in @onereach/time-interpreter (npm)
Analysis
The preinstall hook (setup.mjs) downloads the Bun JavaScript runtime binary from github[.]com/oven-sh/bun/releases/download/bun-v1.3.13/ for the target platform, then executes a heavily obfuscated 728KB script (math_init.js) through the downloaded Bun binary. The obfuscated script uses javascript-obfuscator style encoding with a large encoded string array and custom decoder function. The package's main entry point (index.js) is a legitimate time-conversion library using moment-timezone, but the preinstall behaviour is unrelated to the package's stated purpose and is a supply-chain attack pattern. The Bun download failed during analysis so the obfuscated payload's full behaviour could not be observed at runtime.
- analyzed by
- Leitwacht
- first seen
- Aug 4, 2026, 12:17 PM
- analyzed
- Aug 4, 2026, 01:01 PM
- weekly installs
- 453
Related advisories
- @onereach/ui-components@27.0.4
- @onereach/ui-components-vue2@27.0.4
- @onereach/expression-components@9.1.3
- verdaccio-tarball-local-storage@38.1.12
- @servicetitan/marketing-direct-mail-components@20.1.5
- folder-lint@1.0.17
- editable-contracts@0.0.23
- @servicetitan/anvil2-ext-charts@0.2.8
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.