LWA-2026-10045 MAL-2026-11679 ↗ confirmed malware

@or-sdk/card-templates@2.2.7

Malicious code in @or-sdk/card-templates (npm)

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

Analysis

The package's preinstall hook (setup.mjs) downloads the Bun runtime from github[.]com/oven-sh/bun and executes a bundled 727KB obfuscated script (math_init.js) at install time. The script uses a custom string-array decoder and base-N encoding to hide its logic. A card-templates library has no legitimate reason to download a runtime and run a large obfuscated payload during installation; the payload's behaviour is concealed by the obfuscation.

analyzed by
Leitwacht
first seen
Aug 4, 2026, 11:58 AM
analyzed
Aug 4, 2026, 05:15 PM
weekly installs
173

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.