{"id":"MAL-2026-20196","aliases":[],"title":"Malicious code in character-ai-sdk (npm)","originalDescription":" --- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (e6af43ad88e14f748ddb331c356e9eca8285d02e9982c15a3ebc2e5c075183d8) character-ai-sdk@1.0.0 presents itself as a persona/memory SDK but its main entry (index.mjs → personas.mjs) top-level imports./cache-warm.mjs, a ~300 KB obfuscator.io-style blob (hex-renamed string array of base64+XOR entries) with no library-shaped exports. Decoded property-access artifacts in the blob reference `process.exit`, `process.pid`, hostname, and child-process APIs, consistent with runtime-resolved process control and host enumeration executed on `require`/`import`. Three additional obfuscated siblings of the same shape (build-cache.mjs ~200 KB, cache-sweep.mjs ~290 KB, workspaces.js ~280 KB) are staged next to the main-reachable loader. The tarball also ships platform-specific native addons at native/{linux,darwin,win32}/{x64,arm64}/cache-probe.node whose exported symbols are a vendored VM-detection library (VMDetect, VM::qemu_fw_cfg, VM::vbox_module, VM::hypervisor_bit, VM::smbios_vm_bit, VM::dmidecode, VM::chassis_vendor, VM::mac_address_check), confirmed by native/LICENSE-node-vm-detect.txt. A persona-lookup SDK ","severity":{"cvss":null,"vector":null,"label":null},"exploitation":{"kev":null,"epss":null,"exploitDb":null},"affected":[],"references":[{"url":"https://www.npmjs.com/package/character-ai-sdk/v/1.0.1","type":"package"},{"url":"https://www.npmjs.com/package/character-ai-sdk/v/1.0.0","type":"package"}],"sources":[{"name":"osv","at":"2026-11-19T07:54:25.331Z","url":"https://osv.dev/vulnerability/MAL-2026-20196","license":"CC-BY 4.0","firstSeenAt":"2026-11-19T07:21:33.702Z"}],"firstSeenAt":"2026-11-19T07:21:33.702Z","publishedAt":"2026-11-19T06:54:50.000Z","modifiedAt":"2026-11-19T07:15:09.791Z"}