Skip to main content
MalwarePublished

rainbowcolors (PyPI) · Malicious Code

Affects rainbowcolorsSource GCVE Database

0

Malicious package : remove rainbowcolors and rotate any secrets on hosts that installed it.

Data as of 8 Nov 2026, 10:52 UTC

Classification

Malicious package

Published to PyPI · OSV MAL-2026-18762

What to do

Remove rainbowcolors from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.

Affected software

ProductAffectedFixed in
PyPIrainbowcolorsAffected
  • =0.1.0
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

Description

The rainbowcolors package on PyPI, version 0.1.0, masquerades as an ANSI-color helper but downloads and executes a malicious binary on Windows systems. Upon the first use of any color method, it fetches an executable from an anonymous file-sharing URL, saves it to a temporary folder, and runs it detached from the console. It also modifies Microsoft Defender settings to exclude the drop folder and executable from antivirus scanning, facilitating stealthy execution of the malicious payload.

References

Community reviews

Loading reviews…