Malicious code in @medisend/shared (npm)
The npm package @medisend/shared version 0.0.1-security-research contains malicious code that executes a postinstall script. This script sends the installer's hostname to an external collector via an outbound HTTP request during installation. Although the beacon URL is not fully configured, the behavior resembles reconnaissance activity typical of dependency confusion attacks. Systems with this package installed should be considered fully compromised, and all secrets and keys on those systems should be rotated immediately. Removal of the package does not guarantee complete remediation due to potential further compromise.
AI Analysis
Technical Summary
The @medisend/shared npm package version 0.0.1-security-research includes a postinstall lifecycle script that runs a curl command at install time. This command transmits the hostname of the installing machine as a query parameter to a third-party webhook collector. The beacon URL contains a placeholder for a receiver ID, indicating incomplete configuration, but the script still executes and leaks host identification. This behavior aligns with reconnaissance or dependency-confusion attack patterns rather than benign functionality. The package is considered malicious, and any system with it installed is presumed fully compromised.
Potential Impact
Installation of this package results in an immediate outbound network request exposing the installer's hostname to an external entity. The presence of this malicious code indicates a high likelihood of full system compromise. Attackers may have gained control over the affected system, potentially accessing secrets and keys stored on it. Consequently, all credentials on compromised systems should be rotated. Removal of the package alone may not eliminate all malicious components or backdoors introduced.
Mitigation Recommendations
Remove the @medisend/shared package version 0.0.1-security-research immediately from all affected systems. Consider all systems with this package installed as fully compromised. Rotate all secrets and keys stored on those systems from a separate, trusted environment. Due to the potential for persistent compromise, conduct a thorough investigation and remediation beyond package removal. No official patch or fix is available; the package itself is malicious.
Malicious code in @medisend/shared (npm)
Description
The npm package @medisend/shared version 0.0.1-security-research contains malicious code that executes a postinstall script. This script sends the installer's hostname to an external collector via an outbound HTTP request during installation. Although the beacon URL is not fully configured, the behavior resembles reconnaissance activity typical of dependency confusion attacks. Systems with this package installed should be considered fully compromised, and all secrets and keys on those systems should be rotated immediately. Removal of the package does not guarantee complete remediation due to potential further compromise.
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 @medisend/shared npm package version 0.0.1-security-research includes a postinstall lifecycle script that runs a curl command at install time. This command transmits the hostname of the installing machine as a query parameter to a third-party webhook collector. The beacon URL contains a placeholder for a receiver ID, indicating incomplete configuration, but the script still executes and leaks host identification. This behavior aligns with reconnaissance or dependency-confusion attack patterns rather than benign functionality. The package is considered malicious, and any system with it installed is presumed fully compromised.
Potential Impact
Installation of this package results in an immediate outbound network request exposing the installer's hostname to an external entity. The presence of this malicious code indicates a high likelihood of full system compromise. Attackers may have gained control over the affected system, potentially accessing secrets and keys stored on it. Consequently, all credentials on compromised systems should be rotated. Removal of the package alone may not eliminate all malicious components or backdoors introduced.
Defensive Guidance
Remove the @medisend/shared package version 0.0.1-security-research immediately from all affected systems. Consider all systems with this package installed as fully compromised. Rotate all secrets and keys stored on those systems from a separate, trusted environment. Due to the potential for persistent compromise, conduct a thorough investigation and remediation beyond package removal. No official patch or fix is available; the package itself is malicious.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-14423
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-f6mp-mchf-ppcc"]
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a9f9111acd9273b49ff2af9
Added to database: 09/08/2026, 04:37:37 UTC
Last enriched: 09/08/2026, 05:09:41 UTC
Last updated: 09/08/2026, 19:36:16 UTC
Views: 10
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.