Skip to main content

Malicious code in checkout-promocode-logic (npm)

0
Critical
Published: 08/05/2026 (08/05/2026, 14:08:13 UTC)
Source: GCVE Database
Product: checkout-promocode-logic

Description

The npm package 'checkout-promocode-logic' version 35.7.7 contains malicious code that, upon requiring the module, loads a script which fetches and executes a payload from obfuscated remote hosts. The payload is downloaded via HTTPS or a DNS-TXT record covert channel, saved to temporary locations with names mimicking legitimate .NET diagnostic files, and executed to evade detection. The malicious code uses runtime string assembly to hide its network destinations, file names, and child process invocations, complicating analysis and detection.

Affected software

npmghsa
checkout-promocode-logic
Affected versions
=35.7.7

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:04:41 UTC

Technical Analysis

The 'checkout-promocode-logic' npm package version 35.7.7 includes a malicious dropper that loads an extension script selecting a payload based on the operating system. This script downloads an executable payload from obfuscated and concatenated hostnames over HTTPS, with a fallback mechanism that reconstructs base64-encoded payload chunks from DNS TXT records. The payload is saved to temporary directories with filenames designed to appear as legitimate .NET telemetry or diagnostic artifacts, then executed detached from the parent process using shell commands. The code employs dynamic string assembly to obscure critical elements such as hostnames, file paths, and module names, enhancing evasion. Additional telemetry-related scripts use similar dropper techniques with stronger evasion methods.

Potential Impact

This malicious package can lead to arbitrary code execution on the host system where the package is installed and required. The payload execution from obfuscated remote sources allows attackers to run potentially harmful code with the privileges of the executing process, risking system compromise, data theft, or further malware deployment. The use of covert DNS channels and obfuscation techniques complicates detection and response.

Mitigation Recommendations

No official patch or remediation guidance is provided in the available data. Users should avoid using version 35.7.7 of the 'checkout-promocode-logic' package. It is recommended to audit dependencies for malicious code and remove or replace this package with a trusted alternative. Monitor for unusual network activity or unexpected executables in temporary directories. Patch status is not yet confirmed — check the vendor advisory or trusted security sources for current remediation guidance.

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-12588
Osv Schema Version
1.7.4
Ecosystems
["npm"]

Threat ID: 6a735733bf8831d53913d113

Added to database: 08/05/2026, 15:30:59 UTC

Last enriched: 08/05/2026, 16:04:41 UTC

Last updated: 09/11/2026, 22:44:43 UTC

Views: 42

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