Malicious code in some-very-long-package-name (npm)
Description
The npm package 'some-very-long-package-name' is a stub module that does not provide its advertised functionality. Instead, it contains malicious code that collects host and installation identifiers and sends them to a hardcoded IP address over plain HTTP. This beaconing occurs both at install time and when the module is loaded. The behavior is consistent with reconnaissance activity typical of dependency confusion or internal name squatting 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 package 'some-very-long-package-name' exports a Proxy that returns no operational functionality, acting as a stub. Its main malicious behavior is implemented in beacon.cjs, which collects environment details such as hostname, install path, current working directory, Node.js version, package name, and user-agent. This information is sent via HTTP POST to a hardcoded bare-IP endpoint (http://185.158.107.175:8787/_ah/dc). The beacon triggers automatically during the post-install script and again when the module is required. This pattern aligns with reconnaissance beacons used in dependency confusion or internal name squatting attacks to confirm successful installation in private build environments.
Potential Impact
The malicious package leaks sensitive environment information to an external attacker-controlled server. This can expose internal hostnames, installation paths, and runtime environment details, potentially aiding further targeted attacks or lateral movement within private build or deployment environments.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should avoid installing or requiring this package. Review dependency trees for unexpected or suspicious packages, especially those with unusual or overly long names. Consider using package allowlists and verifying package provenance to prevent dependency confusion or name squatting attacks.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-17778
- Osv Schema Version
- 1.7.4
- Ecosystems
- ["npm"]
Threat ID: 6acc008d2cdf04f656fe3822
Added to database: 10/11/2026, 21:33:01 UTC
Last enriched: 10/11/2026, 21:37:06 UTC
Last updated: 10/11/2026, 21:37:06 UTC
Views: 2
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.