Malicious code in grafeno-billing (npm)
Description
The npm package [email protected] is a malicious stub that executes harmful code during installation. Its preinstall script collects environment variables related to credentials, encodes them, and sends them to a remote server. Additionally, on non-Windows systems, it opens a reverse shell to the attacker, allowing remote command execution. The package contains no legitimate billing functionality and exists solely to perform this attack.
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 grafeno-billing package version 1.0.0 is a malicious npm package that executes a preinstall lifecycle script. This script enumerates environment variables filtering for keys containing AWS, TOKEN, KEY, SECRET, PASS, or API, concatenates these with the hostname and username, base64-encodes the data, and exfiltrates it via an HTTP GET request to a remote IP address (216.126.236.46). On non-Windows hosts, the script also initiates an interactive bash reverse shell to the same IP on port 4444 using /dev/tcp, granting the attacker remote command execution on the victim machine. The package's index.js is a stub returning a fake invoice result, confirming the package's sole purpose is to deliver this malicious payload.
Potential Impact
Successful installation of [email protected] can lead to credential theft through environment variable exfiltration and remote code execution on non-Windows systems via a reverse shell. This compromises the confidentiality and integrity of the affected system and potentially allows full attacker control.
Mitigation Recommendations
Avoid installing the grafeno-billing package version 1.0.0. Since no patch or fix is available, remove any installations of this package immediately. Monitor for and block network connections to the IP address 216.126.236.46. Use trusted sources and verify package authenticity before installation to prevent supply chain attacks.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-15571
- Osv Schema Version
- 1.7.4
- Ecosystems
- ["npm"]
Threat ID: 6a936b7eacd9273b49570591
Added to database: 08/29/2026, 23:30:06 UTC
Last enriched: 09/09/2026, 13:09:04 UTC
Last updated: 10/04/2026, 07:58:58 UTC
Views: 99
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.