# MAL-2026-5679: Malicious code in pylogxo (PyPI)


- **Type:** Malicious package
- **Package:** `pylogxo` (PyPI)
- **Published:** 11 Jun 2026

## What is MAL-2026-5679?

MAL-2026-5679 is a malicious package in pylogxo, published on 11 Jun 2026. 

### Official description

On `import pylogx`, the package spawns a background thread that sleeps 5-20 seconds, force-installs sensitive third-party packages (cryptography, pycryptodomex, secretstorage, opencv-python, pillow, psutil) via pip, then fetches a base64-encoded blob from http://69.164.245.166/payload.txt over plaintext HTTP and passes the decoded bytes to `exec()` with a synthetic `__name__ = "__payload__"`. The destination is a bare IP with no TLS, no pinning, and no signature verification, so any code the operator of that host serves runs in the importing process. The pre-installed dependency set (secretstorage + cryptography) is consistent with a follow-on credential / keyring harvester. The package is also distributed under the name `pylogxo` while installing the import name `pylogx` — a near-edit of legitimate logging library names — and ships placeholder metadata (empty README, `https://github.com/example/pylogx`, `support@pylogx.example`) and references submodules (`formatter`, `handlers`) that do not exist in the tarball, so the module will ImportError only after the dropper thread has already fired. There is no legitimate reason for a logging utility to fetch and execute remote code at import time.

During import, the package downloads and executes remote code being an infostealer.

---

Category: MALICIOUS - The campaign has clearly malicious intent, like infostealers.

Campaign: 2026-06-pylogxo

Reasons (based on the campaign):

 - Downloads and executes a remote malicious script.

 - infostealer

 - The package contains code to detect if it is running in a sandbox environment.

 - exfiltration-credentials

 - exfiltration-browser-data

 - files-exfiltration

## What should I do about MAL-2026-5679?

Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.

## Fix prompt for AI coding agents

```text
MAL-2026-5679 is a malicious package: pylogxo (PyPI). Every version was published to cause harm.

Task:
1. Search this repository's dependency manifests and lockfiles for the package, including transitive dependencies.
2. If it is present, remove it, regenerate the lockfile with the project's package manager, and replace whatever it was used for.
3. List any CI runners, developer machines or containers that installed it, so their secrets can be rotated.
4. If the package is not used anywhere, say so and change nothing.

Reference: https://insights.sbomify.com/MAL-2026-5679/ (Markdown: https://insights.sbomify.com/MAL-2026-5679/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/MAL-2026-5679

---
From sbomify Insights: https://insights.sbomify.com/MAL-2026-5679/
Summaries are generated and may contain mistakes; the official description above is the record.
