Skip to content
Heist/ feed
Unrated

Malicious code in @hrmony/hyper-json-builder (npm)

Type: advisorySource: OSV1 source record

--- _-= 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/, 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 guar

Announced Group revision 1
Original source ↗

MAL-2026-17282

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: osv:MAL-2026-17282

@hrmony/hyper-json-builder

Source reference: /affected/0/package/name

Affected versions
1.99.0

Source reference: /affected/0/versions

Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "ranges": [
      {
        "type": "SEMVER",
        "events": [
          {
            "introduced": "0"
          }
        ]
      }
    ],
    "package": {
      "name": "@hrmony/hyper-json-builder",
      "purl": "pkg:npm/%40hrmony/hyper-json-builder",
      "ecosystem": "npm"
    },
    "versions": [
      "1.99.0"
    ],
    "database_specific": {
      "cwes": [
        {
          "name": "Embedded Malicious Code",
          "cweId": "CWE-506",
          "description": "The product contains code that appears to be malicious in nature."
        },
        {
          "name": "Embedded Malicious Code",
          "cweId": "CWE-506",
          "description": "The product contains code that appears to be malicious in nature."
        }
      ],
      "source": "https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@hrmony/hyper-json-builder/MAL-2026-17282.json",
      "indicators": {
        "evidence_files": [
          {
            "path": "index.js",
            "tlsh": "5eb1658542fb0411159f75ab8bbba107903691473948addc3f9c63842f4e4edea61bcd",
            "sha256": "31854f2c30443a2249667df93d37bb89c4ab4eff3309ed28438e5d3fc5fb69a0"
          },
          {
            "path": "package.json",
            "tlsh": "58e02010c530943345c561a61c5ec857f7634e5b441c3c0833eb101cc25eeb314fd769",
            "sha256": "7e9f9191713c13db3094a6b94cd92e24d2124801e2320515bae0d7d15b1e3400"
          }
        ]
      }
    }
  }
]

Publisher severity

No explicit severity was provided.

Event
#29747 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement