hardhat-kex@2.0.1
OpenSSF/OSV Malicious Advisory
imported 1mo ago · by OpenSSF/OSVOpenSSF/OSV advisory MAL-2026-17559 confirms this npm version as malicious.
Independent LPM AI assessment
SuspiciousIndependent AI assessment: suspicious. LPM AI assessed this version as suspicious; the assessments disagree.
Source inspection confirms concealed shell execution in an import-loaded file, leaving a concrete unresolved risk. A malicious blocking verdict would require establishing the decoded command or another concrete attack chain.
Independent scan evidence
public snapshot- package.json selects index.js as the entrypoint and declares only smoke scripts.
- index.js unconditionally loads lib/config.js on import.
- lib/config.js loads filesystem and operating-system modules and imports command execution functions through concealed module names.
- lib/config.js calls execSync with a command assembled from obfuscated string decoders; the command's purpose remains unresolved.
- No npm installation lifecycle hook or runtime self-dependency is declared.
- Inspected source does not establish a remote payload destination, credential export, or destructive command.
Source & flagged code
7 flaggedSource downloads or fetches remote code and executes it.
lib/config.jsView on unpkg · L1Findings
Affected versions and remediation
This report applies to hardhat-kex@2.0.1.
See all versions of hardhat-kex for other recorded verdicts.
- Avoid installing hardhat-kex@2.0.1. 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.