Malicious code in ml-shared (PyPI)
The PyPI package ml-shared contained malicious code that exfiltrates system information and environment variables during installation. The package was identified and reported by the OpenSSF malicious-packages project.
- Disclosed
- Last updated
- Blast radius
- PyPI package ml-shared; any system installing the malicious version
- Ecosystems
- Attack vectors
- Threat actor
- Affected entities
- ml-sharedPyPI package containing malicious code
The PyPI package ml-shared was found to contain malicious code designed to exfiltrate sensitive system information during installation. The malicious behavior includes extraction of basic system data (such as IP address and username) and all environment variables from the host system.\n\nThe malicious package was identified as part of the 2026-07-ml-shared campaign and attributed to source kam193. The OpenSSF malicious-packages project documented the incident and assigned it identifier MAL-2026-11202.\n\nThe package has been flagged and reported through GitHub's advisory system (GHSA-r6hm-wcqx-r255), indicating the threat has been identified and disclosed to the community.
Indicators of compromise
- Packages
- ml-shared
Remediation
- Immediately uninstall ml-shared from any affected systems
- Review system logs and environment variable history for potential data exfiltration
- Rotate any credentials or sensitive data that may have been exposed through environment variables
- Check PyPI for the malicious package version and avoid installing it
- Monitor systems for any suspicious outbound connections that may have occurred during package installation
Sources
- GitHub Advisory GHSA-r6hm-wcqx-r255 · GitHub Advisory Database
Cite this entry
"Malicious code in ml-shared (PyPI)." supplychainattack.org, Supply Chain Attack Incident Catalog. Disclosed July 31, 2026; last updated July 31, 2026. https://supplychainattack.org/incident/malicious-code-in-ml-shared-pypi-gfooot
Suggest a correction
Found an error or have a newer source? Corrections to factual errors take priority over new entries.
Related incidents
- resolvedhigh
Malicious code in ml-fdbk-shared (PyPI)
The PyPI package ml-fdbk-shared contained malicious code that exfiltrates system information and environment variables during installation. The package was identified and reported as part of the 2026-07-ml-shared malicious campaign.
2026 07 ML SharedPyPICompromised package - resolvedcritical
Malicious code in ml-nps-shared (PyPI)
The PyPI package ml-nps-shared contained malicious code that exfiltrates system information and environment variables during installation. The package was identified and reported by the OpenSSF malicious-packages project.
2026 07 ML SharedPyPICompromised package - resolvedcritical
Malicious code in ml-data-shared (PyPI)
The ml-data-shared package on PyPI contained malicious code that exfiltrates system information and environment variables during installation. The package was identified and cataloged as part of the 2026-07-ml-shared malicious campaign by the OpenSSF.
2026 07 ML SharedPyPICompromised package - containedcritical
Malicious code in mcp-search-server (PyPI)
mcp-search-server on PyPI contained malicious code in versions published from July 2026 onward. The package included hidden "phone home" functionality disguised as a "share compute swarm" feature, and was part of a coordinated campaign with another malicious package designed to deploy coin miners on user machines.
PyPICompromised packageMalicious maintainer