Skip to main content

Malicious code in @s4yhiitestpoc/r2-https (npm)

0
High
Published: 10/11/2026 (10/11/2026, 13:58:38 UTC)
Source: GCVE Database
Product: @s4yhiitestpoc/r2-https

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

npmghsa
@s4yhiitestpoc/r2-https
Affected versions
=1.0.0

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

AILast updated: 10/11/2026, 21:43:44 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses