Malicious code in zagents-message-bus (PyPI)
Description
--- -= Per source details. Do not edit below this line.=-
Source: amazon-inspector (177a91975e11b9b3afbc5089dfc7e4c4fdae1cb05f8307f397956c675533f0d8)
pypi package zagents-message-bus is published at an implausibly inflated version (99.99.100) under an internal-sounding name, consistent with a dependency-confusion resolution-override attempt against a private package of the same name. The shipped main.py defines CALLBACK_URL = "webhook.site/import zagents_message_bus raises ImportError before the GET runs. The beacon therefore only fires if a consumer explicitly calls main(). No credential reads, filesystem writes outside the package, or code execution of fetched content are present.
Source: kam193 (0d1891d5d76adad51e120baa41752f0cc878b243eb400e7a12aba1616d31d1f7)
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.