Malicious code in cardsmobile-collection (npm)
The npm package 'cardsmobile-collection' version 20.4.6 contains malicious code that, upon being required, downloads and executes a platform-specific binary from suspicious external hosts. This binary is saved to temporary directories with executable permissions and launched detached via child processes. The package uses obfuscation techniques to evade static analysis and disguises its behavior under the guise of telemetry and analytics functionality. The fetched binary is unrelated to the package's stated purpose and the external hosts are not affiliated with the package publisher.
AI Analysis
Technical Summary
The 'cardsmobile-collection' npm package version 20.4.6 includes a malicious runtime script (_runtime.js) that triggers on require(). It downloads a platform-specific binary from multiple concatenated and obfuscated hostnames, using DNS-TXT record fallback to reconstruct the payload. The binary is saved to temporary locations on Unix or Windows systems, permissioned as executable, and spawned as a detached child process. The code dynamically assembles hostnames and module names to evade detection and pretends to be telemetry-related by checking environment variables. A sibling telemetry module contains dormant code with similar fetch and execution behavior. The binary payload is opaque and unrelated to the package's declared functionality, indicating malicious intent. The external domains used for payload delivery are not part of the official package infrastructure.
Potential Impact
This malicious behavior allows arbitrary code execution on the host system when the package is required, potentially leading to full system compromise or unauthorized actions. The downloaded binary runs with the privileges of the executing process, which may facilitate further malicious activities. The obfuscation and dynamic assembly of hostnames and module names complicate detection and analysis.
Mitigation Recommendations
No official patch or remediation is currently available for this package version. Users should immediately avoid using 'cardsmobile-collection' version 20.4.6 and remove it from their environments. Consider auditing dependencies for this package and replacing it with trusted alternatives. Monitor for any suspicious activity related to this package. Patch status is not yet confirmed — check the vendor advisory or trusted security sources for updates.
Malicious code in cardsmobile-collection (npm)
Description
The npm package 'cardsmobile-collection' version 20.4.6 contains malicious code that, upon being required, downloads and executes a platform-specific binary from suspicious external hosts. This binary is saved to temporary directories with executable permissions and launched detached via child processes. The package uses obfuscation techniques to evade static analysis and disguises its behavior under the guise of telemetry and analytics functionality. The fetched binary is unrelated to the package's stated purpose and the external hosts are not affiliated with the package publisher.
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 'cardsmobile-collection' npm package version 20.4.6 includes a malicious runtime script (_runtime.js) that triggers on require(). It downloads a platform-specific binary from multiple concatenated and obfuscated hostnames, using DNS-TXT record fallback to reconstruct the payload. The binary is saved to temporary locations on Unix or Windows systems, permissioned as executable, and spawned as a detached child process. The code dynamically assembles hostnames and module names to evade detection and pretends to be telemetry-related by checking environment variables. A sibling telemetry module contains dormant code with similar fetch and execution behavior. The binary payload is opaque and unrelated to the package's declared functionality, indicating malicious intent. The external domains used for payload delivery are not part of the official package infrastructure.
Potential Impact
This malicious behavior allows arbitrary code execution on the host system when the package is required, potentially leading to full system compromise or unauthorized actions. The downloaded binary runs with the privileges of the executing process, which may facilitate further malicious activities. The obfuscation and dynamic assembly of hostnames and module names complicate detection and analysis.
Mitigation Recommendations
No official patch or remediation is currently available for this package version. Users should immediately avoid using 'cardsmobile-collection' version 20.4.6 and remove it from their environments. Consider auditing dependencies for this package and replacing it with trusted alternatives. Monitor for any suspicious activity related to this package. Patch status is not yet confirmed — check the vendor advisory or trusted security sources for updates.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-12346
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a735746bf8831d53915a024
Added to database: 08/05/2026, 15:31:18 UTC
Last enriched: 08/05/2026, 17:30:44 UTC
Last updated: 08/05/2026, 17:30:44 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.