sqligen (PyPI) · Malicious Code
Affects sqligenSource GCVE Database
Malicious package : remove sqligen and rotate any secrets on hosts that installed it.
Data as of 10 Jul 2026, 13:05 UTC
Malicious package
Published to PyPI · OSV MAL-2026-6515
What to do
Remove sqligen from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| PyPIsqligen | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
The sqligen package on PyPI contains malicious code that executes a remote payload during installation on Windows systems. The setup.py file includes obfuscated code that triggers execution of a remote HTA file via mshta.exe, resulting in arbitrary code execution under the installing user's privileges. This malicious behavior is hidden behind misleading variable names and encoding to evade detection. The threat affects multiple specific versions of sqligen and is classified as critical due to the potential for remote code execution.
References
- virustotal.com/gui/file/1a5beab4a6facb46b4afc5f8526e1327e6c7d740ccaf34c6a921ac18eff29427/detection (opens in a new tab)
- virustotal.com/gui/file/4c99c8edfc4444f46932f14afccb2952a3850df765765f9ac793d69f318c192f/detection (opens in a new tab)
- virustotal.com/gui/file/0649f50ead3695f41c1243883200bdb775410bcd8c8fb88277740a625a154e25 (opens in a new tab)
- virustotal.com/gui/file/926e8f1a7f349ff1eef31f89fa8ffe265c30b92e310e8bea19962d38f8c32129 (opens in a new tab)
- bad-packages.kam193.eu/pypi/package/sqligen (opens in a new tab)
- pypi.org/project/sqligen/1.0.7/ (opens in a new tab)
- pypi.org/project/sqligen/1.1.4/ (opens in a new tab)
- pypi.org/project/sqligen/1.0.8/ (opens in a new tab)
- pypi.org/project/sqligen/1.1.1/ (opens in a new tab)
- pypi.org/project/sqligen/1.0.0/ (opens in a new tab)
- pypi.org/project/sqligen/1.0.5/ (opens in a new tab)
- pypi.org/project/sqligen/1.0.6/ (opens in a new tab)
- pypi.org/project/sqligen/1.1.3/ (opens in a new tab)