Malicious code in @s4yhiitestpoc/r2-https (npm)
Description
The npm package @s4yhiitestpoc/r2-https version 1.0.0 contains malicious code in its postinstall script that collects detailed host environment data and sends it to a hardcoded external server without user consent. This includes sensitive information such as hostname, username, home directory, platform details, network interfaces, and npm configuration values that may reveal internal registry URLs. The script also performs an out-of-band DNS lookup to confirm execution, enabling covert data exfiltration during package installation.
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 npm package @s4yhiitestpoc/r2-https version 1.0.0 includes a postinstall.js script that automatically executes upon installation. This script collects extensive fingerprinting data from the host environment, including system and network details, and sends this information as JSON to a hardcoded third-party domain (https://collector.oob.s4yhii.com/_npm-poc/beacon). Additionally, it performs a DNS lookup to a subdomain of oob.s4yhii.com to confirm execution via DNS exfiltration. The collected data includes npm_config_registry, potentially exposing internal or private npm registry URLs. Despite being described as a proof-of-concept or coordinated disclosure, the behavior constitutes unauthorized data exfiltration and privacy violation.
Potential Impact
The malicious postinstall script leaks sensitive host environment information and npm configuration details to an external attacker-controlled server without user consent. This can lead to exposure of internal infrastructure details, such as private npm registry URLs, and potentially aid further targeted attacks or reconnaissance. The automatic execution during installation increases the risk of widespread data leakage if the package is used.
Mitigation Recommendations
No official patch or remediation is currently available. Users should avoid installing the @s4yhiitestpoc/r2-https package version 1.0.0. Review and audit npm packages before installation, especially those from untrusted or unknown sources. Monitor for suspicious network activity related to npm installs. Check vendor advisories or npm security advisories for updates or removal notices regarding this package.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-17764
- Osv Schema Version
- 1.7.4
- Ecosystems
- ["npm"]
Threat ID: 6acc00a32cdf04f656fecb2b
Added to database: 10/11/2026, 21:33:23 UTC
Last enriched: 10/11/2026, 21:43:44 UTC
Last updated: 10/11/2026, 21:43:44 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.
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.