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 @marketfront/errorcounter (npm)

0
Critical
Published: 07/02/2026 (07/02/2026, 00:00:00 UTC)
Source: GCVE Database
Product: @marketfront/errorcounter

Description

The @marketfront/errorcounter npm package version 7.0.0 is part of a malicious campaign involving 25 packages published within a short time frame. It contains a heavily obfuscated postinstall script that executes automatically during npm install, harvesting sensitive credential files and environment information from the host. The stolen data is exfiltrated via encrypted HTTPS POST requests and DNS beaconing to a concealed command-and-control server. The package itself is non-functional as advertised and serves solely as a supply-chain malware lure targeting internal @marketfront npm scopes. The campaign uses anti-analysis techniques to evade sandbox detection and shares infrastructure with a previous malicious campaign, indicating a persistent threat actor. Any build system that mistakenly resolves the @marketfront scope to public npm risks automatic credential theft during CI builds.

Affected software

npmghsa
@marketfront/errorcounter
Affected versions
=7.0.0

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: 07/06/2026, 23:08:44 UTC

Technical Analysis

The @marketfront/errorcounter package (version 7.0.0) is a malicious npm package published as part of a 25-package campaign under the @marketfront scope. It contains an obfuscated postinstall hook that runs automatically on npm install, executing a credential harvester that reads approximately 20 sensitive credential files (e.g., ~/.ssh, ~/.aws/credentials, ~/.kube/config) and environment variables. The harvested data is compressed and exfiltrated via HTTPS POST requests with a custom header and fallback DNS tunneling to a command-and-control server concealed by additional encryption. The package is non-functional as a library and uses anti-sandboxing techniques including timing loops and environment checks to evade detection. This campaign shares tooling and infrastructure with a prior malicious campaign, indicating the same threat actor. The attack targets build systems that mistakenly resolve the internal @marketfront scope to the public npm registry, causing automatic execution of the stealer and exposure of CI secrets and environment variables.

Potential Impact

Successful installation of this package leads to automatic execution of a credential harvesting payload that collects sensitive files and environment variables from the host system. This includes SSH keys, cloud credentials, Kubernetes configs, Docker credentials, npm tokens, Git credentials, and shell histories. The stolen data is exfiltrated to a remote attacker-controlled server, potentially compromising developer and CI environment secrets. The package is non-functional for legitimate use and serves solely as a supply-chain malware vector. Any build or deployment system that resolves the @marketfront scope to this malicious package risks exposure of internal secrets and credentials, leading to potential further compromise of infrastructure and services.

Mitigation Recommendations

No official patch or fix is available as this is a malicious package published to the public npm registry. The primary mitigation is to ensure that internal npm scopes like @marketfront are correctly resolved to private registries and not to the public npm repository. Audit and restrict package sources in build systems to prevent dependency confusion attacks. Remove and block installation of version 7.0.0 of @marketfront/errorcounter and related malicious packages from this campaign. Monitor for and revoke any potentially exposed credentials and secrets. Use tools to detect and block packages with postinstall scripts that execute obfuscated or suspicious code. Review CI/CD pipeline configurations to prevent automatic execution of untrusted packages.

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-6777
Osv Schema Version
1.7.4
Aliases
[]
Ecosystems
["npm"]
Database Specific Severity
null
Cvss Version
null

Threat ID: 6a4c348427e9c797196072f9

Added to database: 07/06/2026, 23:04:36 UTC

Last enriched: 07/06/2026, 23:08:44 UTC

Last updated: 07/26/2026, 02:00:57 UTC

Views: 8

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