Skip to main content
MalwarePublished Updated

aamirhafiz (npm) · Malicious Code

Affects aamirhafizSource GCVE Database

0

Malicious package : remove aamirhafiz and rotate any secrets on hosts that installed it.

Data as of 18 Nov 2026, 19:52 UTC

Classification

Malicious package

Published to npm · OSV MAL-2025-170610

What to do

Remove aamirhafiz 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
npmaamirhafizAffected
  • =1.0.0
Fixed in–

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

Description

The npm package 'aamirhafiz' version 1.0.0 is identified as malicious software involved in the tea.xyz token reward campaign. It contains autopublish scripts that automatically generate and publish derivative packages with randomized names to inflate developer reputation scores. The malicious payload modifies package.json files to remove private flags, changes version numbers, and continuously republishes variants, polluting the npm registry. Installation of this package may lead to full compromise of the affected computer, risking exposure of stored secrets and keys.

References

Community reviews

Loading reviews…