npm · Malicious package advisory
Malwareharthat-api
GHSA-v6jw-whcj-vwfv
Malicious code in harthat-api (npm)
Details
**Severity:** Critical **Affected versions:** `= 1.3.1` The package contains a preinstall hook which silently executes a malicious script with downloader functionality. This is characteristic of an ongoing North Korean state-sponsored campaign. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/05b419acdcdd6e02782971da765f32a22a1aed8e/osv/malicious/npm/harthat-api/MAL-2024-8843.json)) **References:** - https://github.com/ossf/malicious-packages/blob/05b419acdcdd6e02782971da765f32a22a1aed8e/osv/malicious/npm/harthat-api/MAL-2024-8843.json - https://github.com/advisories/GHSA-v6jw-whcj-vwfv
Compromised versions (1)
- = 1.3.1
Any computer that installed or ran a compromised version should be considered fully compromised. Rotate every secret on that machine from a clean environment.