MAL-2026-20196: Malicious code in character-ai-sdk (npm)

Published Nov 19, 2026
·
Updated

--- -= 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::qemufwcfg, VM::vboxmodule, VM::hypervisorbit, VM::smbiosvmbit, VM::dmidecode, VM::chassisvendor, VM::macaddresscheck), confirmed by native/LICENSE-node-vm-detect.txt. A persona-lookup SDK has no legitimate need for hypervisor/QEMU/VirtualBox/DMI/MAC-based sandbox detection, and the combination — heavy obfuscated loader reachable from the main entry, multiple identical-shape dropper siblings staged alongside it, and cross-platform anti-sandbox native addons — matches the shape of a staged, sandbox-evading dropper that executes on module load.

Affected Software

1 affected component
npm/character-ai-sdk=1.0.1, =1.0.0

Event History

Nov 19, 2026
Advisory Published
via OSV·06:54 AM
Data Sourced
via OSV·06:54 AM
DescriptionAffected Software

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203