Malicious code in akamaijs-sensor (npm)
The npm package akamaijs-sensor version 3.0.0 contains malicious code that executes attacker-controlled JavaScript within the consumer's Node.js process. It hides arbitrary code inside Unicode variation-selector characters in a comment, which is decoded and executed dynamically. Additionally, it fetches a hardcoded Google Calendar ICS feed used as a dead-drop channel to retrieve attacker-controlled URLs, enabling remote code execution with no legitimate purpose.
AI Analysis
Technical Summary
The akamaijs-sensor package (version 3.0.0) masquerades as an Akamai sensor generator but includes two malicious mechanisms. First, index.js contains a comment filled with invisible Unicode variation-selector characters encoding arbitrary JavaScript bytes. The sync-metrics.js file decodes this hidden code and executes it dynamically via new Function(), running attacker-authored code in the user's Node.js environment when the sensor() API is called. Second, index.js fetches a hardcoded Google Calendar ICS feed, extracting URLs from event descriptions that serve as a dynamic command-and-control channel. This allows the attacker to rotate the live endpoint by editing calendar events, evading static detection. Together, these mechanisms enable remote code execution on the installer with no legitimate functionality.
Potential Impact
This malicious package enables remote code execution within the Node.js process of any user who installs and calls the sensor() API. The attacker can execute arbitrary code, potentially leading to full system compromise, data theft, or further malware deployment. The use of a dynamic, attacker-controlled calendar-based command-and-control channel complicates detection and mitigation.
Mitigation Recommendations
No official patch or remediation is currently available. Users should immediately remove the akamaijs-sensor package version 3.0.0 from their environments and avoid using this package. Investigate any systems where this package was installed for signs of compromise. Monitor for updates from the package maintainers or npm security advisories for any fixes or further guidance.
Malicious code in akamaijs-sensor (npm)
Description
The npm package akamaijs-sensor version 3.0.0 contains malicious code that executes attacker-controlled JavaScript within the consumer's Node.js process. It hides arbitrary code inside Unicode variation-selector characters in a comment, which is decoded and executed dynamically. Additionally, it fetches a hardcoded Google Calendar ICS feed used as a dead-drop channel to retrieve attacker-controlled URLs, enabling remote code execution with no legitimate purpose.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The akamaijs-sensor package (version 3.0.0) masquerades as an Akamai sensor generator but includes two malicious mechanisms. First, index.js contains a comment filled with invisible Unicode variation-selector characters encoding arbitrary JavaScript bytes. The sync-metrics.js file decodes this hidden code and executes it dynamically via new Function(), running attacker-authored code in the user's Node.js environment when the sensor() API is called. Second, index.js fetches a hardcoded Google Calendar ICS feed, extracting URLs from event descriptions that serve as a dynamic command-and-control channel. This allows the attacker to rotate the live endpoint by editing calendar events, evading static detection. Together, these mechanisms enable remote code execution on the installer with no legitimate functionality.
Potential Impact
This malicious package enables remote code execution within the Node.js process of any user who installs and calls the sensor() API. The attacker can execute arbitrary code, potentially leading to full system compromise, data theft, or further malware deployment. The use of a dynamic, attacker-controlled calendar-based command-and-control channel complicates detection and mitigation.
Mitigation Recommendations
No official patch or remediation is currently available. Users should immediately remove the akamaijs-sensor package version 3.0.0 from their environments and avoid using this package. Investigate any systems where this package was installed for signs of compromise. Monitor for updates from the package maintainers or npm security advisories for any fixes or further guidance.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-12337
- Osv Schema Version
- 1.7.4
- Ecosystems
- ["npm"]
Threat ID: 6a735743bf8831d539159c5f
Added to database: 08/05/2026, 15:31:15 UTC
Last enriched: 08/16/2026, 18:49:47 UTC
Last updated: 09/07/2026, 21:57:04 UTC
Views: 22
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.