{"id":"MAL-2026-20675","aliases":[],"title":"Malicious code in tavern-ai-sdk (npm)","originalDescription":" --- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (d9bd39419e14e3d9a7746b88d0724cf25261deca2acb64a7daa2ba5f5c504868) Package is advertised as a persona-JSON loader exposing getPersona/listPersonas/personaIds over 8 persona cards, but the published tarball additionally ships four large single-line hex-identifier obfuscated JS bundles (cache-warm.mjs ~296KB, build-cache.mjs ~203KB, cache-sweep.mjs ~300KB, workspaces.js ~288KB) and multi-platform native N-API binaries at native/{linux,darwin,win32}/{arm64,x64}/cache-probe.node. The main entry personas.mjs statically imports cache-warm.mjs, so the obfuscated code runs on require('tavern-ai-sdk'). The bundles reference createRequire, child_process, spawn, exec, and aws-prefixed strings — a code-execution and cloud-credential surface wholly unrelated to loading persona JSON. The cache-probe.node binaries are built from the open-source VMAware library (symbol../VMAware/src/vmaware.hpp, VMDetect::GetCallback) and probe for QEMU, VirtualBox, VMware, Hyper-V, KVM, Docker, WSL, Azure, GCE, AWS Nitro, Qihoo360 sandbox, ThreatExpert, Hybrid Analysis, BlueStacks and similar via SMBIOS/CPUID/dmidecode/ioreg/","severity":{"cvss":null,"vector":null,"label":null},"exploitation":{"kev":null,"epss":null,"exploitDb":null},"affected":[],"references":[{"url":"https://www.npmjs.com/package/tavern-ai-sdk/v/1.0.0","type":"package"}],"sources":[{"name":"osv","at":"2026-11-27T01:03:25.105Z","url":"https://osv.dev/vulnerability/MAL-2026-20675","license":"CC-BY 4.0","firstSeenAt":"2026-11-27T01:03:25.105Z"}],"firstSeenAt":"2026-11-27T01:03:25.105Z","publishedAt":"2026-11-27T00:16:53.000Z","modifiedAt":"2026-11-27T00:45:05.210Z"}