VYPR

pypi · Malicious package advisory

Malware

batchran

GHSA-h3rx-34rp-3x59

Malicious code in batchran (PyPI)

Details

**Severity:** Critical

**Affected versions:** `= 912.6`

## Source: kam193 (19ed06a25f8868beb5f8e987240e85eaff57b5c995a393fbaa3ff7c517654e8c)
A campaign of probably pentest packages flooding PYPI. Installing the package or importing the module triggers reporting basic info like hostname, path and the username to the package author. There is no other purpose of the package.


---

Category: PROBABLY_PENTEST - Packages looking like typical pentest packages, but also anything that looks like testing, exploring pre-prepared kits, research & co, with clearly low-harm possibilities.


Campaign: 2024-11-byted-dast


Reasons (based on the campaign):


 - The package contains code to exfiltrate basic data from the system, like IP or username. It has a limited risk.


 - typosquatting


 - dependency-confusion

## Source: ossf-package-analysis (54812f0ff9d7ef156bc34dda479dabee551c6c88d9044ec701b39ba3e32b782d)
The OpenSSF Package Analysis project identified 'batchran' @ 912.6 (pypi) as malicious.

It is considered malicious because:

- The package communicates with a domain associated with malicious activity.

---

Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/batchran/MAL-2024-10445.json))

**References:**
- https://bad-packages.kam193.eu/pypi/package/batchran
- https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/batchran/MAL-2024-10445.json
- https://github.com/advisories/GHSA-h3rx-34rp-3x59

Compromised versions (1)

  • = 912.6

Any computer that installed or ran a compromised version should be considered fully compromised. Rotate every secret on that machine from a clean environment.