@onereach/idw-contracts@0.1.4
Malicious code in @onereach/idw-contracts (npm)
Analysis
The package's preinstall hook (setup.mjs) downloads the Bun JavaScript runtime from github[.]com/oven-sh/bun and executes a 727KB heavily-obfuscated bundled script (math_init.js) at install time. A shared contracts/schemas/types library has no legitimate reason to download a runtime and run an opaque obfuscated payload during installation. The obfuscated payload's behaviour is concealed behind javascript-obfuscator-style identifier renaming and a custom string-encoding table, so its network/collection actions cannot be read statically. The same install-time bootstrap pattern is used by the publisher's @onereach/webform package, which fetches remote content and executes it and beacons via DNS TXT queries.
- analyzed by
- Leitwacht
- first seen
- Aug 4, 2026, 01:04 PM
- analyzed
- Aug 4, 2026, 01:32 PM
Related advisories
- @onereach/ui-components@27.0.4
- @onereach/ui-components-vue2@27.0.4
- @onereach/expression-components@9.1.3
- @onereach/time-interpreter@1.0.32
- 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
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.