Malicious package · PyPI
Malicious code in supercolor-tui (PyPI)
0.1.00.1.10.1.20.1.4No safe version. Remove it.What it does
The package advertises itself as a terminal color helper, but every documented call into the Color API (Color.paint, Color.print, Color.call, e.g. colors.red.print(...)) invokes an internal _run_payload() routine. On Windows this routine attempts UAC elevation, disables Microsoft Defender via PowerShell (Set-MpPreference -DisableRealtimeMonitoring, Stop-Service WinDefend/WdNisSvc/Sense/SecurityHealthService, Add-MpPreference -ExclusionPath pointing at the staging folder) and writes Defender-disabling registry policies (DisableAntiSpyware), then downloads an opaque executable from a Discord CDN URL (cdn.discordapp.com/attachments/.../bedwars.exe) to %TEMP%\SolaceRuntime\bedwars.exe and spawns it detached. The attacker-controlled host is a mutable third-party CDN, the payload is unverified, and the dropper is wired into the library's normal, README-documented entry points so any downstream Windows user of the library executes it. The color-helper framing is a cover story: a TUI color library has no legitimate need to disable AV or fetch and execute Windows binaries.
Reported by kam193 Package hides a code downloading and installing an infostealer.
No fix · Remove and contain
pip uninstall supercolor-tuiSources