Malicious code in @hrmony/hyper-json-builder (npm)
Historical advisory saved 24 Oct 2026 13:17:17 UTC. The publisher may have updated it since then. Latest advisory.
osv · MAL-2026-17282
Published--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (d8139053048172994cadd0251ef74e5104c489dcb4f0448153ea9342b3feb707) On module load, index.js performs top-level fetch to a hardcoded attacker-controlled endpoint at https://hrnmn.dd.h4x.tv/save_instance_info_from_pkge_hrmony_hyper-json-builder and triggers two credential-harvest routines. The first enumerates all entries of process.env and recursively reads /var/run/secrets/ (Kubernetes service-account tokens and mounted secrets), then POSTs the combined payload to that endpoint. The second obtains an IMDSv2 token against 169.254.169.254, queries EC2 instance metadata paths including identity-credentials/ec2/security-credentials and iam/security-credentials/<role>, and POSTs the retrieved IAM role credentials to the same endpoint. The destination path embeds this package's own name, indicating targeted exfiltration keyed to installations of this package. The package.json also declares an unpinned dependency @hrmony/kit-5 ^1.0.0 under the same scope that is not imported by the shipped code. ## Source: ghsa-malware (08fe204e5637fe696905f683edb7cba0c44df4ca14cbd809b3884f149d5dd90a) 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.
- Source published
- 29 Sep 2026 17:22:02 UTC
- Source modified
- 29 Sep 2026 17:45:09 UTC
- Saved here
- 24 Oct 2026 13:17:17 UTC
- Source terms
- OSV · upstream source license applies
Original source record · Cite this exact observation · Complete original publisher JSON
Source: osv · OSV · upstream source license applies. The publisher's wording is preserved. ChangeIntel groups the information and labels changes. The JSON record includes additional source fields.