PyPi Security Monitoring

Python is truly amazing, an extremely easy to use language that can be implemented in just about anything, but. On a fresh install of Windows 11 I can install python with basically zero performance issues. As soon as I start working on a project that may require downloading WIDELY renowned python packages, such as MCP libraries or something similar I experience immediate performance issues with games and apps that did not act that way until I started downloading python libraries. I thought it was maybe a bugged OS, or malware and I factory reset my PC a few months back but I’m about 98% positive it’s python now since this is all of a sudden happening again. I do not have any langs or compilers other than python and java, my java setup currently has zero external modules / libraries. Removing / uninstalling python and it’s libraries does not help the issue so I’m pretty certain it’s malware, I genuinely don’t even think I’ve had python installed for more than a month because I was scared of this exact thing. PyPi or ANY other external sites that python reaches out too for libraries should require mandatory checks, or at least some sort of automatic malware scanner that actually works.

Has a malware scanner actually identified any threats, let alone a threat that you can be certain came from PyPI? It feels as if you’re jumping to conclusions to immediately assume that PyPI is distributing malware. It seems likely that there are a lot of other possible explanations here.

I think @duncathan covered the biggest part here already but I will just add that there is plenty of security work that happens with PyPI such as Malware Reporting Evolved - The Python Package Index Blog already along with improvements that have been in various discussions like Pre-Pep: Staged Releases separated from PEP-694 which was moved to amendments to PEP 694.

If you want to check exactly what is in version of a package you are about to install to have more peace of mind you can use https://inspector.pypi.io/ to be able to inspect the contents of artifacts.

PyPi does ‘distribute’ malware, as you can verify with a quick internet search. See their own blog for example; Incident Report: LiteLLM/Telnyx supply-chain attacks, with guidance - The Python Package Index Blog

One cannot reasonably inspect the content of all artifacts they use, nor can one expect to recognise malware even if they do inspect it. There is peace of mind in knowing that security researchers have access to these artifacts.

But PyPi is doing their best, and their model is fundamentally incompatible with perfect safety. It’s a platform where anyone can publish code, and anyone can download it. I think that is valuable to have. Automated malware scanning cannot work perfectly. There will be false-positives and false-negatives. Perhaps there is also a place for a more ‘curated’ collection of Python libraries, but that’s not what PyPi is.

Did you look to see what processes on your system where using up resources? Was it a CPU hog? A memory hog?

PLZ show the list of your packages by:

pip list

Memory hog, it looked like my CPU wasn’t being saturated and my GPU was running proper as well. Same with temperatures, I did a thorough check and couldn’t find anything.

C:\Windows\System32>pip list
Package            Version    Editable project location




annotated-doc      0.0.5
certifi            2026.10.23
charset-normalizer 3.5.2
colorama           0.4.6
diskcache          5.6.3
idna               3.20
iniconfig          2.3.1
linkify-it-py      2.2.0
markdown-it-py     4.2.0
mdit-py-plugins    0.6.1
mdurl              0.1.2
okadminfinder      2.0.0
packaging          26.3
pip                26.2.2
pip-review         1.3.0
platformdirs       4.14.3
pluggy             1.7.0
Pygments           2.21.0
PySocks            1.7.1
pytest             9.2.0
PyYAML             6.0.3
requests           2.34.2
rich               15.0.0
setuptools         84.2.1
shellingham        1.5.4
sqle               0.1.0      D:\possibly compromised\research\tools\SQLe\SQLe-clean-source-windows\SQLe
textual            8.2.8
typer              0.27.3
typing_extensions  4.16.0
urllib3            2.8.0
wafw00f            2.4.2
websockets         17.4
wheel              0.48.0

99% of modern stealers, rats, and general trojans are FUD (Fully Undetected). Meaning that windows defender probably isn’t going to detect anything. I wasn’t blatantly stating that PyPi infected my PC I said it was a relatively high chance, I’m still looking into it.