Malicious code in akamai-sensor (npm)
A malicious npm package named akamai-sensor impersonated Akamai's legitimate sensor_data anti-bot SDK. The package contained hidden JavaScript code concealed using invisible Unicode characters and implemented a dynamic command-and-control channel via a Google Calendar dead-drop, enabling arbitrary code execution on installation.
- Disclosed
- Last updated
- Blast radius
- All npm consumers who installed the malicious akamai-sensor package
- Ecosystems
- Attack vectors
- Affected entities
- akamai-sensorMalicious package impersonating Akamai's sensor_data anti-bot SDK
The akamai-sensor npm package was a typosquatting attack impersonating Akamai's legitimate sensor_data anti-bot SDK. The malicious package employed multiple obfuscation and evasion techniques to conceal its true functionality.
The package's index.js file contained a comment body encoded using invisible Unicode variation-selector characters (U+FE00-U+FE0F and U+E0100-U+E01EF). The sync-metrics.js module would read this comment, decode the hidden characters back to UTF-8 bytes, and execute the reconstructed JavaScript using new Function() with full require access. This execution was triggered whenever a consumer called the package's exported sensor() API.
Additionally, the package fetched a hardcoded Google Calendar ICS feed (calendar.google.com/calendar/ical/hev4229%40gmail.com/public/basic.ics) on each sensor() call. It scanned event DESCRIPTION fields for base64-encoded URLs, appended /generate, and fetched JSON from the resulting endpoint—implementing a mutable command-and-control channel that the attacker could rotate by editing the calendar.
The attack combined vendor-name impersonation, invisible-Unicode payload concealment, dynamic code execution, and third-party dead-drop C2 infrastructure to compromise developers who trusted the Akamai brand.
Indicators of compromise
- Packages
- akamai-sensor
- Domains
- calendar.google.com
Remediation
- Immediately uninstall the akamai-sensor package from all environments
- Audit npm package.json and lock files for any installation of akamai-sensor
- Review audit logs and network traffic for connections to calendar.google.com or suspicious outbound requests from affected systems
- Install the legitimate Akamai sensor_data SDK from the official source if anti-bot functionality is required
- Implement package name verification and use npm audit to detect typosquatting attacks
- Consider using npm package allowlists or private registries to control which packages can be installed
Sources
- GitHub Advisory GHSA-5rgj-m8xx-vvvj · GitHub Advisory Database
Cite this entry
"Malicious code in akamai-sensor (npm)." supplychainattack.org, Supply Chain Attack Incident Catalog. Disclosed August 15, 2026; last updated August 15, 2026. https://supplychainattack.org/incident/malicious-code-in-akamai-sensor-npm-1gv6px
Suggest a correction
Found an error or have a newer source? Corrections to factual errors take priority over new entries.
Related incidents
- resolvedcritical
Malicious code in create-coin (npm)
create-coin@20.1.1 on npm contained malicious postinstall code that collected sensitive environment variables, credentials, and host reconnaissance data. The package impersonated an esbuild platform build and exfiltrated data to a hardcoded endpoint.
npmCompromised packageTyposquatting - containedcritical
Malicious code in chai-as-testkit (npm)
The npm package chai-as-testkit is a typosquat/impersonation attack delivering obfuscated malicious code that executes on import. The package falsely claims to be a vulnerability management tool but ships pino library files under a different author, with a synthetic stub that loads a 4MB+ obfuscated bundle containing attacker-controlled code.
npmTyposquattingCompromised package - resolvedcritical
Malicious code in @next-fonts/font (npm)
@next-fonts/font is a typosquat package on npm that executes arbitrary attacker-controlled code via a blockchain-mediated C2 channel when its Inter() function is called. The malicious payload is base64-encoded and executed through Node.js spawn or eval, with no legitimate font functionality.
npmTyposquattingCompromised package - resolvedcritical
Malicious code in chai-as-soul (npm)
chai-as-soul@2.3.5 is a typosquat of the pino logging library containing malicious code that exfiltrates environment variables (including AWS/GCP/CI tokens) and executes arbitrary remote code on installation.
npmTyposquattingCompromised package