@or-sdk/qna@3.4.4
Malicious code in @or-sdk/qna (npm)
T1059.007 · JavaScriptT1105 · Ingress Tool TransferT1027 · Obfuscated Files or InformationT1195.002 · Compromise Software Supply Chain
Analysis
The package's preinstall hook (node setup.mjs) downloads the Bun runtime and then executes a bundled 727KB obfuscated JavaScript payload (math_init.js) at install time. The payload is a custom-base64-decoded, dictionary-array-obfuscated loader using eval/Function constructors, unrelated to the package's declared QnA functionality. The package also depends on @or-sdk/base, which is known-malicious. Installing the package executes the obfuscated payload.
- analyzed by
- Leitwacht
- first seen
- Aug 4, 2026, 11:58 AM
- analyzed
- Aug 4, 2026, 03:08 PM
Related advisories
- @or-sdk/base@0.44.6
- @or-sdk/sdk-api@0.29.4
- @or-sdk/providers@0.3.8
- @onereach/orest-input-cli@1.18.3
- @onereach/or-browser-next@0.0.13
- @onereach/or-file-uploader-next@0.0.10
- @onereach/types-contacts-api@9.0.10
- @onereach/orest-cli@2.4.3
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.