{"id":"MAL-2026-17322","revision":"85dadba38f81421d861e47001d8fa8dd","records":[{"revision":"85dadba38f81421d861e47001d8fa8dd","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-17322","aliases":[],"title":"Malicious code in contoso-login-sim-loader (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (062ce76699c91a883d24e3ad609bb04faa3f52cbeaecfb24c1c3bcde8b496a5c)\nPackage ships a single ~138 KB browser script whose entire body is an RC4-encrypted base64 blob decoded at runtime by an inline RC4 routine (`_zc`) with a DJB2 helper (`_zh`) and a key reconstructed by XORing a numeric array with 1410^714. Before decryption the script performs anti-analysis guards: a devtools-size heuristic (`if(_gz>160||_gp>160)return;`) that aborts execution when developer tools are open, and a block that overwrites `console.log/info/warn/debug/error` to no-ops to suppress runtime tracing. The package name `contoso-login-sim-loader` self-describes as a 'login sim(ulator) loader' while the published description reframes it as a generic 'Client-side asset loader that renders a self-contained UI component when included via a script tag.' The tarball ships no source, no exports, no dependencies, and no documentation - only the opaque encrypted payload. Any site that follows the include-via-script-tag guidance embeds attacker-controlled JavaScript, decrypted only in end-user browsers, into its own pages; the concealed payload cannot be audited without executing it, and the name plus cover-story description are consistent with a fake-login/credential-harvest overlay served to that site's visitors.\n","state":0,"publishedAt":"2026-09-30T04:40:31+00:00","modifiedAt":"2026-09-30T05:00:08.7139968+00:00","affected":[{"ecosystem":"npm","name":"contoso-login-sim-loader","ranges":[],"versions":["1.0.1"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/contoso-login-sim-loader/v/1.0.1"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-17322","license":"OSV · upstream source license applies","key":"osv:MAL-2026-17322","identifiers":["MAL-2026-17322"]},"retained":false,"historicalAffected":[]}],"coverage":[]}