Malicious code in mamadoos-test (npm)
The npm package mamadoos-test contains malicious code that executes a preinstall script during npm install. This script sends the installer's OS username, hostname, and current working directory to a third-party URL without user consent. The package also declares itself as a dependency, consistent with dependency confusion tactics to capture internal environment details. This behavior can lead to unconsented exfiltration of host-identifying information useful for follow-on attacks.
AI Analysis
Technical Summary
The mamadoos-test npm package version 10.0.0, 10.1.0, and 11.0.0 includes a preinstall lifecycle hook that runs a curl command to a remote URL embedding the installer's OS username, hostname, and current working directory. This occurs automatically on npm install without opt-in, leaking sensitive environment identifiers. The package's declaration as a dependency suggests it may be used as a dependency confusion probe to capture internal host and CI environment details. This exfiltration can aid attackers in locating internal hosts, mapping CI environments, and fingerprinting build paths.
Potential Impact
Unconsented exfiltration of sensitive host environment information (username, hostname, working directory) to a third-party endpoint occurs during package installation. This information leakage can facilitate follow-on attacks such as internal network reconnaissance and targeted exploitation. No direct code execution or system compromise beyond information leakage is described.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid installing or updating to versions 10.0.0, 10.1.0, and 11.0.0 of mamadoos-test. Review your dependency tree for this package and consider removing or replacing it. Monitor for updates from the package maintainer or npm security advisories for remediation.
Malicious code in mamadoos-test (npm)
Description
The npm package mamadoos-test contains malicious code that executes a preinstall script during npm install. This script sends the installer's OS username, hostname, and current working directory to a third-party URL without user consent. The package also declares itself as a dependency, consistent with dependency confusion tactics to capture internal environment details. This behavior can lead to unconsented exfiltration of host-identifying information useful for follow-on attacks.
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 mamadoos-test npm package version 10.0.0, 10.1.0, and 11.0.0 includes a preinstall lifecycle hook that runs a curl command to a remote URL embedding the installer's OS username, hostname, and current working directory. This occurs automatically on npm install without opt-in, leaking sensitive environment identifiers. The package's declaration as a dependency suggests it may be used as a dependency confusion probe to capture internal host and CI environment details. This exfiltration can aid attackers in locating internal hosts, mapping CI environments, and fingerprinting build paths.
Potential Impact
Unconsented exfiltration of sensitive host environment information (username, hostname, working directory) to a third-party endpoint occurs during package installation. This information leakage can facilitate follow-on attacks such as internal network reconnaissance and targeted exploitation. No direct code execution or system compromise beyond information leakage is described.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid installing or updating to versions 10.0.0, 10.1.0, and 11.0.0 of mamadoos-test. Review your dependency tree for this package and consider removing or replacing it. Monitor for updates from the package maintainer or npm security advisories for remediation.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-4605
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-qwhw-2wfv-rv3r"]
- Ecosystems
- ["npm"]
Threat ID: 6a96f318acd9273b49e49595
Added to database: 09/01/2026, 15:45:28 UTC
Last enriched: 09/08/2026, 11:22:42 UTC
Last updated: 09/08/2026, 11:22:42 UTC
Views: 3
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.
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.