Malware in create-cf-token
Malware was discovered in the npm package create-cf-token. The package grants full system compromise to attackers and should be considered a critical threat to any system where it is installed or running.
- Disclosed
- Last updated
- Blast radius
- Any system with the package installed or running
- Ecosystems
- Attack vectors
- Affected entities
- create-cf-tokennpm package
A malicious package named create-cf-token was published to npm and contains malware that compromises affected systems. According to the GitHub Advisory (GHSA-cf4c-f3hr-3wh4), any computer with this package installed or running should be considered fully compromised.\n\nThe advisory recommends that all secrets and keys stored on affected computers be rotated immediately from a different, uncompromised system. While the package should be removed, the advisory notes that full control of the computer may have been given to an outside entity, meaning removal of the package alone may not eliminate all malicious software that resulted from the installation.\n\nThis represents a critical supply chain attack through a compromised npm package with potential for widespread impact across any development or production environments where it was installed.
Indicators of compromise
- Packages
- create-cf-token
Remediation
- Immediately remove the create-cf-token package from all systems
- Rotate all secrets, API keys, and credentials from a different, uncompromised computer
- Perform a full security audit and malware scan of any system that had the package installed
- Review system logs and network traffic for signs of unauthorized access or data exfiltration
- Consider the affected system(s) potentially fully compromised and plan for complete rebuild if critical infrastructure
- Check for any other suspicious packages or modifications to the system
Sources
- GitHub Advisory GHSA-cf4c-f3hr-3wh4 · GitHub Advisory Database
Cite this entry
"Malware in create-cf-token." supplychainattack.org, Supply Chain Attack Incident Catalog. Disclosed August 4, 2026; last updated August 4, 2026. https://supplychainattack.org/incident/malware-in-create-cf-token-87ia5u
Suggest a correction
Found an error or have a newer source? Corrections to factual errors take priority over new entries.
Related incidents
- containedcritical
Malicious code in @zzzgenesis00/bip39-generator (npm)
The npm package @zzzgenesis00/bip39-generator version 3.1.2 was identified as malicious by the OpenSSF Package Analysis project. The package communicates with a domain associated with malicious activity.
npmCompromised package - containedcritical
Malicious code in exnesss (npm)
The npm package 'exnesss' version 0.0.1 was identified as malicious by the OpenSSF Package Analysis project. The package communicates with a domain associated with malicious activity.
npmCompromised package - activecritical
Malware in flat-cache
Malware was discovered in the flat-cache npm package. Systems with the package installed or running are considered fully compromised, with potential for complete system takeover and credential theft.
npmCompromised package - containedcritical
Malware in keyv
Malware was discovered in the keyv npm package. Systems with the package installed or running should be considered fully compromised, with all secrets and keys requiring immediate rotation from a different computer.
npmCompromised package