{"id":"MAL-2026-6552","summary":"Malicious code in insomnia-plugin-poc-m4gester (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (0eb7024d158c345559d9f130ba3a6b52563328467ec6bb560e196e5c7bc9b955)\npackage.json declares a postinstall lifecycle hook that runs a shell command writing a marker file to /tmp on `npm install` (`\"postinstall\": \"echo PWNED_BY_DEEPLINK \u003e /tmp/...\"`). The package ships no library code, no plugin implementation, and the description field is literally \"test\" — there is no advertised functionality to justify the install-time shell execution. The package name `insomnia-plugin-poc-m4gester` further self-identifies as a proof-of-concept exploit targeting the Insomnia REST client plugin namespace. Installing this package results in attacker-chosen shell execution on the installer's machine; the current payload is benign (a marker file write) but the mechanism is arbitrary code execution at install time and could trivially be swapped for a destructive or exfiltrating command in a future version.\n","modified":"2026-06-28T07:01:42.345287820Z","published":"2026-06-28T06:00:42Z","database_specific":{"malicious-packages-origins":[{"versions":["1.0.0"],"import_time":"2026-06-28T06:50:42.399950974Z","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"source":"amazon-inspector","sha256":"0eb7024d158c345559d9f130ba3a6b52563328467ec6bb560e196e5c7bc9b955","id":"IN-MAL-2026-007692","modified_time":"2026-06-28T06:00:42Z"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/insomnia-plugin-poc-m4gester/v/1.0.0"}],"affected":[{"package":{"name":"insomnia-plugin-poc-m4gester","ecosystem":"npm","purl":"pkg:npm/insomnia-plugin-poc-m4gester"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.0.0"],"database_specific":{"indicators":{"evidence_files":[{"path":"package.json","tlsh":"72d0a750e9a5342328cd126948774046af11450b02047e1413e714756a8b7faa4a7748","sha256":"5da68920b896a76fd5d803794e72852d76790a4ae2897b6c9bbadca33562ed18"}],"package_integrity":[{"hashes":{"sha512_sri":"sha512-R8e+YgdrMTfKEtfxJLjKSbS4HXlG+1pskgVgqGYJahM3pmhNHR7zbQJ9vOMi7PMYZMl4zfWAJRhSjJrjmQETvA==","sha1":"c36d86beb89b2fcfedb69c97ce292ebdbac82cc6"},"filename":"insomnia-plugin-poc-m4gester-1.0.0.tgz"}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/insomnia-plugin-poc-m4gester/MAL-2026-6552.json","cwes":[{"description":"The product contains code that appears to be malicious in nature.","cweId":"CWE-506","name":"Embedded Malicious Code"}]}}],"schema_version":"1.7.5","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}