Malicious code in xxx-bale (PyPI)
The PyPI package xxx-bale contained malicious code designed to download and execute remotely stored malware with persistence mechanisms. The malicious payload requires a separate trigger to activate.
- Disclosed
- Last updated
- Blast radius
- All users who installed the malicious xxx-bale package from PyPI
- Ecosystems
- Attack vectors
- Threat actor
- Affected entities
- xxx-balePyPI package containing malicious code
The xxx-bale package on PyPI was found to contain malicious code as part of the 2025-07-cas-base campaign. The package includes functionality to download and execute a remote executable and establish persistence on the infected system.\n\nThe malicious code is not automatically triggered upon installation; instead, it requires a separate trigger mechanism to activate the payload. This design pattern is consistent with staged malware delivery tactics.\n\nThe malicious package was identified and credited to the OpenSSF's malicious-packages repository (MAL-2026-3428). The incident was disclosed on 2026-07-21 via GitHub Security Advisory GHSA-2qhr-vm43-8f4v.
Indicators of compromise
- Packages
- xxx-bale
Remediation
- Remove the xxx-bale package immediately from all systems where it was installed
- Audit systems that installed xxx-bale for signs of malware execution or persistence mechanisms
- Review network logs for suspicious outbound connections to remote executable servers
- Regenerate any credentials or sensitive data that may have been exposed on affected systems
- Monitor for indicators of compromise related to the 2025-07-cas-base campaign
Sources
- GitHub Advisory GHSA-2qhr-vm43-8f4v · GitHub Advisory Database
Cite this entry
"Malicious code in xxx-bale (PyPI)." supplychainattack.org, Supply Chain Attack Incident Catalog. Disclosed July 21, 2026; last updated July 21, 2026. https://supplychainattack.org/incident/malicious-code-in-xxx-bale-pypi-3ym4fe
Suggest a correction
Found an error or have a newer source? Corrections to factual errors take priority over new entries.
Related incidents
- resolvedcritical
Malicious code in afrit-name (PyPI)
Malicious code was discovered in the afrit-name package on PyPI. The incident was identified and documented by the OpenSSF malicious packages project.
PyPICompromised package - resolvedcritical
Malicious code in adv2099m7 (PyPI)
Malicious code was discovered in the adv2099m7 package on PyPI. The package was identified and cataloged by the OpenSSF malicious packages project.
PyPICompromised package - resolvedcritical
Malicious code in adrandom (PyPI)
The adrandom package on PyPI contained malicious code that executed spyware and information-stealing malware. It was part of a campaign by the EsqueleSquad group that published nearly 6,000 malicious packages across PyPI and NPM.
EsquelesquadPyPICompromised package - resolvedcritical
Malicious code in ziphash (PyPI)
The ziphash package on PyPI contained malicious code that downloads and executes multi-stage malware during archive-support class initialization. The malware exhibits obfuscation and remote code execution capabilities, classified as part of the 2025-11-uzip campaign.
2025 11 UzipPyPICompromised package