MAL-2026-20313 Malicious code in testing1345py (PyPI)
- Published
- Updated
- Exploit status
- No public exploit known
Description
-= 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
Upgrade path
1 package: 0 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| pypi testing1345py(PyPI) | = 0.1.3; = 0.1.4 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi testing1345py(PyPI) | = 0.1.3 | No fix listed |
| pypi testing1345py(PyPI) | = 0.1.4 | No fix listed |
References
- tria.ge exploit
- www.virustotal.com exploit
- bad-packages.kam193.eu
- github.com
- pypi.org product
- pypi.org product