Skip to content

MAL-2025-190839 Malicious code in create-hardhat3-app (npm)

Unknown
Published
Updated
Exploit status
No public exploit known

Description


-= Per source details. Do not edit below this line.=-

Source: amazon-inspector (a5a1dad1ef411b38a2b87787581837e9c9f5a26fff790d14057d04ca67c06ddc)

The package create-hardhat3-app was found to contain malicious code.

Source: ghsa-malware (c954b0cabe929a310d28d077f4c3c62af90a694bf1a1a7cec092a2247f225b1b)

Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.

Source: google-open-source-security (d9428e2899f9a69c201dcec3ae0f0c9664dd4ebaf5725c1eb6dde088e8896e02)

This package was compromised by the Sha1-Hulud: The Second Coming NPM worm.
The malicious payload steals tokens and credentials and publishes them to
GitHub. The worm will propogate itself to NPM packages the user owns and
establish persistence is a GitHub action.
The package may also destroy the user's home directory.

Upgrade path

1 package: 0 fixed.

PackageAffectedFixed inStatus
npm create-hardhat3-app(npm) = 1.1.1; = 1.1.2; = 1.1.3; = 1.1.4 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
npm create-hardhat3-app(npm) = 1.1.4 No fix listed
npm create-hardhat3-app(npm) = 1.1.3 No fix listed
npm create-hardhat3-app(npm) = 1.1.2 No fix listed
npm create-hardhat3-app(npm) = 1.1.1 No fix listed

References