npm · Malicious package advisory
Malwareharthat-chain
GHSA-gwjq-28h7-rwm5
Malicious code in harthat-chain (npm)
Details
**Severity:** Critical **Affected versions:** `= 4.1.2` 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-chain/MAL-2024-7841.json)) **References:** - https://github.com/ossf/malicious-packages/blob/05b419acdcdd6e02782971da765f32a22a1aed8e/osv/malicious/npm/harthat-chain/MAL-2024-7841.json - https://github.com/advisories/GHSA-gwjq-28h7-rwm5
Compromised versions (1)
- = 4.1.2
Any computer that installed or ran a compromised version should be considered fully compromised. Rotate every secret on that machine from a clean environment.