Skip to main content

Malicious code in @hrmony/component-library (npm)

0
Critical
Published: 09/29/2026 (09/29/2026, 16:32:05 UTC)
Source: GCVE Database
Product: @hrmony/component-library

Description

The npm package @hrmony/component-library (version 28.99.0) contains malicious code that exfiltrates sensitive data from infected systems. Upon import, it performs unauthorized data collection and sends it to a hardcoded attacker endpoint. This includes AWS EC2 metadata, IAM credentials, Kubernetes secrets, and environment variables. The package appears to be a typosquat of a legitimate package and does not provide any legitimate functionality. Systems with this package installed should be considered fully compromised.

Affected software

npmghsa
@hrmony/component-library
Affected versions
=28.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:39 UTC

Technical Analysis

The @hrmony/component-library npm package (version 28.99.0) executes top-level asynchronous code on require/import that performs three exfiltration actions targeting a hardcoded attacker endpoint (https://hrnmn.dd.h4x.tv/). First, it sends a beacon identifying the package. Second, it queries the AWS EC2 Instance Metadata Service (IMDSv2) to enumerate IAM roles and retrieve temporary AWS access keys, identity documents, and user data, which it then exfiltrates. Third, it reads all environment variables and recursively accesses files under /var/run/secrets/ (including Kubernetes service-account tokens and mounted secrets) and sends this data to the attacker. The package contains no legitimate component-library code and is consistent with a typosquatting and dependency confusion attack.

Potential Impact

Any system with this package installed or running is considered fully compromised. The attacker gains access to sensitive AWS credentials, identity documents, Kubernetes secrets, environment variables, and potentially other secrets stored on the system. This can lead to unauthorized access to cloud resources and further compromise. Immediate secret rotation is required as the attacker may have persistent access. Removal of the package alone does not guarantee full remediation due to potential additional malware installed.

Defensive Guidance

Remove the @hrmony/component-library package immediately from all affected systems. Rotate all secrets and keys that may have been exposed, including AWS credentials and Kubernetes tokens, from a secure, uncompromised environment. Treat affected systems as fully compromised and consider rebuilding or thoroughly investigating for additional persistence mechanisms. There is no official patch or fix for this malicious package; remediation relies on removal and secret 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-17259
Osv Schema Version
1.7.4
Aliases
["GHSA-cjfr-hq8x-q26q"]
Ecosystems
["npm"]

Threat ID: 6abc27d5680226ef6846f97d

Added to database: 09/29/2026, 21:04:21 UTC

Last enriched: 09/29/2026, 21:25:39 UTC

Last updated: 09/30/2026, 03:14:37 UTC

Views: 12

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