pypi · Malicious package advisory
Malwarellmgenerator
GHSA-gcf9-jjg5-rf59
Malicious code in llmgenerator (PyPI)
Details
**Severity:** Critical
**Affected versions:** `= 2.21`
## Source: amazon-inspector (06e55ac2d3368516d538c8efaad2b83814dbb61813f36ab5655f77677ca0d6be)
On `pip install`, setup.py performs an HTTP GET to https://pastebin.com/raw/yBcUM1QB, takes the first line of the response body, and passes it to `os.system(f'cmd /c "{cmd_pastebin}"')`. The fetched content is mutable, anonymous, and unauthenticated — the author can change what runs on every installer's machine at any time without republishing the package. The package ships no functional Python code (src/ contains only an empty.egg-info directory), confirming the package exists solely as a vehicle for the install-time dropper. The package name impersonates an LLM-tooling brand to attract installs. Installing this package grants arbitrary shell execution on the installer's Windows machine.
## Source: kam193 (e5299b1bd4a72376cc08afbcb871276d2e1cfab5cdd5c10bd70236cc1be75baa)
During installation, the code attempts to download and start a malicious executable.
Likely related to 2025-08-raknet-testing-package.
---
Category: MALICIOUS - The campaign has clearly malicious intent, like infostealers.
Campaign: 2026-06-easyaillm
Reasons (based on the campaign):
- Downloads and executes a remote executable.
- obfuscation
- malware
- tool:mshta
---
Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/llmgenerator/MAL-2026-5770.json))
**References:**
- https://bad-packages.kam193.eu/pypi/package/llmgenerator
- https://github.com/ossf/malicious-packages/blob/49d0cfba3689ed9b195d101d3a2a964c6a77f767/osv/malicious/pypi/llmgenerator/MAL-2026-5770.json
- https://pypi.org/project/LLMGenerator/2.21
- https://www.virustotal.com/gui/file/0649f50ead3695f41c1243883200bdb775410bcd8c8fb88277740a625a154e25
- https://www.virustotal.com/gui/file/1a5beab4a6facb46b4afc5f8526e1327e6c7d740ccaf34c6a921ac18eff29427/detection
- https://www.virustotal.com/gui/file/4c99c8edfc4444f46932f14afccb2952a3850df765765f9ac793d69f318c192f/detection
- https://www.virustotal.com/gui/file/926e8f1a7f349ff1eef31f89fa8ffe265c30b92e310e8bea19962d38f8c32129
- https://github.com/advisories/GHSA-gcf9-jjg5-rf59Compromised 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.