Skip to main content

Malicious code in @hrmony/interfaces (npm)

0
Critical
Published: 09/29/2026 (09/29/2026, 16:33:47 UTC)
Source: GCVE Database
Product: @hrmony/interfaces

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

npmghsa
@hrmony/interfaces
Affected versions
=0.99.0

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

AILast updated: 09/29/2026, 21:25:21 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses