@or-sdk/providers@0.3.8
Malicious code in @or-sdk/providers (npm)
Analysis
The package's preinstall hook (setup.mjs) downloads the Bun runtime from github[.]com/oven-sh/bun/releases/download/bun-v1.3.13 and uses it to execute a 727KB obfuscated script bundled as math_init.js. The script is obfuscated with a large encoded string array and a custom decoder, and contains eval, Function, and child_process usage. The package also depends on the sibling packages @or-sdk/base, @or-sdk/discovery, and @or-sdk/event-manager, which are known-malicious. Installing this package runs the obfuscated payload at install time via a downloaded runtime.
- analyzed by
- Leitwacht
- first seen
- Aug 4, 2026, 11:59 AM
- analyzed
- Aug 4, 2026, 05:48 PM
- weekly installs
- 1,397
Related advisories
- @or-sdk/base@0.44.6
- @or-sdk/sdk-api@0.29.4
- @or-sdk/event-manager@1.1.7
- @or-sdk/contacts@4.7.7
- @or-sdk/agents@4.21.5
- @or-sdk/druid@1.4.9
- @or-sdk/data-hub-svc@2.3.7
- @or-sdk/key-value-storage@0.28.8
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.