Malicious code in metrio (PyPI)
The metrio package on PyPI, specifically versions 999.0.0, 1000.0.0, and 1001.0.0, contains malicious code that exfiltrates the local machine's hostname during installation and import. This exfiltration occurs by encoding the hostname and sending DNS and HTTP requests to an attacker-controlled domain. The package is designed as a dependency confusion proof-of-concept, aiming to be resolved instead of an internal package with the same name, thereby leaking information about the resolving host.
AI Analysis
Technical Summary
The metrio package versions 999.0.0, 1000.0.0, and 1001.0.0 execute code at install time (via setup.py) and import time (via metrio/__init__.py) that reads the local hostname, hex-encodes it, and sends it as a subdomain in DNS and HTTP requests to an attacker-controlled domain. This behavior is intended as a dependency confusion proof-of-concept to confirm that the internal package name resolves to the public PyPI index and to collect hostnames from affected systems. The package has no other functionality beyond this exfiltration.
Potential Impact
Installing or importing the affected metrio package versions results in disclosure of the local machine's hostname to a third party. This can confirm to an attacker that the internal package name resolves externally and that the host has installed or imported the malicious package. There is no indication of further payloads or system compromise beyond this information leakage.
Mitigation Recommendations
No official patch or remediation is indicated. Users should avoid installing or importing the metrio package versions 999.0.0, 1000.0.0, and 1001.0.0 from PyPI. Since this is a proof-of-concept malicious package designed for dependency confusion testing, verifying internal package resolution policies and restricting public package resolution for internal package names can mitigate risk.
Malicious code in metrio (PyPI)
Description
The metrio package on PyPI, specifically versions 999.0.0, 1000.0.0, and 1001.0.0, contains malicious code that exfiltrates the local machine's hostname during installation and import. This exfiltration occurs by encoding the hostname and sending DNS and HTTP requests to an attacker-controlled domain. The package is designed as a dependency confusion proof-of-concept, aiming to be resolved instead of an internal package with the same name, thereby leaking information about the resolving host.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The metrio package versions 999.0.0, 1000.0.0, and 1001.0.0 execute code at install time (via setup.py) and import time (via metrio/__init__.py) that reads the local hostname, hex-encodes it, and sends it as a subdomain in DNS and HTTP requests to an attacker-controlled domain. This behavior is intended as a dependency confusion proof-of-concept to confirm that the internal package name resolves to the public PyPI index and to collect hostnames from affected systems. The package has no other functionality beyond this exfiltration.
Potential Impact
Installing or importing the affected metrio package versions results in disclosure of the local machine's hostname to a third party. This can confirm to an attacker that the internal package name resolves externally and that the host has installed or imported the malicious package. There is no indication of further payloads or system compromise beyond this information leakage.
Mitigation Recommendations
No official patch or remediation is indicated. Users should avoid installing or importing the metrio package versions 999.0.0, 1000.0.0, and 1001.0.0 from PyPI. Since this is a proof-of-concept malicious package designed for dependency confusion testing, verifying internal package resolution policies and restricting public package resolution for internal package names can mitigate risk.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-17193
- Osv Schema Version
- 1.7.4
- Ecosystems
- ["PyPI"]
Threat ID: 6abb41a5f7a7c54106cc3915
Added to database: 09/29/2026, 04:42:13 UTC
Last enriched: 09/29/2026, 04:57:47 UTC
Last updated: 09/29/2026, 18:00:11 UTC
Views: 13
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.