Malicious code in persona-ai-sdk (npm)
- GHSA-2v69-q2gc-qm5j
- MAL-2026-18463
Description
The package's declared main (index.mjs) re-exports personas.mjs, which at module top level imports cssVarMap from./cache-warm.mjs and invokes it in an 8-iteration loop over a hardcoded ID list. cache-warm.mjs is a ~280 KB single-line obfuscator.io-style string-array module whose decoded body references child_process, spawn, exec, net, eval, and dynamic import, while its header comment falsely identifies it as an 'auto-generated build cache manifest' for persona-ai-sdk@1.0.0. Three sibling files shipped at the tarball root (build-cache.mjs ~203 KB, cache-sweep.mjs ~281 KB, workspaces.js ~289 KB) use the same cover-story header, the same obfuscation shape with hex-named identifiers, and the same set of dangerous APIs (child_process/spawn/exec/net/eval). Legitimate build caches do not contain process-spawning or network primitives. Any consumer that imports persona-ai-sdk executes the obfuscated loader at require/import time with no user action beyond installation and import. Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
Text from the OSV record.
Recommendation
Remove the package and rotate any secret the machine that installed it could reach. There is no version to update to.
Affected
persona-ai-sdknpm
No versions listed
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.