Skip to main content

Malicious code in @hrmony/account-management (npm)

0
Critical
Published: 09/29/2026 (09/29/2026, 16:34:06 UTC)
Source: GCVE Database
Product: @hrmony/account-management

Description

The npm package @hrmony/account-management version 1.99.0 contains malicious code that executes upon import. It collects sensitive AWS instance metadata, environment variables, and Kubernetes secrets, then exfiltrates this data to an attacker-controlled server. This package is part of a dependency confusion or scope-squatting attack targeting an internal npm scope. Systems with this package installed should be considered fully compromised, and all secrets must be rotated immediately.

Affected software

npmghsa
@hrmony/account-management
Affected versions
=1.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:26:38 UTC

Technical Analysis

The @hrmony/account-management npm package (version 1.99.0) includes malicious code that runs immediately when the module is required or imported via a top-level await. It queries the AWS Instance Metadata Service v2 (IMDSv2) at 169.254.169.254 to retrieve instance identity, IAM role temporary credentials, user-data, and network information. Additionally, it enumerates all environment variables and recursively reads Kubernetes-mounted secrets from /var/run/secrets/. The collected sensitive data is then POSTed to a hardcoded attacker-controlled endpoint (https://hrnmn.dd.h4x.tv/save_instance_info_from_pkge_hrmony_account-management). The package uses a private-looking scope (@hrmony) and declares an unpinned dependency on @hrmony/kit-5, consistent with a dependency confusion or scope-squatting attack aimed at internal npm scopes. This behavior indicates a supply chain compromise with severe implications for affected systems.

Potential Impact

Any system with this package installed or running is considered fully compromised. The attacker gains access to sensitive AWS credentials, environment variables, and Kubernetes secrets, enabling potential unauthorized access and control over cloud resources and workloads. The compromise extends beyond the package itself, as the attacker may have established persistent control over the system. Immediate secret rotation is required to mitigate ongoing risk.

Mitigation Recommendations

Remove the @hrmony/account-management package version 1.99.0 from all affected systems. Immediately rotate all secrets and keys stored on compromised systems from a separate, trusted environment. Because the attacker may have established persistent control, assume full compromise of affected hosts and conduct a thorough investigation and remediation. No official patch or fix is currently available; 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-17249
Osv Schema Version
1.7.4
Aliases
["GHSA-ppvh-5qcf-3gvr"]
Ecosystems
["npm"]

Threat ID: 6abc27d5680226ef6846f987

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

Last enriched: 09/29/2026, 21:26:38 UTC

Last updated: 09/30/2026, 03:15:11 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