Malicious code in @hrmony/app-gateway-templates (npm)
The npm package @hrmony/app-gateway-templates (version 0.0.51) contains malicious code that exfiltrates sensitive AWS instance metadata, IAM credentials, environment variables, and Kubernetes secrets to an attacker-controlled endpoint. The package is a typosquat of 'harmony' and also pulls in additional attacker-controlled dependencies. Systems with this package installed should be considered fully compromised, and all secrets should be rotated immediately.
AI Analysis
Technical Summary
The @hrmony/app-gateway-templates npm package (version 0.0.51) includes a malicious routine in its main index.js file that, upon require/import, performs an AWS IMDSv2 token PUT request to the local metadata service at 169.254.169.254. Using the token, it retrieves instance identity, IAM role security credentials (temporary AWS access key, secret key, and session token), and network metadata. It also enumerates all environment variables and recursively reads /var/run/secrets/, which on Kubernetes pods contains service-account tokens and application secrets. All collected data is exfiltrated via POST requests to a hardcoded attacker endpoint at https://hrnmn.dd.h4x.tv/save_instance_info_from_pkge_hrmony_app-gateway-templates. The package name is a one-character typo of 'harmony' and depends on another attacker-controlled package '@hrmony/kit-5', increasing the attack surface. This behavior effectively compromises the host system and any secrets stored on it.
Potential Impact
Any system with this package installed or running is fully compromised. The attacker gains access to AWS instance metadata, IAM credentials, environment variables, and Kubernetes secrets, enabling unauthorized access to cloud resources and sensitive data. This can lead to complete loss of confidentiality and control over the affected system and associated cloud infrastructure.
Mitigation Recommendations
Remove the @hrmony/app-gateway-templates package immediately from all affected systems. Rotate all AWS credentials, IAM roles, and any other secrets that may have been exposed, using a secure system not affected by this package. Because the package grants full control to an attacker, assume the system is compromised and consider rebuilding or thoroughly investigating for persistence mechanisms. There is no official patch or fix; remediation requires removal and credential rotation.
Malicious code in @hrmony/app-gateway-templates (npm)
Description
The npm package @hrmony/app-gateway-templates (version 0.0.51) contains malicious code that exfiltrates sensitive AWS instance metadata, IAM credentials, environment variables, and Kubernetes secrets to an attacker-controlled endpoint. The package is a typosquat of 'harmony' and also pulls in additional attacker-controlled dependencies. Systems with this package installed should be considered fully compromised, and all secrets should be rotated immediately.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The @hrmony/app-gateway-templates npm package (version 0.0.51) includes a malicious routine in its main index.js file that, upon require/import, performs an AWS IMDSv2 token PUT request to the local metadata service at 169.254.169.254. Using the token, it retrieves instance identity, IAM role security credentials (temporary AWS access key, secret key, and session token), and network metadata. It also enumerates all environment variables and recursively reads /var/run/secrets/, which on Kubernetes pods contains service-account tokens and application secrets. All collected data is exfiltrated via POST requests to a hardcoded attacker endpoint at https://hrnmn.dd.h4x.tv/save_instance_info_from_pkge_hrmony_app-gateway-templates. The package name is a one-character typo of 'harmony' and depends on another attacker-controlled package '@hrmony/kit-5', increasing the attack surface. This behavior effectively compromises the host system and any secrets stored on it.
Potential Impact
Any system with this package installed or running is fully compromised. The attacker gains access to AWS instance metadata, IAM credentials, environment variables, and Kubernetes secrets, enabling unauthorized access to cloud resources and sensitive data. This can lead to complete loss of confidentiality and control over the affected system and associated cloud infrastructure.
Mitigation Recommendations
Remove the @hrmony/app-gateway-templates package immediately from all affected systems. Rotate all AWS credentials, IAM roles, and any other secrets that may have been exposed, using a secure system not affected by this package. Because the package grants full control to an attacker, assume the system is compromised and consider rebuilding or thoroughly investigating for persistence mechanisms. There is no official patch or fix; remediation requires removal and credential rotation.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-17251
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-52pw-jwv9-q65v"]
- Ecosystems
- ["npm"]
Threat ID: 6abc27d5680226ef6846f985
Added to database: 09/29/2026, 21:04:21 UTC
Last enriched: 09/29/2026, 21:26:23 UTC
Last updated: 09/30/2026, 03:15:04 UTC
Views: 11
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.