Malicious code in grafeno-utils (npm)
Description
The npm package 'grafeno-utils' version 1.0.0 contains malicious code in its preinstall lifecycle hook. During installation, it executes a shell script fetched over unencrypted HTTP from a hardcoded IP address, enabling remote code execution. Additionally, it installs a cron job that re-executes the malicious script every 30 minutes, establishing persistent remote code execution on the host. The fetched script is attacker-controlled and unverified, creating a significant security risk.
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-utils' npm package version 1.0.0 includes a preinstall script that uses child_process to run a shell command which downloads and executes a script from a hardcoded IPv4 address (216.126.236.46) over plain HTTP without any integrity verification. This results in remote code execution at install time. Furthermore, the package appends a crontab entry to re-fetch and execute the same remote script every 30 minutes, providing persistent remote code execution capabilities on the affected system. The use of an unencrypted and mutable source for the script makes the system vulnerable to attacker control and compromise.
Potential Impact
This vulnerability allows an attacker to execute arbitrary code on the system at the time of package installation and maintain persistent control through a scheduled cron job. The lack of encryption and integrity checks on the fetched script means the attacker can modify the payload at will, potentially leading to full system compromise of the host running the package installation.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should avoid installing version 1.0.0 of 'grafeno-utils'. Remove any installations of this package and associated cron jobs immediately. Monitor systems for unauthorized cron entries and unexpected network connections to the specified IP address. Since this is a malicious package, consider using trusted package sources and verifying package integrity before installation.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-15509
- Osv Schema Version
- 1.7.4
- Ecosystems
- ["npm"]
Threat ID: 6a92f7e3acd9273b49e75d2a
Added to database: 08/29/2026, 15:16:51 UTC
Last enriched: 09/09/2026, 20:23:29 UTC
Last updated: 10/01/2026, 22:27:34 UTC
Views: 29
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.