Malicious package · PyPI
Malicious code in testing1345py (PyPI)
0.1.30.1.4No safe version. Remove it.What it does
The sdist's setup.py overrides build_py.run to call _run_install_demo(), which on Windows invokes testing1345.hello.fetch() during pip install. fetch() downloads https://raw.githubusercontent.com/misdry01/g/refs/heads/main/test.bat — a mutable branch on a personal GitHub account unrelated to any declared publisher — and executes it via cmd.exe with no hash or signature check. The custom bdist_wheel writes testing1345_boot.pth into the wheel root; after install, site.py loads that.pth on every interpreter start and imports testing1345_boot, whose module-level run_once() calls the same fetch(), gated only by a /tmp marker. src/testing1345/init.py additionally re-exports fetch as a public API, so any caller of testing1345.fetch() runs whatever bytes the mutable URL currently serves. Whoever controls that GitHub repository therefore obtains arbitrary code execution on the installer's machine at install time and at every subsequent Python startup.
Reported by kam193 During installation, the package downloads and executes a script from a remote location. During analysis, the code was benign, but the package is clearly part of campaign which previously delivered a RAT
No fix · Remove and contain
pip uninstall testing1345pySources