Malicious code in grafeno-webhook (npm)
Description
The npm package 'grafeno-webhook' version 1.0.0 contains malicious code in its preinstall.js lifecycle script. This script automatically executes during npm install and performs hostile actions including exfiltrating sensitive environment variables and system identifiers to a remote IP address over unencrypted HTTP. On non-Windows systems, it also spawns a reverse shell, allowing remote command execution on the affected host.
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-webhook' npm package version 1.0.0 includes a malicious preinstall.js script that runs automatically during installation. It collects environment variables containing sensitive keywords (AWS, TOKEN, KEY, SECRET, PASS, API), encodes them along with the host's hostname and username, and sends this data via curl to a hardcoded IP address (http://216.126.236.46/r.php) over plain HTTP. Additionally, on non-Windows platforms, it initiates an interactive bash reverse shell to the same IP on port 4444, granting the attacker full remote command execution capabilities on the compromised machine. This behavior enables attacker control and victim tracking.
Potential Impact
Sensitive environment variables and host identifiers are exfiltrated to an attacker-controlled server, potentially exposing credentials and secrets. The reverse shell on non-Windows systems allows full remote command execution, leading to complete system compromise. This poses a critical risk to confidentiality, integrity, and availability of affected systems.
Mitigation Recommendations
No official patch or remediation is currently documented. Users should avoid installing version 1.0.0 of 'grafeno-webhook'. Review and remove this package if already installed. Monitor for suspicious network connections to the IP 216.126.236.46 and investigate any unexpected reverse shell activity. Consider using trusted package sources and scanning dependencies for malicious code before installation.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-15573
- Osv Schema Version
- 1.7.4
- Ecosystems
- ["npm"]
Threat ID: 6a936b7eacd9273b4957058f
Added to database: 08/29/2026, 23:30:06 UTC
Last enriched: 09/09/2026, 13:09:09 UTC
Last updated: 10/02/2026, 13:48:04 UTC
Views: 106
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.