Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

Malicious code in claims-microgen-templates (npm)

0
Critical
Published: 08/05/2026 (08/05/2026, 14:03:45 UTC)
Source: GCVE Database
Product: claims-microgen-templates

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

npmghsa
claims-microgen-templates
Affected versions
=35.7.1

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

AILast updated: 08/05/2026, 16:13:20 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses