metrics-sdk
Affected
- Versions:
1000.0.0,1001.0.0,999.0.0
Fixed versions
None listed
Fix
No fixed version is listed.
Advisory
Also known as: None
Malicious package Its source marks this package as malicious: it is not a vulnerability in a legitimate one.
Malicious code in metrics-sdk (PyPI)
---
_-= Per source details. Do not edit below this line.=-_
Source: amazon-inspector (60ce93696722d633e9eea7b3fac6f76ebe61a581bd2d1d79efb778f8cb015399)
metrics_sdk 999.0.0 is a dependency-confusion beacon. setup.py runs on pip install and metrics_sdk/__init__.py runs on import metrics_sdk; both hex-encode the installer's hostname into a subdomain label of the form mssdk-<event>-<hexhostname>.84avt3516s4q1obsv9q0mh4u2l8dw3ks.x9.to and then trigger socket.gethostbyname(host) plus urllib.request.urlopen('http://' + host + '/'), leaking the hostname to a hardcoded third-party domain over both DNS and plaintext HTTP. The version number 999.0.0 and the package description labeling itself a 'dependency-confusion PoC placeholder' are consistent with an artifact designed to win resolution against an internal package name from public PyPI and beacon from whichever build system pulls it in. The self-label is author-controlled and does not change the observable behavior: any installer that resolves this package on pip install or on import discloses its hostname to an attacker-controlled beacon domain with no opt-in.
Source: kam193 (1378dcfc94bda0e9beb3e3d66c0588967a164741686ab473826fbab077e7afb9)
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):
Not rated by the source.
1000.0.0, 1001.0.0, 999.0.0None listed
No fixed version is listed.
Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: OpenSSF Malicious Packages · Apache-2.0