Skip to content
supplychainattack.orgSupply chain attack incident catalog
containedcritical

Malware in npmjs_hardhat-common

Malware was distributed via the npmjs_hardhat-common package on npm. Any computer with this package installed should be considered fully compromised.

ShareXLinkedInHacker News
Disclosed
Last updated
Blast radius
Any system with the package installed
Ecosystems
Attack vectors
Affected entities
  • npmjs_hardhat-common

A malicious package named npmjs_hardhat-common was published to the npm registry. The package contained malware that grants full control of affected systems to an outside entity.\n\nAccording to the GitHub Advisory (GHSA-6w5w-56vc-rg6h), any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on affected computers should be rotated immediately from a different, uncompromised system.\n\nWhile the package should be removed, there is no guarantee that removal will eliminate all malicious software that may have been installed as a result of the initial compromise, given the level of system access the malware obtained.\n\nUsers should treat any system that installed this package as potentially fully compromised and take appropriate incident response measures.

Indicators of compromise

Packages
  • npmjs_hardhat-common

Remediation

  • Immediately remove the npmjs_hardhat-common package from all systems
  • Rotate all secrets, API keys, and credentials from a different, uncompromised computer
  • Assume full system compromise and perform forensic analysis or rebuild affected systems
  • Audit logs and monitor for unauthorized access or data exfiltration on affected systems
  • Check npm audit logs and dependency trees to identify all systems that may have installed this package

Sources

  1. GitHub Advisory GHSA-6w5w-56vc-rg6h · GitHub Advisory Database

Cite this entry

"Malware in npmjs_hardhat-common." supplychainattack.org, Supply Chain Attack Incident Catalog. Disclosed June 10, 2026; last updated June 10, 2026. https://supplychainattack.org/incident/malware-in-npmjs-hardhat-common-12ph99

Suggest a correction

Found an error or have a newer source? Corrections to factual errors take priority over new entries.

  1. containedcritical

    Malware in flow-lending

    The npm package flow-lending was found to contain malware, resulting in full system compromise of any computer with the package installed or running. GitHub Security Advisory GHSA-pgcr-8w67-72j9 was published on 2026-06-16.

    npmCompromised package
  2. containedcritical

    Malware in flow-lending-sdk

    Malware was discovered in the npm package flow-lending-sdk. Systems with this package installed or running are considered fully compromised, with potential for complete system takeover.

    npmCompromised package
  3. containedcritical

    Malware in janus-flow

    Malware was discovered in the npm package janus-flow, resulting in full system compromise of any computer with the package installed or running. All secrets and keys on affected systems should be rotated immediately from a different computer.

    npmCompromised package
  4. containedcritical

    Malware in ttspc-server-sample

    The npm package ttspc-server-sample contains malware that grants full control of affected systems. Any computer with this package installed or running should be considered fully compromised.

    npmCompromised package