VYPR

npm · Malicious package advisory

Malware

harthat-hash

GHSA-jcq9-76w9-wf7p

Malicious code in harthat-hash (npm)

Details

**Severity:** Critical

**Affected versions:** `= 1.3.3`

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-hash/MAL-2024-8844.json))

**References:**
- https://github.com/ossf/malicious-packages/blob/05b419acdcdd6e02782971da765f32a22a1aed8e/osv/malicious/npm/harthat-hash/MAL-2024-8844.json
- https://github.com/advisories/GHSA-jcq9-76w9-wf7p

Compromised versions (1)

  • = 1.3.3

Any computer that installed or ran a compromised version should be considered fully compromised. Rotate every secret on that machine from a clean environment.