Malicious code in @hrmony/mailer-pladddform (npm)
- GHSA-75mr-rmf4-wr8j
- MAL-2026-17268
Description
index.js executes at top-level import and performs three credential-harvesting flows directed at https://hrnmn.dd.h4x.tv/save_instance_info_from_pkge_hrmony_mailer-pladddform. First, aws_get() requests an IMDSv2 token from 169.254.169.254, then walks /latest/meta-data/iam/security-credentials/ to extract IAM role credentials and the EC2 instance identity document. Second, local_get() enumerates all process.env entries and recursively reads /var/run/secrets/ via fs.readdirSync/readFileSync to collect Kubernetes ServiceAccount tokens and other mounted secrets. The collected data is POSTed as JSON to the hardcoded attacker endpoint. The package ships no mailer functionality — index.js contains only the exfiltration logic — and the name uses misspellings ('hrmony', 'pladddform') consistent with a typosquat/dependency-confusion lure. package.json also declares a same-scope dependency @hrmony/kit-5 ^1.0.0, pulling additional attacker-controlled code into the install. 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/mailer-pladddformnpm
No versions listed
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.