@or-sdk/contacts@4.7.7
Malicious code in @or-sdk/contacts (npm)
T1059.007 · JavaScriptT1027 · Obfuscated Files or InformationT1105 · Ingress Tool Transfer
Analysis
The package's preinstall hook (`node setup.mjs`) downloads the Bun JavaScript runtime and uses it to execute a bundled 727KB obfuscated payload (`math_init.js`) at install time. The payload is obfuscated with a custom string-array decoder and is opaque to inspection; executing a large obfuscated script during package installation is not part of the package's declared contacts-SDK functionality. The package also depends on other packages flagged as malicious. No network endpoint was extractable from the obfuscated payload.
- analyzed by
- Leitwacht
- first seen
- Aug 4, 2026, 11:57 AM
- analyzed
- Aug 4, 2026, 05:46 PM
- weekly installs
- 663
Related advisories
- @or-sdk/base@0.44.6
- @or-sdk/sdk-api@0.29.4
- @or-sdk/providers@0.3.8
- @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
- @or-sdk/sku-builder@2.5.3
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.