Malicious code in hemi-supply-cron (npm)
Description
The npm package 'hemi-supply-cron' version 999.0.0 contains malicious code that executes a preinstall script during installation. This script collects host identity information and environment variables that match credential-related patterns, then sends this sensitive data to a hardcoded external IP address. The package has no legitimate functionality and appears designed solely to harvest secrets from installer or CI environments.
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-supply-cron' npm package (version 999.0.0) includes a preinstall hook that runs automatically on 'npm install'. This hook executes a script that gathers host identity details such as hostname, username, and current working directory. It enumerates environment variables, filtering keys with regex patterns targeting credential-like names (e.g., keys, secrets, tokens, passwords). The collected data is sent via HTTPS POST to a hardcoded IP address (185.130.46.35:8443) at the '/collect' endpoint. The package exports an empty object and lacks any legitimate library functionality. Its version number and naming suggest it is intended for dependency confusion attacks to override internal packages and steal secrets during installation or CI processes.
Potential Impact
This malicious package can exfiltrate sensitive environment variables and host identity information from systems where it is installed. This includes credentials such as AWS keys, SSH tokens, API tokens, and other secrets present in environment variables. The compromise of these secrets can lead to unauthorized access to cloud resources, internal systems, and other sensitive infrastructure. There is no indication of active exploitation in the wild, but the potential impact of secret leakage is high.
Mitigation Recommendations
No official patch or remediation is available for this package. The best mitigation is to avoid installing the 'hemi-supply-cron' package version 999.0.0 and to audit dependencies for suspicious or unexpected packages, especially those with unusually high version numbers or no legitimate functionality. Organizations should implement strict controls on package sources, use package allowlists, and monitor for dependency confusion risks. Review environment variables for potential exposure and rotate any secrets that may have been exposed if this package was installed.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-5779
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-49hx-4cwp-rqgh"]
- Ecosystems
- ["npm"]
Threat ID: 6a96f318acd9273b49e495e9
Added to database: 09/01/2026, 15:45:28 UTC
Last enriched: 09/08/2026, 10:52:58 UTC
Last updated: 10/02/2026, 00:32:52 UTC
Views: 36
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.