@or-sdk/key-value-storage@0.28.8
Malicious code in @or-sdk/key-value-storage (npm)
Analysis
The preinstall hook (setup.mjs) downloads the Bun runtime from github[.]com/oven-sh/bun releases and executes a bundled 727KB obfuscated script (math_init.js) at install time. math_init.js is obfuscated with a custom string-array decoder and contains eval/Function/child_process calls, forming a multi-stage dropper that runs arbitrary code during npm install. The package also depends on @or-sdk/base and @or-sdk/sdk-api, which are separately flagged as malicious. The legitimate SDK code in dist/ is intact, but the install-time payload is obfuscated and executes on every install.
- analyzed by
- Leitwacht
- first seen
- Aug 4, 2026, 11:57 AM
- analyzed
- Aug 4, 2026, 05:41 PM
- weekly installs
- 760
Related advisories
- @or-sdk/base@0.44.6
- @or-sdk/sdk-api@0.29.4
- @or-sdk/providers@0.3.8
- @or-sdk/sku-builder@2.5.3
- @or-sdk/account-settings@1.3.8
- @or-sdk/notifications@1.7.7
- @or-sdk/queue-manager@1.4.8
- @or-sdk/library-categories@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.