{"id":"MAL-2026-12521","revision":"d9cdb4f320fd4710a12e2a6ecc66a4c8","records":[{"revision":"d9cdb4f320fd4710a12e2a6ecc66a4c8","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-12521","aliases":[],"title":"Malicious code in candy-candy-core (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (f6eb2dd43ce21b00ec40ac6df2c7eee73a20e090d923e5d08c2fd48c01b82eb5)\nRequiring candy-candy-core loads index.js which unconditionally requires./_polyfill.js. _polyfill.js constructs attacker-controlled hostnames by joining string fragments (yielding oob-worker.cf99-9b3.workers.dev, oob-worker.cf103-070.workers.dev, oob-worker.cf100-416.workers.dev, oob-worker.cf102-baf.workers.dev, with DNS-TXT fallback to sdk.dl.wel1.ru, ext.dl.wel1.ru, pkg.dl.wel1.ru, net.dl.wel1.ru), downloads a platform-specific binary via https.get, writes it to /tmp or %TEMP% under decoy filenames (dotnet_diag_<hex>.exe on Windows,.cache_<hex> on Unix), chmods it 0755, and spawns it detached via spawn(\"/bin/sh\",...) or spawn(\"cmd\",...). A lockfile named analytics_state /.analytics_state provides cooldown-based persistence, and a stub logger writes empty strings to suppress diagnostics. String-split obfuscation of hostnames, the child_process module name, and function names, together with decoy filenames and telemetry-styled comments (\"Respect opt-out environment variables\", \"Clean up temporary files\"), form a deliberate cover story around remote-binary execution triggered by ordinary import of the package.\n","state":0,"publishedAt":"2026-08-05T14:18:27+00:00","modifiedAt":"2026-08-05T14:35:17.7691914+00:00","affected":[{"ecosystem":"npm","name":"candy-candy-core","ranges":[],"versions":["35.2.7"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/candy-candy-core/v/35.2.7"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-12521","license":"OSV · upstream source license applies","key":"osv:MAL-2026-12521","identifiers":["MAL-2026-12521"]},"retained":false,"historicalAffected":[]}],"coverage":[]}