cvelo
P2 · HighMalware

Malicious code in rcp-ndcg (PyPI)

  • MAL-2026-18658

Description

Show the whole description

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. 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. The OpenSSF Package Analysis project identified 'rcp-ndcg' @ 9999.0.0 (pypi) as malicious. It is considered malicious because: - The package communicates with a domain associated with malicious activity.

Text from the OSV record.

Recommendation

Remove the package and rotate any secret the machine that installed it could reach. There is no version to update to.

Affected

  • rcp-ndcgPyPI

    No versions listed

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.