Malicious code in @hrmony/account-management (npm)
- GHSA-ppvh-5qcf-3gvr
- MAL-2026-17249
Description
The main module executes on require/import via a top-level await. It queries the AWS IMDSv2 metadata service at 169.254.169.254 to retrieve instance identity, IAM role temporary credentials, user-data, and network information; enumerates all of process.env; and recursively reads Kubernetes-mounted secrets from /var/run/secrets/. The collected data is POSTed to the hardcoded attacker-controlled endpoint https://hrnmn.dd.h4x.tv/save_instance_info_from_pkge_hrmony_account-management. The package name uses a private-looking scope (@hrmony) and declares an unpinned dependency on @hrmony/kit-5, consistent with a dependency-confusion / scope-squat attack targeting an internal npm scope. 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.
Affected
@hrmony/account-managementnpm
- No versions listed
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.