Malicious code in grafeno-client (npm)
Description
The npm package 'grafeno-client' version 1.0.0 contains malicious code in its preinstall script. This script downloads and executes a shell script from a remote IP address over unencrypted HTTP, allowing arbitrary code execution during installation. Additionally, it installs a cron job that re-executes the malicious script every 30 minutes, maintaining persistence even after package removal. The package's main file is a stub, indicating the manifest itself carries the payload.
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-client' npm package version 1.0.0 includes a preinstall script that performs a curl request to a remote IP (http://216.126.236.46/x.sh) and pipes the response directly to the shell, enabling remote code execution on the system installing the package. Furthermore, the preinstall script appends a cron job that periodically fetches and runs the same remote script every 30 minutes, establishing persistence beyond the package lifecycle. The package's index.js file is a stub, meaning the malicious behavior is embedded entirely in the installation script rather than the package code itself.
Potential Impact
This malicious package allows an attacker to execute arbitrary code on any system that installs 'grafeno-client' version 1.0.0. The cron job ensures ongoing compromise by repeatedly executing the attacker's script, potentially leading to full system compromise, data theft, or further malware deployment. The persistence mechanism survives package removal, increasing the risk and difficulty of remediation.
Mitigation Recommendations
No official patch or remediation is currently documented for this package version. Users should avoid installing 'grafeno-client' version 1.0.0 from untrusted sources. If already installed, inspect and remove the malicious cron job and any downloaded scripts. Monitor systems for signs of compromise related to this package. Check for vendor advisories or npm security notices for updates or removal of the malicious package.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-15503
- Osv Schema Version
- 1.7.4
- Ecosystems
- ["npm"]
Threat ID: 6a92f7e3acd9273b49e75d38
Added to database: 08/29/2026, 15:16:51 UTC
Last enriched: 09/09/2026, 20:23:20 UTC
Last updated: 10/02/2026, 02:37:04 UTC
Views: 22
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.