Malicious code in humbility-shared (PyPI)
Description
--- -= Per source details. Do not edit below this line.=-
Source: amazon-inspector (62ef2123979b9b0569b31e090e1b575bc392c7e40aa1367eed178147b4931c4c)
setup.py defines a custom install cmdclass (PostInstall) that runs on pip install and collects installer-side identifiers — hostname, USER/USERNAME, current working directory, VIRTUAL_ENV, and CI-related environment variables — and POSTs them as JSON to a hardcoded interactsh collector at dbq1g44hj5j25tbieep0dmbhfakw1pyzc.oast.fun/
Source: kam193 (bad6120ea5f69f851eafe78dfbb832979077fa6c0175c2bdda88bf073b8ad487)
Installing the package or importing the module exfiltrates basic information about the host, and the package has no other purpose.
---
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: GENERIC-standard-pypi-install-pentest
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.
- The package overrides the install command in setup.py to execute malicious code during installation.