hardhat-devkit
This document describes the management of vulnerabilities for the project and all modules within the organization.
This report shows the evidence for hardhat-devkit@2.3.6. 2 of 2 known versions are blocked or flagged. The newest version, 2.0.1, is blocked. See all versions.
AI Security Review
scanned 1mo ago · by lpm-firewall-aiImporting the package runs a packed dropper that collects host identity, talks over axios, and executes decoded code with Function and execSync. The Pino-looking docs and empty middleware do not explain that behavior.
Decision evidence
public snapshot- The package is named hardhat-devkit but uses a stolen Pino vulnerability-policy description and logger keywords, not a Hardhat toolkit.
- index.js loads lib/config.js as soon as the package is imported.
- lib/config.js is one packed obfuscated line that builds and runs a Function from decoded strings.
- That loader requires axios and crypto, then posts with a Content-Type and validation header.
- Top-level code requires os, fs, execSync, and spawn, then calls execSync with concatenated strings.
- It fingerprints host, operating system, and username into a Utils helper.
- package.json has no preinstall, install, or postinstall scripts.
- Other lib files still look like leftover Pino logger source and are not the dropper.
Source & flagged code
7 flagged · loading sourceindex.js loads lib/config.js as soon as the package is imported.
index.jsView on unpkg · L4Source downloads or fetches remote code and executes it.
lib/config.jsView on unpkg · L1Findings
Affected versions and remediation
This report applies to hardhat-devkit@2.3.6.
The versions list below shows the verdict for each recorded version.
- Avoid installing hardhat-devkit@2.3.6. Remove it from direct dependencies and check your lockfile for transitive copies.
- Choose an independently verified alternative or release. This report does not establish that other versions are safe.
- If this version ran, investigate the affected machine and build environment. Rotate credentials it could access and rebuild from a trusted environment.
Evidence last updated: .
Source advisory published: .
Think this verdict is wrong? Dispute it on GitHub or read how reports are produced.