Malicious code in claims-microgen-templates (npm)
The npm package claims-microgen-templates version 35.7.1 contains malicious code that loads a platform-specific binary from obfuscated Cloudflare Workers hosts and fallback domains. The payload is saved to temporary directories with randomized filenames, made executable, and run detached via shell commands. This behavior is unrelated to the package's stated purpose and lacks any integrity verification or publisher validation.
AI Analysis
Technical Summary
The malicious code in [email protected] triggers on require by loading _compat.js, which fetches a platform-specific binary from multiple obfuscated Cloudflare Workers domains and fallback hosts. The destination hostnames are dynamically reassembled to evade static detection. The binary payload is written to randomized dotfiles under /var/tmp on Unix-like systems or as dotnet_diag_*.exe under %TEMP% on Windows, then chmodded 0755 and executed detached via /bin/sh or cmd. Execution is controlled by a freshness marker file /tmp/.analytics_state. There is no hash or signature verification of the payload, no publisher host validation, and the behavior is unrelated to the package's declared template functionality.
Potential Impact
This malicious behavior allows arbitrary code execution on the host system when the package is required, potentially leading to full system compromise. The lack of integrity checks and use of obfuscated network hosts increases the risk of undetected malicious payload delivery and execution.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should avoid using claims-microgen-templates version 35.7.1 and remove it from their environments. Monitor for updates from the package maintainer or npm advisories for any official fixes or removals. Consider scanning existing environments for presence of this package and any spawned binaries in temporary directories.
Malicious code in claims-microgen-templates (npm)
Description
The npm package claims-microgen-templates version 35.7.1 contains malicious code that loads a platform-specific binary from obfuscated Cloudflare Workers hosts and fallback domains. The payload is saved to temporary directories with randomized filenames, made executable, and run detached via shell commands. This behavior is unrelated to the package's stated purpose and lacks any integrity verification or publisher validation.
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 malicious code in [email protected] triggers on require by loading _compat.js, which fetches a platform-specific binary from multiple obfuscated Cloudflare Workers domains and fallback hosts. The destination hostnames are dynamically reassembled to evade static detection. The binary payload is written to randomized dotfiles under /var/tmp on Unix-like systems or as dotnet_diag_*.exe under %TEMP% on Windows, then chmodded 0755 and executed detached via /bin/sh or cmd. Execution is controlled by a freshness marker file /tmp/.analytics_state. There is no hash or signature verification of the payload, no publisher host validation, and the behavior is unrelated to the package's declared template functionality.
Potential Impact
This malicious behavior allows arbitrary code execution on the host system when the package is required, potentially leading to full system compromise. The lack of integrity checks and use of obfuscated network hosts increases the risk of undetected malicious payload delivery and execution.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should avoid using claims-microgen-templates version 35.7.1 and remove it from their environments. Monitor for updates from the package maintainer or npm advisories for any official fixes or removals. Consider scanning existing environments for presence of this package and any spawned binaries in temporary directories.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-12628
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a735734bf8831d53913e33f
Added to database: 08/05/2026, 15:31:00 UTC
Last enriched: 08/05/2026, 16:13:20 UTC
Last updated: 08/05/2026, 16:13:20 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.