npm · Malicious package advisory
Malwareinherent_swordfish_requirement
GHSA-54qv-g89g-95rj
Malicious code in inherent_swordfish_requirement (npm)
Details
**Severity:** Critical **Affected versions:** `> 0` ## Source: amazon-inspector (e116f1278ada754f73baaa808bce6e037002286c0be9f803986605e2e234511a) 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 (some variants are also in English), 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/inherent_swordfish_requirement/MAL-2025-95023.json)) **References:** - https://github.com/ossf/malicious-packages/blob/05b419acdcdd6e02782971da765f32a22a1aed8e/osv/malicious/npm/inherent_swordfish_requirement/MAL-2025-95023.json - https://github.com/advisories/GHSA-54qv-g89g-95rj
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.