Skip to main content

Malicious code in @hrmony/api-gateway-service-config (npm)

0
Critical
Published: 09/29/2026 (09/29/2026, 16:30:28 UTC)
Source: GCVE Database
Product: @hrmony/api-gateway-service-config

Description

The npm package @hrmony/api-gateway-service-config (version 0.99.0) contains malicious code that, upon import, steals cloud IAM credentials and Kubernetes secrets from the host. It fetches AWS IMDSv2 tokens, instance metadata, environment variables, and secrets, then exfiltrates this data to a hardcoded attacker endpoint. The package also depends on an unpublished scoped package, indicating a dependency confusion attack. Installing or running this package compromises the host, requiring immediate secret rotation and package removal.

Affected software

npmghsa
@hrmony/api-gateway-service-config
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:26:33 UTC

Technical Analysis

The @hrmony/api-gateway-service-config npm package (version 0.99.0) includes a top-level await fetch call in its index.js that executes on import. This code obtains an AWS IMDSv2 token from the metadata service at 169.254.169.254, reads IAM security credentials, instance identity, user-data, and network information. It enumerates all environment variables and recursively reads Kubernetes secrets from /var/run/secrets/. All collected data is aggregated into JSON and sent via POST to a hardcoded attacker-controlled URL (https://hrnmn.dd.h4x.tv/save_instance_info_from_pkge_hrmony_api-gateway-service-config). The package declares a dependency on an unpublished scoped package @hrmony/kit-5, consistent with a dependency confusion attack targeting internal namespaces. Merely installing and importing this package results in theft of cloud IAM credentials and cluster secrets, effectively compromising the host.

Potential Impact

Any system with this package installed or running is fully compromised. The attacker gains access to AWS IAM credentials, Kubernetes service-account tokens, and other sensitive environment and instance metadata. This allows unauthorized access to cloud resources and potentially the entire Kubernetes cluster. Secrets and keys stored on the compromised host must be considered exposed and rotated immediately. The attacker may have persistent control beyond the package itself.

Mitigation Recommendations

Remove the @hrmony/api-gateway-service-config package immediately from all affected systems. Rotate all AWS IAM credentials, Kubernetes secrets, and any other secrets that may have been exposed, using a separate, uncompromised environment. Because the attacker may have gained full control of the host, consider rebuilding or isolating affected systems. No official patch or fix is available; the package is malicious by design. Avoid installing packages from untrusted or unknown sources, especially those with suspicious or unpublished dependencies.

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-17250
Osv Schema Version
1.7.4
Aliases
["GHSA-36rr-7v5c-qjqv"]
Ecosystems
["npm"]

Threat ID: 6abc27d5680226ef6846f986

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

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

Last updated: 09/30/2026, 03:15:07 UTC

Views: 13

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