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.
- Disclosed
- Last updated
- Blast radius
- Unknown; depends on installation prevalence of ml-nps-shared
- Ecosystems
- Attack vectors
- Threat actor
- Affected entities
- ml-nps-sharedPyPI package containing malicious code
The PyPI package ml-nps-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 tracked under OpenSSF's malicious-packages project (MAL-2026-11201). The package was attributed to the source kam193 based on code analysis.\n\nThe exfiltration of environment variables poses a risk of credential and configuration exposure, though the overall impact is characterized as limited in scope compared to other malware variants.\n\nThe incident has been documented in the GitHub Advisory Database (GHSA-fm92-h663-5c62) and the OpenSSF malicious-packages repository.
Indicators of compromise
- Packages
- ml-nps-shared
Remediation
- Immediately uninstall ml-nps-shared from all systems where it was installed
- Audit environment variables and secrets that may have been exposed during the installation window
- Rotate any credentials or API keys that may have been present in environment variables
- Review system logs for any suspicious activity or data exfiltration attempts
- Check PyPI and dependency management tools for any other packages from the same source or campaign
- Monitor systems for any persistence mechanisms or secondary payloads
Sources
- GitHub Advisory GHSA-fm92-h663-5c62 · GitHub Advisory Database
Cite this entry
"Malicious code in ml-nps-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-nps-shared-pypi-13q17s
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 - containedhigh
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.
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