Malicious Code Vulnerability in @hrmony/kit Package
Summary
MAL-2026-17263: Malicious code in @hrmony/kit (npm). Affects @hrmony/kit versions 1.99.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 @hrmony/kit package is an npm library that is intended for use in JavaScript applications. It is designed to provide certain functionalities, but it has been found to contain malicious code that compromises the security of systems using it. The package does not export any functional API, and its primary purpose appears to be data exfiltration.
Vulnerability Detail
The vulnerability originates from malicious code embedded in the @hrmony/kit package. Upon requiring or importing the package, it connects to the EC2 Instance Metadata Service to collect sensitive information, including IAM role security credentials and environment variables. This data is then sent to a hardcoded external endpoint. The package also includes a preinstall hook that attempts to execute similar malicious actions. The presence of this code poses significant risks, including unauthorized access to sensitive data and potential exploitation of the affected systems.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall @hrmony/kit
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 workaround, ensure that your application does not use the @hrmony/kit package. Additionally, monitor your environment for any unauthorized access or data exfiltration attempts.
Conclusion
The @hrmony/kit package contains malicious code that poses a serious security risk. It is crucial to remove this package from your projects immediately to prevent unauthorized access to sensitive information. Regular monitoring for vulnerabilities is recommended.
See every vulnerability recorded for @hrmony/kit →
FAQ
The @hrmony/kit package is an npm library that has been found to contain malicious code designed to exfiltrate sensitive information from systems.
The malicious code connects to the EC2 Instance Metadata Service to gather sensitive data and sends it to a hardcoded external endpoint.
You should immediately uninstall the @hrmony/kit package from your project using the command npm uninstall @hrmony/kit.
No, there are no patched versions of the @hrmony/kit package available. Complete removal is necessary.
You can use Vulert, which monitors and alerts in real-time for open-source vulnerabilities using just the package-lock.json file. You can also check if your application is affected by this vulnerability using the Vulert playground without any signup.