VulnWatch by ve1ve2
unknown

MAL-2026-20313: Malicious code in testing1345py (PyPI)

Source:
OSV.dev
Published:
Fetched:
Updated:
Affects:
microsoft testing1345py

https://osv.dev/vulnerability/MAL-2026-20313 ↗

osvpypino-fix-yet

Malicious code in testing1345py (PyPI) --- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (dc04d3349dc599ea7ba9a0b603b2afb8ce99af579ba29280f087697aae959d3b) 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. ## Source: kam193 (d31c34fe25baf82fd16f49fca26bbb491a517c6c41f93a5b9c3b112fe2194aa8) 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 --- Category: MALICIOUS - The campaign has clearly malicious intent, like infostealers. Campaign: 2026-11-testing1345 Reasons (based on the campaign): - The package overrides the install command in setup.py to execute malicious code during installation. - Downloads and executes a remote malicious script. - rat Affected: PyPI:testing1345py No fixed version published yet References: https://tria.ge/261113-wal5qset2s https://www.virustotal.com/gui/file/ce97b675a86bfff5e73e218e8d9d17458857d2328b1b55acd87f644001ca865f/detection https://bad-packages.kam193.eu/pypi/package/testing1345py https://github.com/misdry01/g/ https://pypi.org/project/testing1345py/0.1.4/ https://pypi.org/project/testing1345py/0.1.3/