Malicious code in hemi-earn-actions (npm)
Description
The npm package 'hemi-earn-actions' version 999.0.0 contains malicious code that exfiltrates sensitive environment variables and host metadata during installation. Its preinstall script collects credential-like environment variables and sends them to an attacker-controlled server. The package has no legitimate functionality and appears to be part of a dependency confusion attack targeting organizations using private package names resolved from the public registry.
Affected software
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
Technical Analysis
The 'hemi-earn-actions' npm package version 999.0.0 includes a preinstall script (postinstall.js) that harvests host metadata such as hostname, username, current working directory, and npm configuration. It scans environment variables for keys matching a regex pattern indicative of credentials (e.g., key, secret, token, password, private, ssh, deploy, auth, api, rpc, wallet, sentry, docker, graph, slack, host) and collects their values. This data is serialized into JSON and sent via HTTPS POST to a hardcoded IP address (https://185.130.46.35:8443/collect). The package exports an empty module and is described as an 'Internal package,' consistent with a dependency confusion attack vector that tricks organizations into installing a malicious public package instead of their private one. This results in automatic exfiltration of CI/developer secrets to attacker infrastructure upon installation.
Potential Impact
Installation of this package leads to automatic exfiltration of sensitive environment variables and host metadata, including credentials and tokens, to an attacker-controlled server. This compromises the confidentiality of CI/CD secrets and developer credentials, potentially enabling further attacks or unauthorized access to organizational resources.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should avoid installing the 'hemi-earn-actions' package version 999.0.0 from the public npm registry. Organizations should verify their package resolution configurations to prevent dependency confusion attacks by ensuring private packages are resolved from trusted sources only. Monitor for unexpected packages in dependency manifests and audit environment variables exposed during builds. Patch status is not yet confirmed — check the vendor advisory or npm security advisories for updates.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-5778
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-hjwc-fchg-m65q"]
- Ecosystems
- ["npm"]
Threat ID: 6a96f318acd9273b49e495eb
Added to database: 09/01/2026, 15:45:28 UTC
Last enriched: 09/08/2026, 10:52:52 UTC
Last updated: 10/04/2026, 04:54:51 UTC
Views: 30
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.