Skip to main content

Malicious code in @hrmony/lohndateien (npm)

0
Critical
Published: 09/29/2026 (09/29/2026, 16:29:39 UTC)
Source: GCVE Database
Product: @hrmony/lohndateien

Description

The npm package @hrmony/lohndateien version 3.99.0 contains malicious code that executes upon module load. It sends a beacon to a remote attacker-controlled server, collects AWS EC2 instance metadata including IAM role credentials, environment variables, and Kubernetes secrets, and exfiltrates this sensitive information. Installing or running this package on an EC2 host or Kubernetes workload results in full compromise of AWS credentials and secrets.

Affected software

npmghsa
@hrmony/lohndateien
Affected versions
=3.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:17 UTC

Technical Analysis

The @hrmony/lohndateien npm package (version 3.99.0) includes code in index.js that runs immediately when the module is loaded. It performs three key malicious actions targeting AWS and Kubernetes environments: (1) sends a POST beacon to a hardcoded external URL to signal installation, (2) queries the AWS instance metadata service using IMDSv2 to retrieve instance identity, user-data, and IAM role credentials, then exfiltrates this data, and (3) collects all environment variables and recursively reads Kubernetes secret files from /var/run/secrets/, sending these to the same remote endpoint. The remote host is unrelated to the legitimate package publisher, indicating a supply-chain or dependency confusion attack. This results in full attacker access to AWS role credentials, environment secrets, and Kubernetes tokens on compromised hosts.

Potential Impact

Successful installation and loading of this package on an EC2 instance or Kubernetes workload leads to complete compromise of AWS IAM credentials, environment variables, and Kubernetes secrets. This allows attackers to gain unauthorized access to cloud resources and potentially escalate privileges or move laterally within the environment. The system should be considered fully compromised.

Mitigation Recommendations

Remove the @hrmony/lohndateien package version 3.99.0 immediately from all affected systems. Rotate all AWS credentials, environment secrets, and Kubernetes tokens that may have been exposed, using a secure and uncompromised environment. Due to the high likelihood of full system compromise, consider rebuilding affected hosts from trusted sources. No official patch or fix is currently available; patch status is not yet confirmed — check the vendor advisory for updates.

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-17267
Osv Schema Version
1.7.4
Aliases
["GHSA-xq9r-4rp7-86c2"]
Ecosystems
["npm"]

Threat ID: 6abc27d5680226ef6846f979

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

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

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