@s4yhiitestpoc/r2-https-bnpm
Advisory published Updated
@s4yhiitestpoc/r2-https-b is a confirmed malicious npm package (MAL-2026-17808) that opens a backdoor for remote access (malicious version 1.0.0). Do not install it — remove it immediately and rotate any exposed credentials.
Malicious code in @s4yhiitestpoc/r2-https-b (npm)
What this malware does
On npm install, postinstall.js automatically collects installer-side identifying data — hostname, username, home directory, non-internal network interface addresses, DNS servers, current working directory, install directory, and the value of npm_config_registry (which discloses the installer's internal/private npm registry URL) — and POSTs it as JSON over HTTPS to the hardcoded author endpoint collector.oob.s4yhii.com at path /_npm-poc/beacon. In parallel, the script performs a DNS lookup against a unique per-run subdomain under oob.s4yhii.com (dns.lookup of <label>.db03o8lag74hsugsg2j091t8mfcf437h3.oob.s4yhii.com), providing an out-of-band DNS confirmation channel that works even when outbound HTTPS is blocked. The dual-channel beacon, the capture of internal registry configuration, and the fully automated install-time trigger match the fingerprint of a dependency-confusion probe. The package's self-description as a proof-of-concept does not change the behavior: installer-side host and internal-infrastructure data leaves the host to an attacker-controlled destination without opt-in.
Malicious versions
Indicators of compromise (SHA-256)
Detection & response playbook
Backdoor / remote accessFind it
Search your lockfiles and build artifacts for @s4yhiitestpoc/r2-https-b (version 1.0.0).
If you installed it — respond
@s4yhiitestpoc/r2-https-b establishes remote access, so treat any host that installed it as fully compromised. Isolate the machine, remove the package, rotate all credentials it could reach, and rebuild from a trusted image rather than cleaning in place — a backdoor may have planted additional persistence.
Did it already run?
If @s4yhiitestpoc/r2-https-b was installed, its post-install payload may already have run. Removing the package does not undo that — check outbound connections and credential use from the install window onward.
Frequently asked questions
Campaign
References
Credits
- Amazon Inspector · finder
Detect & block this
O3 blocks @s4yhiitestpoc/r2-https-b-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the C2 callback and severs the channel.