{"id":"MAL-2026-12396","revision":"2d4cf224a6144a50bb9f9a6fc9523d2c","records":[{"revision":"2d4cf224a6144a50bb9f9a6fc9523d2c","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-12396","aliases":[],"title":"Malicious code in log-min (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (5dc78815e8c40947273929a7224aa04230de911771e62580045fb8bb213468c9)\nThe package publishes as 'log-min' with a description claiming it is a JavaScript library for the Theta Blockchain, while its README identifies the project as 'chain-sdk-js' — an impersonation of the Theta chain-sdk-js SDK. package.json declares postinstall 'node src', which loads src/providers/BaseProvider.js. That module's top-level IIFE imports an opaque blob 'desKey' from the 'thedata' npm dependency, DES-decrypts it with the hardcoded password 'hydra', spawns a detached 'node' child process with piped stdin and ignored stdio, writes the decrypted code into the child's stdin, and unrefs the child so it survives the installer. The identical decrypt-and-exec pattern is also present at the top level of the shipped CJS bundle dist/log-min.cjs.js, so the dropper fires both at 'npm install' via the postinstall hook and whenever any consumer require()s the package. The executed bytes originate in a separate dependency ('thedata') and are not present in the log-min tarball, giving the author of that dependency arbitrary code execution on any machine that installs or imports log-min.\n","state":0,"publishedAt":"2026-08-05T12:35:07+00:00","modifiedAt":"2026-08-05T13:35:34.7505305+00:00","affected":[{"ecosystem":"npm","name":"log-min","ranges":[],"versions":["1.0.13"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/log-min/v/1.0.13"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-12396","license":"OSV · upstream source license applies","key":"osv:MAL-2026-12396","identifiers":["MAL-2026-12396"]},"retained":false,"historicalAffected":[]}],"coverage":[]}