MAL-2026-17251

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@hrmony/app-gateway-templates/MAL-2026-17251.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-17251
Aliases
  • GHSA-52pw-jwv9-q65v
Published
2026-09-29T16:33:58Z
Modified
2026-09-29T17:30:14Z
Summary
Malicious code in @hrmony/app-gateway-templates (npm)
Details

-= 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 guarantee that removing the package will remove all malicious software resulting from installing it.

Database specific
{
    "malicious-packages-origins":  [
        {
            "id":  "IN-MAL-2026-020662",
            "import_time":  "2026-09-29T16:45:38.545224048Z",
            "modified_time":  "2026-09-29T16:33:58Z",
            "sha256":  "c7d3f05113dd7daa9fac2da8187afecc751fafcf96449e7f4eb4a5d9a4878844",
            "source":  "amazon-inspector",
            "versions":  [
                "0.0.51"
            ]
        },
        {
            "id":  "GHSA-52pw-jwv9-q65v",
            "import_time":  "2026-09-29T17:25:03.727995654Z",
            "modified_time":  "2026-09-29T17:22:02Z",
            "ranges":  [
                {
                    "events":  [
                        {
                            "introduced":  "0"
                        }
                    ],
                    "type":  "SEMVER"
                }
            ],
            "sha256":  "492e67d0f61f5bb0ccbc153fd4ea19331d3122010eed723829aeeaeb5ebd262e",
            "source":  "ghsa-malware"
        }
    ]
}
References
Credits

Affected packages

npm / @hrmony/app-gateway-templates

Package

Name
@hrmony/app-gateway-templates
View open source insights on deps.dev
Purl
pkg:npm/%40hrmony/app-gateway-templates

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

0.*
0.0.51

Database specific

cwes
[
    {
        "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.",
        "name":  "Embedded Malicious Code"
    }
]
indicators
{
    "evidence_files":  [
        {
            "path":  "index.js",
            "sha256":  "c1302142a2fd2a7213802ff505c8639df3038dd1a2d283430f080d18add68ad2",
            "tlsh":  "36b1768542fb0411159f75ab8bbba1079036d1473948addc3f9c63842f4e4edea61bcd"
        },
        {
            "path":  "package.json",
            "sha256":  "c480df2559f2ebb58fa5c138d92104ef8d311aa683e0973b377ef4a810ef318e",
            "tlsh":  "90e068108130843345d561a24c5e8453b7628e57481c3c0c33ef201c824dab704fe359"
        }
    ],
    "package_integrity":  [
        {
            "filename":  "app-gateway-templates-0.0.51.tgz",
            "hashes":  {
                "sha1":  "807a7ab068ba903017fe0289bb96c93cfece0c32",
                "sha512_sri":  "sha512-kFUcVy+2nl0bf+cjEN/O+XQY++LlJCc5nj1qA/bKB8ZSmIf1Nb/RvyRpIukGYHuYKAeHskh3IpZZcdZ9nvav1A=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@hrmony/app-gateway-templates/MAL-2026-17251.json"