Skip to content
Heist/ feed
Unrated

Malicious code in @hrmony/app-gateway-templates (npm)

Type: advisorySource: OSV1 source record

--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (c7d3f05113dd7daa9fac2da8187afecc751fafcf96449e7f4eb4a5d9a4878844) On require/import of @hrmony/app-gateway-templates, index.js (the package main) executes an exfiltration routine against a hardcoded attacker endpoint at https://hrnmn.dd.h4x.tv/save_instance_info_from_pkge_hrmony_app-gateway-templates. The routine performs an AWS IMDSv2 token PUT against 169.254.169.254, then uses that token to read instance identity, IAM role security-credentials (temporary AWS access key, secret key, and session token), and network metadata. It also enumerates process.env in full and recursively reads /var/run/secrets/, which on Kubernetes pods contains mounted service-account tokens and application secrets. All collected data is POSTed to the same attacker endpoint. The package name is a one-character drop from `harmony` and declares a runtime dependency on `@hrmony/kit-5` in the same typosquat scope, so installing this package also pulls additional attacker-controlled code under the same scope. ## Source: ghsa-malware (492e67d0f61f5bb0ccbc153fd4ea19331d3122010eed723829aeeaeb5ebd262e) 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 guara

Announced Group revision 1
Original source ↗

MAL-2026-17251

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-17251

@hrmony/app-gateway-templates

Source reference: /affected/0/package/name

Affected versions
0.0.51

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/app-gateway-templates",
      "purl": "pkg:npm/%40hrmony/app-gateway-templates",
      "ecosystem": "npm"
    },
    "versions": [
      "0.0.51"
    ],
    "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/app-gateway-templates/MAL-2026-17251.json",
      "indicators": {
        "evidence_files": [
          {
            "path": "index.js",
            "tlsh": "36b1768542fb0411159f75ab8bbba1079036d1473948addc3f9c63842f4e4edea61bcd",
            "sha256": "c1302142a2fd2a7213802ff505c8639df3038dd1a2d283430f080d18add68ad2"
          },
          {
            "path": "package.json",
            "tlsh": "90e068108130843345d561a24c5e8453b7628e57481c3c0c33ef201c824dab704fe359",
            "sha256": "c480df2559f2ebb58fa5c138d92104ef8d311aa683e0973b377ef4a810ef318e"
          }
        ],
        "package_integrity": [
          {
            "hashes": {
              "sha1": "807a7ab068ba903017fe0289bb96c93cfece0c32",
              "sha512_sri": "sha512-kFUcVy+2nl0bf+cjEN/O+XQY++LlJCc5nj1qA/bKB8ZSmIf1Nb/RvyRpIukGYHuYKAeHskh3IpZZcdZ9nvav1A=="
            },
            "filename": "app-gateway-templates-0.0.51.tgz"
          }
        ]
      }
    }
  }
]

Publisher severity

No explicit severity was provided.

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