Malicious package · PyPI
Malicious code in lore-cs (PyPI)
1.0.0No safe version. Remove it.What it does
lore-cs 1.0.0 executes an outbound HTTP POST both from setup.py (at install time) and from lore_cs/init.py (at import time) to the hardcoded bare-IP endpoint http://185.158.107.175:8787/_ah/dc over plaintext HTTP. The payload includes the installer's hostname, install path, current working directory, and package name. The import-time beacon fires on every import, so the behavior also triggers in environments where pip build isolation would otherwise contain setup.py side effects. The destination is a hardcoded author-controlled bare IP not configured by the installer, and the package self-labels as a dependency-confusion canary while performing unauthenticated host-identifier collection against anyone who installs or imports it.
Reported by kam193 During installation or import, the package exfiltrates basic information in a dependency confusion attempt. The user identifies themselves as a HackerOne user abusing the PyPI for the purpose of a bug bounty program.
No fix · Remove and contain
pip uninstall lore-csSources