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 this code using invisible Unicode variation-selector characters inside a comment, which is decoded and executed dynamically. Additionally, it fetches a personal Google Calendar ICS feed to retrieve a rotating command-and-control URL, enabling the attacker to remotely execute arbitrary code via the package's sensor() API.
AI Analysis
Technical Summary
The akamaijs-sensor npm package (version 3.0.0) masquerades as an Akamai sensor generator but embeds 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 using new Function(), running attacker-authored code in the consumer's Node.js environment when the sensor() API is called. Second, index.js fetches a hardcoded Google Calendar ICS feed, extracting a URL from event descriptions that acts as a dynamic command-and-control endpoint. This endpoint can be rotated by the attacker via calendar event edits, allowing remote code execution with no legitimate purpose in the package.
Potential Impact
This malicious package enables remote code execution in the context of the Node.js process that imports it, allowing an attacker to run arbitrary code on the affected system. The dynamic command-and-control mechanism via a Google Calendar feed allows the attacker to change payloads and commands without updating the package, increasing stealth and persistence.
Mitigation Recommendations
No official patch or remediation is currently documented for this package. Users should immediately remove version 3.0.0 of akamaijs-sensor from their environments and avoid using this package. Verify dependencies and replace with trusted alternatives. Monitor for any unexpected network connections to Google Calendar URLs or suspicious behavior related to this package. Patch status is not yet confirmed — check the vendor advisory or npm security advisories for updates.
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 this code using invisible Unicode variation-selector characters inside a comment, which is decoded and executed dynamically. Additionally, it fetches a personal Google Calendar ICS feed to retrieve a rotating command-and-control URL, enabling the attacker to remotely execute arbitrary code via the package's sensor() API.
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 npm package (version 3.0.0) masquerades as an Akamai sensor generator but embeds 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 using new Function(), running attacker-authored code in the consumer's Node.js environment when the sensor() API is called. Second, index.js fetches a hardcoded Google Calendar ICS feed, extracting a URL from event descriptions that acts as a dynamic command-and-control endpoint. This endpoint can be rotated by the attacker via calendar event edits, allowing remote code execution with no legitimate purpose in the package.
Potential Impact
This malicious package enables remote code execution in the context of the Node.js process that imports it, allowing an attacker to run arbitrary code on the affected system. The dynamic command-and-control mechanism via a Google Calendar feed allows the attacker to change payloads and commands without updating the package, increasing stealth and persistence.
Mitigation Recommendations
No official patch or remediation is currently documented for this package. Users should immediately remove version 3.0.0 of akamaijs-sensor from their environments and avoid using this package. Verify dependencies and replace with trusted alternatives. Monitor for any unexpected network connections to Google Calendar URLs or suspicious behavior related to this package. Patch status is not yet confirmed — check the vendor advisory or npm security advisories for updates.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-12337
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a735743bf8831d539159c5f
Added to database: 08/05/2026, 15:31:15 UTC
Last enriched: 08/05/2026, 17:17:48 UTC
Last updated: 08/05/2026, 17:17:48 UTC
Views: 2
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.