LWA-2026-10064 MAL-2026-11668 ↗ confirmed malware

@or-sdk/agents@4.21.5

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

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

Analysis

The package's preinstall hook (setup.mjs) runs on install: it detects the platform/architecture, downloads the Bun JavaScript runtime from the oven-sh GitHub releases, and uses it to execute a bundled 727KB obfuscated script (math_init.js). The script is obfuscated with a large encoded string array and a custom base-N decoder, and contains eval, Function-constructor, and child_process calls, indicating it executes dynamically-decoded code. The package also depends on three sibling packages (@or-sdk/base, @or-sdk/bots, @or-sdk/deployer) that are known-malicious. The exact command-and-control endpoints are encoded inside the obfuscated payload and are not visible in the plaintext source.

analyzed by
Leitwacht
first seen
Aug 4, 2026, 11:57 AM
analyzed
Aug 4, 2026, 05:45 PM
weekly installs
1,120

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.