# MAL-2026-17251: Malicious code in @hrmony/app-gateway-templates (npm)


- **Type:** Malicious package
- **Package:** `@hrmony/app-gateway-templates` (npm)
- **Published:** 29 Sep 2026
- **Also known as:** GHSA-52pw-jwv9-q65v

## What is MAL-2026-17251?

MAL-2026-17251 is a malicious package in @hrmony/app-gateway-templates, published on 29 Sep 2026. 

### Official description

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.

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.

## What should I do about MAL-2026-17251?

Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.

## Fix prompt for AI coding agents

```text
MAL-2026-17251 is a malicious package: @hrmony/app-gateway-templates (npm). Every version was published to cause harm.

Task:
1. Search this repository's dependency manifests and lockfiles for the package, including transitive dependencies.
2. If it is present, remove it, regenerate the lockfile with the project's package manager, and replace whatever it was used for.
3. List any CI runners, developer machines or containers that installed it, so their secrets can be rotated.
4. If the package is not used anywhere, say so and change nothing.

Reference: https://insights.sbomify.com/MAL-2026-17251/ (Markdown: https://insights.sbomify.com/MAL-2026-17251/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/MAL-2026-17251

---
From sbomify Insights: https://insights.sbomify.com/MAL-2026-17251/
Summaries are generated and may contain mistakes; the official description above is the record.
