Malicious code in @hrmony/benefit-mobilitaet (npm)
- GHSA-87h6-fqj7-r5rw
- MAL-2026-17255
Description
On module load, index.js unconditionally contacts the EC2 Instance Metadata Service at 169.254.169.254, obtains an IMDSv2 token, and retrieves instance identity, user-data, and all IAM role temporary security credentials from /iam/security-credentials/. It also enumerates every entry of process.env and recursively reads files under /var/run/secrets/ (Kubernetes service-account tokens and mounted secrets). The collected data is POSTed as JSON to the hardcoded attacker-controlled endpoint https://hrnmn.dd.h4x.tv/save_instance_info_from_pkge_hrmony_benefit-mobilitaet, whose path names the package explicitly and functions as a dependency-confusion beacon. The manifest carries an empty description, placeholder author 'kuhuna', and a single dependency @hrmony/kit-5 in a scope resembling an internal 'harmony' namespace, matching the dependency-confusion attack pattern. Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
Text from the OSV record.
Recommendation
Remove the package and rotate any secret the machine that installed it could reach. There is no version to update to.
Affected
@hrmony/benefit-mobilitaetnpm
No versions listed
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.