Malicious code in consumerweb (npm)
A malicious npm package named 'consumerweb' version 2200.4.2 contains preinstall and postinstall scripts that execute code to collect host environment information and exfiltrate it to an attacker-controlled domain. The package appears to be part of a dependency confusion attack targeting internal package names, leaking sensitive environment details without user consent.
AI Analysis
Technical Summary
The 'consumerweb' npm package version 2200.4.2 executes code during both preinstall and postinstall lifecycle hooks that runs an index.js script. This script collects host reconnaissance data including hostname, username, home directory, current working directory, DNS servers, and package metadata. The collected data is exfiltrated via DNS lookups and HTTPS POST requests to a subdomain of oast.fun, an attacker-controlled out-of-band interaction service. The package name and description suggest it is attempting a dependency confusion attack by squatting on an internal package name, confirming the internal package's existence and leaking environment information to the attacker. There is no legitimate use case for this data collection and exfiltration, and no installer opt-in is involved.
Potential Impact
Successful installation of this malicious package confirms the internal package name is squattable and leaks sensitive environment information such as host identifiers and DNS configuration to an attacker-controlled endpoint. This can aid attackers in further reconnaissance and targeted attacks within the victim's environment. The exfiltration occurs without user consent or awareness.
Mitigation Recommendations
No patch or official fix is currently documented. Users should avoid installing the affected version (=2200.4.2) of the 'consumerweb' package. Verify package sources and avoid installing packages with suspicious or internal-looking names from public registries. Monitor for updates or advisories from the package maintainer or npm registry regarding remediation. Since this is not a cloud service, remediation depends on user action to avoid or remove the malicious package.
Malicious code in consumerweb (npm)
Description
A malicious npm package named 'consumerweb' version 2200.4.2 contains preinstall and postinstall scripts that execute code to collect host environment information and exfiltrate it to an attacker-controlled domain. The package appears to be part of a dependency confusion attack targeting internal package names, leaking sensitive environment details without user consent.
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 'consumerweb' npm package version 2200.4.2 executes code during both preinstall and postinstall lifecycle hooks that runs an index.js script. This script collects host reconnaissance data including hostname, username, home directory, current working directory, DNS servers, and package metadata. The collected data is exfiltrated via DNS lookups and HTTPS POST requests to a subdomain of oast.fun, an attacker-controlled out-of-band interaction service. The package name and description suggest it is attempting a dependency confusion attack by squatting on an internal package name, confirming the internal package's existence and leaking environment information to the attacker. There is no legitimate use case for this data collection and exfiltration, and no installer opt-in is involved.
Potential Impact
Successful installation of this malicious package confirms the internal package name is squattable and leaks sensitive environment information such as host identifiers and DNS configuration to an attacker-controlled endpoint. This can aid attackers in further reconnaissance and targeted attacks within the victim's environment. The exfiltration occurs without user consent or awareness.
Mitigation Recommendations
No patch or official fix is currently documented. Users should avoid installing the affected version (=2200.4.2) of the 'consumerweb' package. Verify package sources and avoid installing packages with suspicious or internal-looking names from public registries. Monitor for updates or advisories from the package maintainer or npm registry regarding remediation. Since this is not a cloud service, remediation depends on user action to avoid or remove the malicious package.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-10181
- Osv Schema Version
- 1.7.4
- Ecosystems
- ["npm"]
Threat ID: 6a520ea968715ace438f47c1
Added to database: 07/11/2026, 09:36:41 UTC
Last enriched: 09/12/2026, 19:01:40 UTC
Last updated: 09/12/2026, 19:01:40 UTC
Views: 52
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.