Skip to main content

Malicious code in metrio (PyPI)

0
Medium
Published: 09/27/2026 (09/27/2026, 07:06:20 UTC)
Source: GCVE Database
Product: metrio

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

PyPIghsa
metrio
Affected versions
=999.0.0=1000.0.0=1001.0.0

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

AILast updated: 09/29/2026, 04:57:47 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses