{"id":"MAL-2026-20953","summary":"Malicious code in @onyxim/math (npm)","details":"@onyxim/math 1.0.2 (npm user villelaaksonen, published 2026-05-27) is a republished copy of the js-math library. Its only change from 1.0.1, published 37 minutes earlier, replaces the dependency javascript-natural-sort with tiny-naturalsort, a malicious package (MAL-2026-5030). Installing @onyxim/math 1.0.2 therefore installs tiny-naturalsort, whose install step runs setup.cjs. In the OpenSSF sandbox this contacted 23.254.164[.]92:8000, started a detached node payload pointed at 23.254.164[.]123:443, and installed a systemd user service (nvmconf.service, ~/.config/systemd/nvmconf/protocal.cjs) for persistence. This matches the dayjs-typosquat campaign (easy-day-js MAL-2026-5979, caspian-day-js MAL-2026-5892). The package works as a carrier that hides the malicious dependency behind a plausible maths library. The package's own code is clean: it is a carrier for the malicious dependency, which npm has since replaced with a security placeholder.","modified":"2026-12-02T04:00:07.822519317Z","published":"2026-12-01T00:00:00Z","database_specific":{"iocs":{"files":[{"digests":{"sha256":"a3a3e7be8e0790146961d469abe3db58c44d13d7a4f33879810821b31df7a3f0"},"note":"malicious file (v1.0.2)","paths":["package/package.json"],"source":"PACKAGE_ARCHIVE"}],"ips":["23.254.164.123","23.254.164.92"],"urls":["https://23.254.164.92:8000/update/"]}},"references":[{"type":"EVIDENCE","url":"https://storage.googleapis.com/ossf-malware-analysis-results/npm/@onyxim/math/1.0.2.json"}],"affected":[{"package":{"name":"@onyxim/math","ecosystem":"npm","purl":"pkg:npm/%40onyxim/math"},"versions":["1.0.2"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@onyxim/math/MAL-2026-20953.json"}}],"schema_version":"1.9.2","credits":[{"name":"Radesh Govind","type":"FINDER"}]}