{"id":"MAL-2026-13609","revision":"a052f5da451e45de9a6c5ea6e99d8471","records":[{"revision":"a052f5da451e45de9a6c5ea6e99d8471","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-13609","aliases":[],"title":"Malicious code in hardhat-set (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (7cf6b9d0ee4a23bfab6e7a3c21f69a36e0655019cf1dd602f93760e233c7f701)\nThe package is published as 'hardhat-set' but its README.md, docs/, and index.d.ts are copied verbatim from the unrelated pino logger project (github.com/pinojs/pino), while package.json declares author 'Robert King <hello@jsonspack.com>' with bugs URL 'https://jsonspack.com/issues'. index.js executes `const config = require('./lib/config')` at load time; lib/config.js is a 4,060,622-byte single-line file packed with obfuscator.io (23,931-entry rotated string array, RC4/base64 string decoder, control-flow flattening, self-defending checks) and runs a top-level IIFE on require. No other file in the package references config's exports, and pino itself contains no such module. The combination of a name/README mismatch (pino cover story on a package named after Hardhat), an unrelated author domain, and a multi-megabyte obfuscated blob that self-executes on import is a masquerade/typosquat delivering a hidden payload to anyone who installs or requires the package.\n","state":0,"publishedAt":"2026-08-07T12:57:29+00:00","modifiedAt":"2026-08-07T13:49:47.2926604+00:00","affected":[{"ecosystem":"npm","name":"hardhat-set","ranges":[],"versions":["2.21.0"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/hardhat-set/v/2.21.0"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-13609","license":"OSV · upstream source license applies","key":"osv:MAL-2026-13609","identifiers":["MAL-2026-13609"]},"retained":false,"historicalAffected":[]}],"coverage":[]}