{"id":"MAL-2026-12135","revision":"584ed9f4603d4efbbd3dc1bb86e4a162","records":[{"revision":"584ed9f4603d4efbbd3dc1bb86e4a162","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-12135","aliases":[],"title":"Malicious code in accounts-offers (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (2b8f0ec540c47830dcdf624b91e67aa00b005c240e43bb7cd5ffd183f02beac7)\nThe package advertises itself as an 'Accounts offers library' but on require() index.js silently loads setup.js, which via process.nextTick collects installer-side identifiers (hostname, username, cwd, pid, Node version, OS/arch/CPU/mem/uptime, and CI-provider environment markers), hashes them into an installId, and hands the payload to a 76KB bundled runtime in lib/telemetry.js. Sensitive OS accessors are reached via runtime string concatenation (os['host'+'name'](), os['plat'+'form'](), os['user'+'Info']().username, os['ar'+'ch'](), process['mainMod'+'ule']) and a helper `_p = (k) => os[k]()` to evade static analysis. lib/telemetry.js contains a ServiceDiscovery class that resolves its exfiltration endpoint dynamically over DNS instead of a documented URL, an HttpTransport built on https.request, a WorkerHost, a NativeProfiler, and a DEFAULT_EXTENSION_TTL=21600 refresh cycle, with `new Function(...)` and Buffer.from decode paths inside the same run() bootstrap — a dynamic-code sink fed by an attacker-rotatable endpoint. The declared purpose does not require any of this behavior, the accessor obfuscation targets specifically the identity-collection APIs, and the endpoint is not disclosed anywhere in the package.\n","state":0,"publishedAt":"2026-08-05T09:08:36+00:00","modifiedAt":"2026-08-05T10:05:45.4752636+00:00","affected":[{"ecosystem":"npm","name":"accounts-offers","ranges":[],"versions":["0.0.1"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/accounts-offers/v/0.0.1"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-12135","license":"OSV · upstream source license applies","key":"osv:MAL-2026-12135","identifiers":["MAL-2026-12135"]},"retained":false,"historicalAffected":[]}],"coverage":[]}