Malicious package · PyPI
Malicious code in rcp-ndcg (PyPI)
9999.0.0No safe version. Remove it.What it does
rcp-ndcg 9999.0.0 is a dependency-confusion proof-of-concept squatting an unclaimed name referenced by cohere-ai's rcp-ndcg README, using an implausibly high version (9999.0.0) to win resolution against any internal package of that name. setup.py performs socket.getaddrinfo() to rcp-ndcg-build.<token>.oast.site at sdist build time, and src/rcp_ndcg/init.py performs a sibling getaddrinfo() to rcp-ndcg-import.<token>.oast.site on import. Both subdomains resolve through Interactsh (oast.site), a third-party out-of-band DNS collector controlled by the publisher, so each install and each import leaks the event and the resolver's IP to that collector. The package ships no legitimate functionality; its only observable behavior is the beacon. The sdist builds on all listed default platforms, so a plain pip install rcp-ndcg triggers the install-time callback, and any later import rcp_ndcg triggers the import-time callback.
Reported by kam193 Installing the package or importing the module exfiltrates basic information about the host, and the package has no other purpose.
Reported by ossf-package-analysis The OpenSSF Package Analysis project identified 'rcp-ndcg' @ 9999.0.0 (pypi) as malicious. It is considered malicious because:
No fix · Remove and contain
pip uninstall rcp-ndcgSources