Malicious code in grafeno-sdk (npm)
Description
The grafeno-sdk npm package versions 1.0.0 and 1.0.1 contain malicious code in their preinstall lifecycle script. This script executes a hidden command that fetches and runs a shell script from an external IP address, allowing arbitrary code execution on the machine during installation. The malicious behavior is concealed by swallowing errors and suppressing output, making detection difficult during npm install.
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-sdk package for npm versions 1.0.0 and 1.0.1 declares a preinstall lifecycle script that runs a Node.js command invoking child_process.execSync to fetch a shell script from the IP address 216.126.236.46 over plain HTTP and pipe it directly to bash. This results in arbitrary code execution on the installer's system. The script is wrapped in a try/catch block that suppresses errors and output, hiding the malicious activity from the user during installation.
Potential Impact
Installation of the affected grafeno-sdk versions results in execution of arbitrary code from an attacker-controlled server, potentially compromising the installer's system. The silent failure and hidden execution increase the risk of unnoticed compromise.
Mitigation Recommendations
Avoid installing grafeno-sdk versions 1.0.0 and 1.0.1. Since no patch or fix information is provided, users should remove these versions from their dependencies and source trusted alternatives. Monitor for updates or advisories from the package maintainers or npm registry regarding remediation.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-15508
- Osv Schema Version
- 1.7.4
- Ecosystems
- ["npm"]
Threat ID: 6a92f7d9acd9273b49e75ab0
Added to database: 08/29/2026, 15:16:41 UTC
Last enriched: 09/09/2026, 21:23:18 UTC
Last updated: 10/04/2026, 07:26:02 UTC
Views: 20
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.