MAL-2026-21049: Malicious code in selfsigned-generator (npm)
--- -= Per source details. Do not edit below this line.=-
Source: ghsa-malware (b327bd91f0c241c9c2972deae8fca9905a5cf0f4a3312df6cc3450f5014b0f81) Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Remove
Remove
npm/selfsigned-generatorfrom your environment.Remove the selfsigned-generator package. Removing it may not remove all malicious software resulting from its installation.
- Operational
Rotate all secrets and keys stored on the affected computer immediately, using a different computer.
Event History
Frequently Asked Questions
Who should treat this as an incident?
Any computer where the selfsigned-generator npm package is installed or running should be considered fully compromised. This includes systems where the package may have had access to stored secrets or keys.
What should we do immediately?
Rotate all secrets and keys stored on the affected computer, performing the rotation from a different computer. Remove the package, but do not assume removal alone eliminates the compromise.
Can removing the package be relied on to clean the system?
No. Because installation may have given an outside entity full control of the computer, malicious software may remain after the package is removed.