VYPR

npm · Malicious package advisory

Malware

gen-ai-opt-in

MAL-2026-6761

Malicious code in gen-ai-opt-in (npm)

Details


---
_-= Per source details. Do not edit below this line.=-_

## Source: amazon-inspector (3653831a01d3068b12688a9f6ae11926a1b1edde27f8f37a6c48f3f0dba99231)
On npm install, postinstall.js executes automatically and collects installer host identifiers (os.hostname(), os.userInfo().username) plus public IP/geo data fetched from ip-api.com (city, region, country, ISP, org), then transmits them as query-string parameters over plain HTTP to a hardcoded Burp Collaborator subdomain at p1r2d74iwjk057raam6myf7e258wzkt8i.oastify.com. The package ships no legitimate functionality — the tarball's only effect is the recon beacon. The name 'gen-ai-opt-in' combined with version 99.0.2 (an artificially inflated version number) and an empty description matches the dependency-confusion attack shape, where a public package is published to override an organization's internal package of the same name so that a compromised internal build resolves the attacker's copy and executes the postinstall.

## Source: ghsa-malware (371ed0f5f59f881d5fa2a296e7e3d44833f1ae46129da09714cab2edadcf440a)
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.

## Source: ossf-package-analysis (f727264d43e45f813a3ce1cc7cb7e59a763ea8a59f93a9af3593bdb40c8bb47b)
The OpenSSF Package Analysis project identified 'gen-ai-opt-in' @ 99.0.2 (npm) as malicious.

It is considered malicious because:

- The package communicates with a domain associated with malicious activity.

Compromised versions (3)

  • 99.0.2
  • 99.0.1
  • 99.0.0

Any computer that installed or ran a compromised version should be considered fully compromised. Rotate every secret on that machine from a clean environment.