Skip to main content
MalwarePublished

ai-analyzer (npm) · Malicious Code

Affects ai-analyzerSource GCVE Database

0

Malicious package : remove ai-analyzer and rotate any secrets on hosts that installed it.

Data as of 26 Oct 2026, 16:16 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-13934

What to do

Remove ai-analyzer 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

ProductAffectedFixed in
npmai-analyzerAffected
  • 1.0.0 – 1.0.19
20 affected builds
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

Description

The ai-analyzer npm package versions 1.0.14 through 1.0.19 contain malicious code that performs unauthorized data exfiltration during installation and runtime. The preinstall script leaks the installer's hostname and environment details to an external domain controlled by an offensive-security actor. Additionally, a postinstall script writes sensitive user and environment information to a temporary local file. The package's analyzeEmail() function sends caller-supplied content to a hardcoded external server without user control or consent, potentially exposing sensitive data.

References

Community reviews

Loading reviews…