LWA-2026-10043 MAL-2026-11696 ↗ confirmed malware

@or-sdk/graph@1.10.7

Malicious code in @or-sdk/graph (npm)

T1059.007 · JavaScriptT1105 · Ingress Tool TransferT1027 · Obfuscated Files or Information

Analysis

The package's preinstall hook (setup.mjs) downloads the Bun JavaScript runtime from github[.]com/oven-sh/bun and uses it to execute a 727KB obfuscated script (math_init.js) bundled in the package. The script is obfuscated with a large encoded string array and a custom decoder, and contains eval/Function-constructor and child_process invocations. The obfuscated payload is unrelated to the package's declared purpose as a graph-query SDK client; installing the package triggers this download-and-execute behaviour automatically.

analyzed by
Leitwacht
first seen
Aug 4, 2026, 11:59 AM
analyzed
Aug 4, 2026, 04:57 PM
weekly installs
140

Related advisories

browse all confirmed advisories →

Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.