{"id":"MAL-2026-4670","summary":"Malicious code in skills-detector (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (844190b21455d308d6e2b5305ebe92634d80b55817290a84644a1048df0e54b3)\nOn `npm install`, postinstall.js executes `whoami` and `id` via child_process.execSync, collects os.hostname(), os.platform(), current working directory, and the CI / GITHUB_REPOSITORY / NODE_ENV environment variables, and sends them via HTTPS GET to the hardcoded host `0bcdniet6uubfi1lkxgx8qhpcgid65uu.oastify.com` (Burp Collaborator out-of-band-exfiltration domain). It also issues a DNS lookup of `\u003cwhoami\u003e.0bcdniet6uubfi1lkxgx8qhpcgid65uu.oastify.com` as a secondary OAST exfiltration channel. The package self-describes as a 'Security research canary' but is published on the public registry and runs unconditionally on any installer's machine, leaking host identity and CI/GitHub repository context to a third party.\n\n## Source: ghsa-malware (65daf45d03c11c27cbf1be53eefe496baf57ab0319078e92875e2cb3dd72aec1)\nAny computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.\n\n## Source: ossf-package-analysis (9af466aa8c67f5897bfd2f2361407e596caa4adfb77bc5ca813992ccd9f4302c)\nThe OpenSSF Package Analysis project identified 'skills-detector' @ 2.0.5 (npm) as malicious.\n\nIt is considered malicious because:\n\n- The package executes one or more commands associated with malicious behavior.\n","aliases":["GHSA-wxv4-4mmm-mmm9"],"modified":"2026-06-10T19:31:29.106297309Z","published":"2026-05-25T18:53:42Z","database_specific":{"malicious-packages-origins":[{"sha256":"844190b21455d308d6e2b5305ebe92634d80b55817290a84644a1048df0e54b3","modified_time":"2026-05-25T18:53:42Z","import_time":"2026-05-26T05:53:13.520710565Z","source":"amazon-inspector","id":"IN-MAL-2026-004757","versions":["2.0.4"]},{"sha256":"af28b26c14bc396bcafb2883baa3676cd0514938039aa041a4d7ae376cbdeb6e","modified_time":"2026-05-25T18:53:42Z","source":"amazon-inspector","import_time":"2026-05-26T05:53:13.619078963Z","id":"IN-MAL-2026-004758","versions":["2.0.4"]},{"sha256":"9af466aa8c67f5897bfd2f2361407e596caa4adfb77bc5ca813992ccd9f4302c","modified_time":"2026-05-26T03:19:46Z","source":"ossf-package-analysis","versions":["2.0.5"],"import_time":"2026-05-26T05:50:08.508819557Z"},{"sha256":"65daf45d03c11c27cbf1be53eefe496baf57ab0319078e92875e2cb3dd72aec1","modified_time":"2026-05-27T13:25:09Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"import_time":"2026-05-27T13:34:11.955247831Z","id":"GHSA-wxv4-4mmm-mmm9","source":"ghsa-malware"},{"sha256":"17406a66f0d8d9c58cd4da3485ece81fa8ae3e68fe441a371ac7b7dea2c55c70","modified_time":"2026-06-10T18:38:54Z","source":"amazon-inspector","import_time":"2026-06-10T19:23:48.566482589Z","id":"IN-MAL-2026-005291","versions":["2.0.5"]}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/skills-detector/v/2.0.4"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-wxv4-4mmm-mmm9"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/skills-detector/v/2.0.5"}],"affected":[{"package":{"name":"skills-detector","ecosystem":"npm","purl":"pkg:npm/skills-detector"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["2.0.4","2.0.5"],"database_specific":{"indicators":{"package_integrity":[{"filename":"skills-detector-2.0.4.tgz","hashes":{"sha1":"fc1579606974d110e708491cd3bc8079b4a7ddb0","sha512_sri":"sha512-2JHQl/kuLxZ3NPBJ0iT4CLIWzOGYFwqjQFpgiC2Se81TYNJL5OANFEgEQ/mDKbwz1pBoq+ktAQuf6Wu2mw1CnA=="}}],"domains":["0bcdniet6uubfi1lkxgx8qhpcgid65uu.oastify.com","scan.0bcdniet6uubfi1lkxgx8qhpcgid65uu.oastify.com"],"evidence_files":[{"sha256":"78fced90fdf05b6fe9549cc8cc6ae81617161267acde8f081ca29430aa94577c","tlsh":"ef011ef063f4eab058e31dc0e1258c12b137e0143300b9e03cac9354af899b808b5cdc","path":"postinstall.js"}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/skills-detector/MAL-2026-4670.json","cwes":[{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."},{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."},{"name":"Embedded Malicious Code","description":"The product contains code that appears to be malicious in nature.","cweId":"CWE-506"}]}}],"schema_version":"1.7.5","credits":[{"name":"Amazon Inspector","contact":["actran@amazon.com","inspector-research@amazon.com"],"type":"FINDER"},{"name":"OpenSSF: Package Analysis","contact":["https://github.com/ossf/package-analysis","https://openssf.slack.com/channels/package_analysis"],"type":"FINDER"}]}