# MAL-2026-5776: Malicious code in fastgptmini (PyPI)


- **Type:** Malicious package
- **Package:** `fastgptmini` (PyPI)
- **Published:** 15 Jun 2026

## What is MAL-2026-5776?

MAL-2026-5776 is a malicious package in fastgptmini, published on 15 Jun 2026. 

### Official description

setup.py fetches an opaque file from https://tmpfiles.org/dl/wJwhUXDhUK6M/zvgfsj.txt (an anonymous, throwaway file-sharing host) during `pip install`, writes the bytes to `python.bat` in the current working directory, and executes them via `os.system("cmd /c python.bat")`. The URL is unpinned, no hash or signature verification is performed, the destination is not associated with the package publisher, and the fetched content is handed directly to a shell — a canonical install-time dropper. The package ships no real functionality (src/ contains only the egg-info directory) and uses placeholder metadata (Name/Author/Summary all set to 'FastGPTMini' with no homepage, URL, or email), consistent with a name-confusion lure targeting developers searching for FastGPT/GPT tooling. Any machine running `pip install FastGPTMini` will fetch and execute attacker-controlled code with the user's privileges.

During installation, the code downloads an obfuscated script, which attempts to tamper with Defender exclusions paths and then downloads a malicious executable

---

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

Campaign: 2026-06-fastgptmini

Reasons (based on the campaign):

 - Downloads and executes a remote executable.

 - malware

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

 - obfuscation

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

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

## Sources

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

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