Malicious code in testing1345py (PyPI)
MAL-2026-20313
Published · Modified
Dependency scanning
Check whether testing1345py is in your codebase
Corgea flags malicious and compromised dependencies with reachability analysis, so you fix the packages that actually run in your application instead of working through the whole lockfile.
Description
__
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
References
- EVIDENCE https://tria.ge/261113-wal5qset2s
- EVIDENCE https://www.virustotal.com/gui/file/ce97b675a86bfff5e73e218e8d9d17458857d2328b1b55acd87f644001ca865f/detection
- WEB https://bad-packages.kam193.eu/pypi/package/testing1345py
- WEB https://github.com/misdry01/g/
- PACKAGE https://pypi.org/project/testing1345py/0.1.4/
- PACKAGE https://pypi.org/project/testing1345py/0.1.3/
Ready to move
Start Securing
Free, no credit card | First findings in minutes