{"id":"MAL-2026-17506","revision":"e29cc90d99544df4a3db785ae90aa31f","records":[{"revision":"e29cc90d99544df4a3db785ae90aa31f","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-17506","aliases":[],"title":"Malicious code in hardhat-ftp (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (5e916c23a0efbd49d3cfcd5993957df7afbade3f454925d0672acc8c9f68245c)\nThe package's declared main entry index.js unconditionally requires./lib/config, a 4,499,968-byte obfuscator.io-packed file (26,234-entry string array, hex-renamed identifiers, control-flow flattening, top-level IIFE) that executes as soon as any consumer runs `require('hardhat-ftp')`. After string-array decoding the loader resolves to execSync and spawn sinks, and the package declares axios as a dependency, giving the import-time payload both outbound HTTP and local command-execution primitives with the concrete command targets concealed behind the obfuscation. The surrounding package is a cover: it is published under the name hardhat-ftp with a vulnerability-management description, but the README headers, badges, and ecosystem links are lifted from pinojs/pino, and the files under lib/ (proto.js, levels.js, transport.js, multistream.js) mirror the pino source tree. The name/README/code mismatch, the scale of the obfuscation, and the presence of exec+HTTP primitives inside the auto-loaded module match the masquerade-dropper pattern: installing or requiring this package triggers execution of concealed attacker-controlled code on the installer's host.\n","state":0,"publishedAt":"2026-10-04T23:28:14+00:00","modifiedAt":"2026-10-04T23:45:20.8248621+00:00","affected":[{"ecosystem":"npm","name":"hardhat-ftp","ranges":[],"versions":["2.0.1"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/hardhat-ftp/v/2.0.1"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-17506","license":"OSV · upstream source license applies","key":"osv:MAL-2026-17506","identifiers":["MAL-2026-17506"]},"retained":false,"historicalAffected":[]}],"coverage":[]}