GHSA-cj88-j9xh-9cwj
Malicious code in infra-libs (PyPI)
Auswirkung
## Source: amazon-inspector (721b376b505d760e78f3ac8417b54789f538a5a8127f59fe7c2660067366ce32) infra-libs 99.99.99 performs install-time and import-time DNS exfiltration of the installer's hostname. setup.py constructs a subdomain label of the form `install-<random-id>-<hostname>` and calls socket.getaddrinfo against `<label>.testa213022.dssldrf.net`, causing the authoritative name server for that zone to receive the installer's platform.node() value during `pip install`. gcp_log_poc/__init__.py repeats the same pattern with an `import-<id>-<hostname>` label on every import of the package, and the module docstring explicitly describes the behavior as a 'DNS callback on import.' The destination domain testa213022.dssldrf.net is unrelated to any declared publisher or purpose, the package has no documented functionality that would justify a hostname-encoded DNS lookup, and the name `infra-libs` is confusable with internal/infrastructure naming conventions commonly targeted by dependency-confusion attacks. No legitimate behavior accompanies the beacon. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/452e31d9fc58339d97d3fd0a82ef67b846f63d34/osv/malicious/pypi/infra-libs/MAL-2026-18761.json))
Betroffene Pakete
| Ökosystem | Paket | Betroffen | Behoben in |
|---|---|---|---|
| pip | infra-libs | = 99.99.99 | nicht erfasst |
Schwachstellenklasse
Referenzen
- GitHub-Advisory
- https://github.com/advisories/GHSA-cj88-j9xh-9cwj
- https://github.com/ossf/malicious-packages/blob/452e31d9fc58339d97d3fd0a82ef67b846f63d34/osv/malicious/pypi/infra-libs/MAL-2026-18761.json
- https://pypi.org/project/infra-libs/99.99.99
- https://bad-packages.kam193.eu/pypi/package/infra-libs
- https://github.com/ossf/malicious-packages/blob/5153a1d38e375dbb528b1b9180cb4e31b946e7a1/osv/malicious/pypi/infra-libs/MAL-2026-18761.json