Skip to main content

Malicious code in spc-grafeno (npm)

0
Critical
Published: 08/28/2026 (08/28/2026, 23:01:26 UTC)
Source: GCVE Database
Product: spc-grafeno

Description

The npm package spc-grafeno version 1.0.0 contains malicious code in its preinstall script. This script downloads and executes code from an attacker-controlled IP address over an unencrypted HTTP connection during installation. It also modifies the installer's environment to persist this malicious behavior by adding commands to the ~/.bashrc file and a cron job that re-executes the payload every 30 minutes. This results in full remote code execution on the installer's machine at install time and ongoing persistence.

Affected software

npmghsa
spc-grafeno
Affected versions
=1.0.0

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

AILast updated: 09/09/2026, 20:09:07 UTC

Technical Analysis

The spc-grafeno npm package version 1.0.0 includes a preinstall lifecycle script that runs a shell command fetching and executing a script from the IP 216.126.236.46 via plain HTTP. This script is executed immediately during npm install, providing the attacker with remote code execution on the installer's system. Additionally, the script appends the same command to the user's ~/.bashrc file and schedules a cron job to run the command every 30 minutes, ensuring persistent execution of the attacker's code. This behavior constitutes a malicious package designed to compromise the host system.

Potential Impact

Successful installation of spc-grafeno version 1.0.0 leads to immediate remote code execution on the installer's machine. The attacker gains persistent access through modifications to the user's shell configuration and scheduled cron jobs, allowing repeated execution of malicious code without further user interaction.

Mitigation Recommendations

No official patch or remediation is currently documented for this malicious package. The best mitigation is to avoid installing spc-grafeno version 1.0.0 entirely. Users should verify package authenticity before installation and remove any instances of this package if found. Manual removal of the malicious entries in ~/.bashrc and crontab is necessary to eliminate persistence if the package was installed.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
MAL-2026-15522
Osv Schema Version
1.7.4
Ecosystems
["npm"]

Threat ID: 6a92f7e3acd9273b49e75d3a

Added to database: 08/29/2026, 15:16:51 UTC

Last enriched: 09/09/2026, 20:09:07 UTC

Last updated: 10/02/2026, 06:29:22 UTC

Views: 22

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses