VYPR

pypi · Malicious package advisory

Malware

fastgptmini

GHSA-8325-fjr5-2m35

Malicious code in fastgptmini (PyPI)

Details

**Severity:** Critical

**Affected versions:** `= 2.21`

## Source: amazon-inspector (4da10d62527ca4b69f4458b6a01c77f01af42c5a1631d5cc6f207070d1ade20d)
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.

## Source: kam193 (3cca907106c3dceb5276e9bdbf8799367b44df9e12fe12098dd3ed215bb4f3b0)
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

---

Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/fastgptmini/MAL-2026-5776.json))

**References:**
- https://bad-packages.kam193.eu/pypi/package/fastgptmini
- https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/fastgptmini/MAL-2026-5776.json
- https://pypi.org/project/FastGPTMini/2.21
- https://pypi.org/project/FastGPTMini/2.22
- https://pypi.org/project/FastGPTMini/2.23
- https://pypi.org/project/FastGPTMini/2.26
- https://www.virustotal.com/gui/file-analysis/ZjYxZmY4ZjFhNjIxMzI2ZTY1NmUxNThkMWNlYTE0M2M6MTc4MTUyMzQzMw==
- https://www.virustotal.com/gui/file/9e731bb85408c1b34c5f7fd6518b3590983ac5e95793dee0f1af390ac288ed47/detection

Compromised versions (1)

  • = 2.21

Any computer that installed or ran a compromised version should be considered fully compromised. Rotate every secret on that machine from a clean environment.