Malicious code in stdid-nyxprobe (PyPI)
Description
--- -= Per source details. Do not edit below this line.=-
Source: amazon-inspector (2ccf3f03f309715ca11fb3863aa89a57d4c0550606cb17839bfff9b5dfd34687)
The package installs stdid_nyxprobe.pth into site-packages, whose sole content is import stdid_nyxprobe._beacon. Python's site.py mechanism evaluates this on every interpreter start after pip install, with no user-initiated import required. The imported module stdid_nyxprobe/_beacon.py collects host identifiers — hostname (socket.gethostname), LAN IP (via hostname -I), username (getpass.getuser), current working directory, and Python version — and POSTs them to api.telegram.org/
Source: kam193 (0178d6c7a642f90327546548a88f64bd17da5aa97e519249f515c0e6232c73f1)
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.