# MAL-2026-6758: Malicious code in httpprobe (PyPI)


- **Type:** Malicious package
- **Package:** `httpprobe` (PyPI)
- **Published:** 4 Jul 2026

## What is MAL-2026-6758?

MAL-2026-6758 is a malicious package in httpprobe, published on 4 Jul 2026. 

### Official description

The package advertises itself as an 'HTTP probing tool for security researchers' but contains no HTTP-probing functionality. Its only behavior is to fetch and execute a Windows PE binary named 'mirai_agent.exe' from a hardcoded Tor hidden service (sytej5umomwukd77aantkxqj4aoke3kfist6eyne2pngavgsakum3iid.onion), with a localhost fallback. Two independent execution paths deliver the payload: (1) setup.py overrides the install command with a PostInstall class that spawns a background thread on `pip install` to download the binary, write it to a Microsoft-look-alike path under %TEMP%/MS/Update/agent.exe, set hidden+system file attributes via SetFileAttributesW, and launch it via CreateProcessW with CREATE_NO_WINDOW; (2) httpprobe/__init__.py exposes a main() that performs the same fetch-stage-hide-execute sequence at import time via CreateProcessW or subprocess.Popen. The duplicated install-time and import-time execution paths ensure code execution on the installer's Windows machine regardless of whether the package is installed or later imported by a consumer. The Microsoft-look-alike staging path, hidden+system attributes, no-window flag, and Tor-only delivery are all consistent with intent to persist an attacker-controlled binary on the developer's machine.

If run as a module and during installation, the package attempts to download and start an executable described as a Mirai agent. During analysis, the Onion website hosting executable was not available. Using Onion and localhost fallback suggests the package was not yet ready to deliver malicious actions to the end users.

---

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

Campaign: 2026-07-httpprobe

Reasons (based on the campaign):

 - Downloads and executes a remote executable.

 - The package overrides the install command in setup.py to execute malicious code during installation.

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

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-6758 is a malicious package: httpprobe (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-6758/ (Markdown: https://insights.sbomify.com/MAL-2026-6758/index.md)
```

## Sources

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

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