@or-sdk/mcp-tools@0.5.4
Malicious code in @or-sdk/mcp-tools (npm)
T1059.007 · JavaScriptT1105 · Ingress Tool TransferT1027 · Obfuscated Files or InformationT1195.002 · Compromise Software Supply Chain
Analysis
The package runs a preinstall hook (node setup.mjs) that downloads the Bun runtime from github[.]com/oven-sh/bun 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-constructor and child_process usage. The package also depends on @or-sdk/base, a known-malicious package. Installing this package executes the obfuscated payload on every install.
- analyzed by
- Leitwacht
- first seen
- Aug 4, 2026, 11:57 AM
- analyzed
- Aug 4, 2026, 03:51 PM
- weekly installs
- 96
Related advisories
- @or-sdk/base@0.44.6
- @or-sdk/sdk-api@0.29.4
- @or-sdk/providers@0.3.8
- @or-sdk/source@2.1.7
- @servicetitan/anvil-token@0.4.4
- @or-sdk/tags@1.1.7
- @or-sdk/transcripts@1.2.7
- @or-sdk/identifiers@0.27.8
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.