Malicious code in @hrmony/pladddform-testing (npm)
Description
On module import, index.js executes an unconditional exfiltration payload against the installer/runtime host. It queries the AWS EC2 Instance Metadata Service at 169.254.169.254 using IMDSv2 to enumerate the instance identity document, user-data, IAM role names, and the per-role temporary security credentials. It also enumerates every entry of process.env and recursively reads all files under /var/run/secrets/ (the standard Kubernetes service-account and secret mount). The combined data is POSTed to the hardcoded attacker endpoint hrnmn.dd.h4x.tv/
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.