character-ai-sdk (npm) · Malicious Code
Affects character-ai-sdkSource GCVE Database
Malicious package : remove character-ai-sdk and rotate any secrets on hosts that installed it.
Data as of 19 Nov 2026, 07:51 UTC
Malicious package
Published to npm · OSV MAL-2026-20196
What to do
Remove character-ai-sdk from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| npmcharacter-ai-sdk | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
The character-ai-sdk npm package version 1.0.0 and 1.0.1 contains heavily obfuscated code that executes upon module import. It includes large obfuscated blobs referencing process control and host enumeration APIs, alongside native addons designed to detect virtual machines and sandbox environments. These behaviors are inconsistent with the package's stated purpose as a persona/memory SDK and indicate malicious intent to evade analysis and potentially execute harmful actions on the host system.