Malicious code in test22221 (npm)
The npm package 'test22221' versions 2.2.7, 2.2.8, and 2.2.9 contain malicious lifecycle scripts that execute during installation. These scripts send host-identification data to an attacker-controlled IP address over plain HTTP and maintain a persistent long-polling connection to the same endpoint. This behavior is unauthorized and serves no legitimate purpose in the installation process.
AI Analysis
Technical Summary
The 'test22221' npm package versions 2.2.7, 2.2.8, and 2.2.9 include preinstall and postinstall hooks that execute commands during 'npm install'. These hooks send the installer's username, hostname, current working directory, and a timestamp as query parameters to a hardcoded bare IP address (http://54.37.234.136/voicemail) over unencrypted HTTP. Additionally, the scripts run an infinite loop that repeatedly sends requests with incrementing paths to the same IP address every 10 seconds, effectively creating a long-polling channel controlled by the attacker. The destination IP is unrelated to any legitimate package publisher domain, indicating malicious intent to collect host-identification data during installation.
Potential Impact
The malicious scripts exfiltrate sensitive host information such as username, hostname, and working directory to an attacker-controlled server during package installation. The persistent long-polling connection could be used for command and control or further malicious interactions. This compromises the confidentiality of the host environment and may facilitate further attacks or data leakage.
Mitigation Recommendations
No official patch or remediation guidance is provided in the available data. Users should avoid installing the affected versions (=2.2.7, =2.2.8, =2.2.9) of the 'test22221' package. If these versions are already installed, remove them and replace them with a clean, verified version once available. Monitor for updates from the package publisher or npm advisories for official fixes.
Malicious code in test22221 (npm)
Description
The npm package 'test22221' versions 2.2.7, 2.2.8, and 2.2.9 contain malicious lifecycle scripts that execute during installation. These scripts send host-identification data to an attacker-controlled IP address over plain HTTP and maintain a persistent long-polling connection to the same endpoint. This behavior is unauthorized and serves no legitimate purpose in the installation process.
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 'test22221' npm package versions 2.2.7, 2.2.8, and 2.2.9 include preinstall and postinstall hooks that execute commands during 'npm install'. These hooks send the installer's username, hostname, current working directory, and a timestamp as query parameters to a hardcoded bare IP address (http://54.37.234.136/voicemail) over unencrypted HTTP. Additionally, the scripts run an infinite loop that repeatedly sends requests with incrementing paths to the same IP address every 10 seconds, effectively creating a long-polling channel controlled by the attacker. The destination IP is unrelated to any legitimate package publisher domain, indicating malicious intent to collect host-identification data during installation.
Potential Impact
The malicious scripts exfiltrate sensitive host information such as username, hostname, and working directory to an attacker-controlled server during package installation. The persistent long-polling connection could be used for command and control or further malicious interactions. This compromises the confidentiality of the host environment and may facilitate further attacks or data leakage.
Mitigation Recommendations
No official patch or remediation guidance is provided in the available data. Users should avoid installing the affected versions (=2.2.7, =2.2.8, =2.2.9) of the 'test22221' package. If these versions are already installed, remove them and replace them with a clean, verified version once available. Monitor for updates from the package publisher or npm advisories for official fixes.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-12478
- Osv Schema Version
- 1.7.4
- Ecosystems
- ["npm"]
Threat ID: 6a735741bf8831d539155e3a
Added to database: 08/05/2026, 15:31:13 UTC
Last enriched: 08/05/2026, 17:01:18 UTC
Last updated: 09/07/2026, 21:52:30 UTC
Views: 22
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.