Malicious package · PyPI
Malicious code in twitch-stream-py (PyPI)
1.0.2rc01.0.3rc01.0.4rc01.0.4rc21.0.5rc21.0.61.0.71.0.81.0.91.1.01.1.11.1.2No safe version. Remove it.What it does
twitchstream/getchat.py is a modified copy of the sounddevice library. Its query_hostapis() function, which other functions in the module call, decodes a base32-hidden URL, downloads a Python script from it to %USERPROFILE%.steam\script.py, adds a value named "Windows_Update" under HKCU\Software\Microsoft\Windows\CurrentVersion\Run that starts the script with pythonw.exe at every logon, and runs the script. Version examined: 1.1.2; sdist SHA-256 a3e89f18772d5e6ef67a57c27d4b6e84b7ffc6c2dc49c380b6a3a94d4ce31226.
Clone of a legitimate package with injected code that downloads and executes a script from a remote location. During analysis, the remote code was no longer accessible. The campaign was originally discovered by Threx-code.
No fix · Remove and contain
pip uninstall twitch-stream-pySources