{"id":"MAL-2026-12337","revision":"d1dfad65d5b6486f8a867a36b18c9405","records":[{"revision":"d1dfad65d5b6486f8a867a36b18c9405","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-12337","aliases":[],"title":"Malicious code in akamaijs-sensor (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (14a4955c82b04226b267bc55691b0b9c08770710a7038b58e75bfdd009d046fe)\nThe package presents itself as an Akamai sensor generator but ships two coupled malicious mechanisms. index.js contains a /* */ comment filled with invisible Unicode variation-selector characters (U+FE00-FE0F and U+E0100-E01EF) that encode arbitrary JavaScript bytes. sync-metrics.js reads that comment, decodes the hidden bytes via an unpack() routine mapping the variation-selector ranges to nibbles, and executes the resulting source through new Function('require', batch)(require) — running attacker-authored code inside the consumer's Node process the first time the exported sensor() API is called. Separately, index.js fetches a hardcoded personal Google Calendar ICS feed at calendar.google.com/calendar/ical/hev4229%40gmail.com/public/basic.ics, extracts a URL from event DESCRIPTION fields (accepting plain, base64-decoded, or HTML href forms), appends /generate, GETs that endpoint and returns its JSON to sensor()'s caller. The calendar functions as a dead-drop the operator rotates by editing calendar events, defeating static URL indicators and letting the operator swap the live endpoint at will. The combination — invisible-Unicode-encoded code executed via new Function() plus an attacker-rotatable C2 channel whose responses flow back through the package's advertised API — is remote code execution against the installer with no legitimate purpose in a sensor generator.\n","state":0,"publishedAt":"2026-08-05T13:00:24+00:00","modifiedAt":"2026-08-15T18:15:11.0046022+00:00","affected":[{"ecosystem":"npm","name":"akamaijs-sensor","ranges":[],"versions":["3.0.0","2.0.0"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/akamaijs-sensor/v/3.0.0","https://www.npmjs.com/package/akamaijs-sensor/v/2.0.0"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-12337","license":"OSV · upstream source license applies","key":"osv:MAL-2026-12337","identifiers":["MAL-2026-12337"]},"retained":false,"historicalAffected":[]}],"coverage":[]}