Malicious code in claims-shared (npm)
The npm package 'claims-shared' version 35.7.1 contains malicious code that executes automatically upon requiring the package. It downloads a platform-specific binary from obfuscated Cloudflare Workers hosts or fallback domains, writes it to disk with misleading filenames, sets executable permissions, and runs it detached without user interaction. This behavior occurs immediately on package import, posing a risk of unauthorized code execution.
AI Analysis
Technical Summary
The 'claims-shared' npm package version 35.7.1 includes a malicious payload triggered by requiring the package. The index.js file loads a polyfill script that fetches a binary from a shuffled list of Cloudflare Workers subdomains or fallback DNS TXT chunked downloads from suspicious Russian subdomains. The binary is reconstructed from split strings to evade detection, saved to temporary directories with cover-story filenames, made executable, and executed detached via shell or command prompt. Execution only proceeds if the payload exceeds 1000 bytes. This occurs without any explicit user action beyond requiring the package.
Potential Impact
This malicious behavior allows arbitrary code execution on the host system immediately upon importing the package, potentially leading to system compromise, data theft, or further malware deployment. Since the payload executes detached and silently, it can evade casual detection and persist unnoticed.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should avoid using the 'claims-shared' package version 35.7.1. Investigate and remove this package from projects and systems. Monitor for unexpected processes or files matching the described behavior. Check vendor advisories or trusted sources for updates or fixes.
Malicious code in claims-shared (npm)
Description
The npm package 'claims-shared' version 35.7.1 contains malicious code that executes automatically upon requiring the package. It downloads a platform-specific binary from obfuscated Cloudflare Workers hosts or fallback domains, writes it to disk with misleading filenames, sets executable permissions, and runs it detached without user interaction. This behavior occurs immediately on package import, posing a risk of unauthorized code execution.
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 'claims-shared' npm package version 35.7.1 includes a malicious payload triggered by requiring the package. The index.js file loads a polyfill script that fetches a binary from a shuffled list of Cloudflare Workers subdomains or fallback DNS TXT chunked downloads from suspicious Russian subdomains. The binary is reconstructed from split strings to evade detection, saved to temporary directories with cover-story filenames, made executable, and executed detached via shell or command prompt. Execution only proceeds if the payload exceeds 1000 bytes. This occurs without any explicit user action beyond requiring the package.
Potential Impact
This malicious behavior allows arbitrary code execution on the host system immediately upon importing the package, potentially leading to system compromise, data theft, or further malware deployment. Since the payload executes detached and silently, it can evade casual detection and persist unnoticed.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should avoid using the 'claims-shared' package version 35.7.1. Investigate and remove this package from projects and systems. Monitor for unexpected processes or files matching the described behavior. Check vendor advisories or trusted sources for updates or fixes.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-12642
- Osv Schema Version
- 1.7.4
- Ecosystems
- ["npm"]
Threat ID: 6a735735bf8831d53913f8d1
Added to database: 08/05/2026, 15:31:01 UTC
Last enriched: 08/05/2026, 16:15:46 UTC
Last updated: 09/07/2026, 22:12:22 UTC
Views: 17
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.