Malicious code in metrio (PyPI)
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (ce8ee66a844d7abed74f4b9d223c8ef8f35bae380104526f4f8bc57295c47320) metrio 999.0.0 executes a hostname-exfiltration beacon from both setup.py (install time) and metrio/__init__.py (import time). The code reads the local machine's hostname, hex-encodes it, and embeds it as a subdomain of the attacker-controlled domain 84avt3516s4q1obsv9q0mh4u2l8dw3ks.x9.to, then triggers a DNS resolution via socket.gethostbyname and a plain-HTTP GET via urllib.request.urlopen against that host. The version number 999.0.0 and the self-described 'dependency-confusion PoC placeholder' summary are the canonical high-version dependency-confusion shape: the package is intended to win resolution against an internal package of the same name and beacon the resolving host back to the operator. Installer harm on `pip install metrio` or `import metrio` is disclosure of the installer's hostname to a third-party collector, and confirmation to the operator that this internal name resolves to the public index from the installer's build environment. ## Source: kam193 (f7b0289ef68f815e0fd296282739990dfc918c0070fb5acdae2787ca8eba23f3) 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
MAL-2026-17193
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: osv:MAL-2026-17193
metrio
Source reference: /affected/0/package/name
- Affected versions
- 999.0.0
Source reference:
/affected/0/versions1000.0.0Source reference:
/affected/0/versions1001.0.0Source reference:
/affected/0/versions - Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"package": {
"name": "metrio",
"purl": "pkg:pypi/metrio",
"ecosystem": "PyPI"
},
"versions": [
"999.0.0",
"1000.0.0",
"1001.0.0"
],
"database_specific": {
"cwes": [
{
"name": "Embedded Malicious Code",
"cweId": "CWE-506",
"description": "The product contains code that appears to be malicious in nature."
},
{
"name": "Embedded Malicious Code",
"cweId": "CWE-506",
"description": "The product contains code that appears to be malicious in nature."
},
{
"name": "Embedded Malicious Code",
"cweId": "CWE-506",
"description": "The product contains code that appears to be malicious in nature."
}
],
"source": "https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/metrio/MAL-2026-17193.json",
"indicators": {
"evidence_files": [
{
"path": "metrio/__init__.py",
"tlsh": "98e02bd3902139d3e5cb9505c4789e3477a3bd4ff0438831758d53482fe9875906151e",
"sha256": "66b1b2912b7fa19bb87f3ba31543ae67f8233c5e108114c912307f352d8ee7b0"
},
{
"path": "setup.py",
"tlsh": "c0d022099802ae3584a041dcce2240177a74d0224f18f696300ca29c275ea9a8bf5289",
"sha256": "566ec6a8684710ef93f190198b1b84fa50bbb9b07e1e6587f66cbcb8e487f6f5"
}
],
"package_integrity": [
{
"hashes": {
"md5": "5c42063387840a615d70b90111b758ee",
"sha256": "b357ae567113329527f3eb3aab73a643cf4782de1b382f11a0a5ccfd58125b00",
"blake2b_256": "e5a1d24b70435cd5d74f93e7b78128039516e26300bd388837995c5b86c10cee"
},
"filename": "metrio-1001.0.0.tar.gz"
}
]
}
}
}
]Publisher severity
No explicit severity was provided.
- Event
- #33430 · Revision 1
- Added to Heist Feed
- Publisher date