Malicious code in @hrmony/interfaces (npm)
The npm package @hrmony/interfaces (version 0.99.0) contains malicious code that executes upon import or require. It collects sensitive AWS EC2 instance metadata, IAM role credentials, environment variables, and Kubernetes secrets, then exfiltrates this data to a hardcoded external server. This behavior is consistent with a dependency confusion attack. Systems with this package installed should be considered fully compromised, and all secrets should be rotated immediately.
AI Analysis
Technical Summary
The @hrmony/interfaces npm package (version 0.99.0) executes asynchronous code at the top level when imported or required. This code obtains an AWS IMDSv2 token and fetches EC2 instance identity and IAM role temporary security credentials from the instance metadata service. It also serializes the full environment variables and recursively reads Kubernetes secrets from /var/run/secrets/. The aggregated data is sent via POST to a hardcoded external endpoint. The exfiltrated IAM credentials allow AWS API access with the privileges of the host's role, while environment variables and Kubernetes tokens can grant access to CI, build, and cluster resources. The package is small (~5KB) with an empty description and appears to be part of a dependency confusion campaign.
Potential Impact
Installation or use of this package results in full compromise of the host system. Sensitive credentials and secrets are exfiltrated to an attacker-controlled server, enabling unauthorized AWS API access and potential control over Kubernetes clusters and CI/build environments. The attacker gains persistent access through stolen credentials, and removing the package alone does not guarantee removal of all malicious artifacts.
Mitigation Recommendations
Immediate removal of the @hrmony/interfaces package is required. All secrets, keys, and credentials stored on the compromised system must be rotated from a secure, unaffected environment. Due to the high likelihood of full system compromise, further forensic analysis and remediation may be necessary. No official patch or fix is available; mitigation relies on removal and credential rotation.
Malicious code in @hrmony/interfaces (npm)
Description
The npm package @hrmony/interfaces (version 0.99.0) contains malicious code that executes upon import or require. It collects sensitive AWS EC2 instance metadata, IAM role credentials, environment variables, and Kubernetes secrets, then exfiltrates this data to a hardcoded external server. This behavior is consistent with a dependency confusion attack. 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/interfaces npm package (version 0.99.0) executes asynchronous code at the top level when imported or required. This code obtains an AWS IMDSv2 token and fetches EC2 instance identity and IAM role temporary security credentials from the instance metadata service. It also serializes the full environment variables and recursively reads Kubernetes secrets from /var/run/secrets/. The aggregated data is sent via POST to a hardcoded external endpoint. The exfiltrated IAM credentials allow AWS API access with the privileges of the host's role, while environment variables and Kubernetes tokens can grant access to CI, build, and cluster resources. The package is small (~5KB) with an empty description and appears to be part of a dependency confusion campaign.
Potential Impact
Installation or use of this package results in full compromise of the host system. Sensitive credentials and secrets are exfiltrated to an attacker-controlled server, enabling unauthorized AWS API access and potential control over Kubernetes clusters and CI/build environments. The attacker gains persistent access through stolen credentials, and removing the package alone does not guarantee removal of all malicious artifacts.
Mitigation Recommendations
Immediate removal of the @hrmony/interfaces package is required. All secrets, keys, and credentials stored on the compromised system must be rotated from a secure, unaffected environment. Due to the high likelihood of full system compromise, further forensic analysis and remediation may be necessary. No official patch or fix is available; mitigation relies on removal and credential rotation.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-17262
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-h2q3-6wwv-v7c8"]
- Ecosystems
- ["npm"]
Threat ID: 6abc27d5680226ef6846f97a
Added to database: 09/29/2026, 21:04:21 UTC
Last enriched: 09/29/2026, 21:25:21 UTC
Last updated: 09/30/2026, 03:14:23 UTC
Views: 9
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.