Malicious package · PyPI
Malicious code in bloomcredit-python (PyPI)
0.1.099.1.099.2.099.3.0No safe version. Remove it.What it does
The top-level module bloomcredit/__init__.py calls trigger_exploit() at module scope, which performs an unconditional HTTPS POST via urllib.request.urlopen to a hardcoded Discord webhook endpoint (discord.com/api/webhooks/1575416654366769182/...) with the static body {"content": "Exploited"}. The callback fires on every import bloomcredit with no opt-out, confirming code execution on the importing host to the endpoint operator. The package is published under a corporate-sounding name at version 99.3.0, a version number shaped to win resolution against an internally hosted package of the same name, and its metadata describes it as a dependency-confusion research artifact. The payload carries no environment variables, filesystem contents, host identifiers, or credentials, and no remote code is fetched or executed, so the effect is limited to the outbound beacon plus the dependency-tree substitution of an internal name with this third-party package.
Reported by kam193 Installing the package or importing the module exfiltrates basic information about the host, and the package has no other purpose.
No fix · Remove and contain
pip uninstall bloomcredit-pythonSources