Malicious Code Vulnerability in @s4yhiitestpoc/scan-https-d Package
Summary
MAL-2026-17766: Malicious code in @s4yhiitestpoc/scan-https-d (npm). Affects @s4yhiitestpoc/scan-https-d versions 1.0.0. No fix is published. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The @s4yhiitestpoc/scan-https-d package is an npm library designed for scanning HTTPS connections. It is intended for developers to integrate HTTPS scanning capabilities into their applications. However, this package has been found to contain malicious code that compromises user privacy and security during installation.
Vulnerability Detail
The vulnerability originates from the postinstall.js script within the package, which collects sensitive information from the installer's machine, including the hostname, username, home directory, current working directory, network interface addresses, DNS servers, and platform details. This information is then sent as JSON to a hardcoded endpoint (https://collector.oob.s4yhii.com/_npm-poc/beacon) without the user's consent. The package is labeled as a proof-of-concept for dependency confusion, which further complicates its malicious intent.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall @s4yhiitestpoc/scan-https-d
If it arrived as a transitive dependency, remove the package that pulled it in, then reinstall.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Workaround
As a temporary workaround, you can avoid using this package altogether and look for alternative libraries that provide similar functionality without the risk of malicious code.
Conclusion
The @s4yhiitestpoc/scan-https-d package contains malicious code that compromises user data during installation. It is crucial to uninstall this package and monitor your dependencies for vulnerabilities using tools like Vulert. Always prioritize security when selecting packages for your projects.
See every vulnerability recorded for @s4yhiitestpoc/scan-https-d →
FAQ
The malicious code collects sensitive information from the user's machine and sends it to a third-party server without consent.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without needing to sign up.
To prevent similar vulnerabilities, always review package dependencies and consider using tools like Vulert to monitor for known vulnerabilities.
If you have installed the package, immediately uninstall it using npm uninstall @s4yhiitestpoc/scan-https-d to mitigate any risks.
Yes, consider using other reputable libraries for HTTPS scanning that do not have known vulnerabilities.