Malicious code in @marketfront/header (npm)
The @marketfront/header npm package version 7.0.0 is part of a malicious campaign involving 25 packages published within a short timeframe. It contains a heavily obfuscated postinstall script that executes automatically during npm install. This script harvests sensitive credential files and environment data from the installer's system and exfiltrates the data via encrypted HTTPS POST requests to a concealed command-and-control server. The campaign shares tooling and infrastructure with a previous malicious campaign, indicating a recurring threat actor.
AI Analysis
Technical Summary
The @marketfront/header package (version 7.0.0) was published as part of a 25-package malicious campaign under the @marketfront npm scope by the user 'marketfront'. The package declares a postinstall hook executing an obfuscated ~160KB script that runs at install time. This script dynamically loads Node.js modules (fs, os, http, https, zlib, path, dns) to read approximately 20 sensitive credential files from the user's home directory, including SSH keys, AWS credentials, Kubernetes configs, Docker configs, npm and git credentials, environment files, and shell history. It collects environment variables and system identifiers, compresses the data, and exfiltrates it over HTTPS with a custom X-Secret header to a hidden endpoint (/api/v1/events). The command-and-control configuration is concealed with RC4+XOR encryption. The payload is identical across the campaign packages and shares infrastructure and techniques with a prior campaign (@emcd-vue), suggesting the same threat actor rotating scopes and maintainer identities. This behavior constitutes a supply-chain install-time credential stealer with no legitimate purpose.
Potential Impact
Installation of the affected package version 7.0.0 results in automatic execution of malicious code that harvests a broad range of sensitive credential files and environment data from the installer's system. This data is exfiltrated to a remote attacker-controlled server, potentially compromising user credentials, cloud service keys, container and Kubernetes configurations, and other sensitive secrets. This can lead to unauthorized access to user accounts, cloud resources, source code repositories, and other sensitive infrastructure. The attack occurs at install time, making it a supply-chain threat that can affect developers and automated build environments.
Mitigation Recommendations
No official patch or remediation is currently available for this malicious package version. Users and organizations should avoid installing @marketfront/header version 7.0.0 and any other packages from the @marketfront scope published on or around 2026-07-01. Remove any installations of these packages and rotate any potentially compromised credentials that may have been exposed. Monitor for suspicious network traffic related to the described exfiltration patterns. Since this is a supply-chain threat, verify package provenance and prefer trusted sources. Patch status is not yet confirmed — check the vendor advisory or npm security advisories for updates.
Malicious code in @marketfront/header (npm)
Description
The @marketfront/header npm package version 7.0.0 is part of a malicious campaign involving 25 packages published within a short timeframe. It contains a heavily obfuscated postinstall script that executes automatically during npm install. This script harvests sensitive credential files and environment data from the installer's system and exfiltrates the data via encrypted HTTPS POST requests to a concealed command-and-control server. The campaign shares tooling and infrastructure with a previous malicious campaign, indicating a recurring threat actor.
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 @marketfront/header package (version 7.0.0) was published as part of a 25-package malicious campaign under the @marketfront npm scope by the user 'marketfront'. The package declares a postinstall hook executing an obfuscated ~160KB script that runs at install time. This script dynamically loads Node.js modules (fs, os, http, https, zlib, path, dns) to read approximately 20 sensitive credential files from the user's home directory, including SSH keys, AWS credentials, Kubernetes configs, Docker configs, npm and git credentials, environment files, and shell history. It collects environment variables and system identifiers, compresses the data, and exfiltrates it over HTTPS with a custom X-Secret header to a hidden endpoint (/api/v1/events). The command-and-control configuration is concealed with RC4+XOR encryption. The payload is identical across the campaign packages and shares infrastructure and techniques with a prior campaign (@emcd-vue), suggesting the same threat actor rotating scopes and maintainer identities. This behavior constitutes a supply-chain install-time credential stealer with no legitimate purpose.
Potential Impact
Installation of the affected package version 7.0.0 results in automatic execution of malicious code that harvests a broad range of sensitive credential files and environment data from the installer's system. This data is exfiltrated to a remote attacker-controlled server, potentially compromising user credentials, cloud service keys, container and Kubernetes configurations, and other sensitive secrets. This can lead to unauthorized access to user accounts, cloud resources, source code repositories, and other sensitive infrastructure. The attack occurs at install time, making it a supply-chain threat that can affect developers and automated build environments.
Mitigation Recommendations
No official patch or remediation is currently available for this malicious package version. Users and organizations should avoid installing @marketfront/header version 7.0.0 and any other packages from the @marketfront scope published on or around 2026-07-01. Remove any installations of these packages and rotate any potentially compromised credentials that may have been exposed. Monitor for suspicious network traffic related to the described exfiltration patterns. Since this is a supply-chain threat, verify package provenance and prefer trusted sources. Patch status is not yet confirmed — check the vendor advisory or npm security advisories for updates.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-6782
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a4c348427e9c797196072e9
Added to database: 07/06/2026, 23:04:36 UTC
Last enriched: 07/06/2026, 23:09:18 UTC
Last updated: 07/18/2026, 17:27:21 UTC
Views: 7
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.