npm · Malicious package advisory
Malwareinstitutional_swordtail_z3n
GHSA-7vxc-gv6f-xgf4
Malicious code in institutional_swordtail_z3n (npm)
Details
**Severity:** Critical **Affected versions:** `> 0` ## Source: amazon-inspector (d4c02ad772dab6c11cdae2194769e8b827cb5153a6196876f60b9e3337addd13) This package appears to be part of the tea.xyz token reward campaign that flooded npm. These packages typically contain autopublish scripts (auto.js, autopublish.js, autopublish2.js, autopublish3.js) designed to automatically generate and publish derivative packages with randomized names to inflate developer reputation scores for tea protocol token rewards. The malicious payload modifies package.json to remove private flags, changes version numbers, generates random Indonesian-themed package names, and continuously republishes variants to pollute the npm registry. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/05b419acdcdd6e02782971da765f32a22a1aed8e/osv/malicious/npm/institutional_swordtail_z3n/MAL-2025-60689.json)) **References:** - https://github.com/ossf/malicious-packages/blob/05b419acdcdd6e02782971da765f32a22a1aed8e/osv/malicious/npm/institutional_swordtail_z3n/MAL-2025-60689.json - https://github.com/advisories/GHSA-7vxc-gv6f-xgf4
Compromised versions (1)
- > 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.