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 morpho-sdk (PyPI)
The morpho-sdk package on PyPI contained malicious code that exfiltrates basic host information (IP address, username) during installation. The package overrides the install command in setup.py to execute the malicious payload when installed.
PyPICompromised package - resolvedcritical
Malicious code in dlmm-sdk (PyPI)
dlmm-sdk, a PyPI package, was compromised with malicious code that exfiltrates environment variables, credential files, and cryptocurrency wallet directory listings upon import. The malicious campaign (2026-08-dlmm) was identified and attributed to OpenSSF's malicious-packages repository.
PyPICompromised package - resolvedcritical
Malicious code in joule-btp-extension (PyPI)
Malicious code was published in joule-btp-extension on PyPI (version 0.1.6). The package contained code to exfiltrate system information, establish reverse shells, and communicate with domains associated with malicious activity. The incident appears to have been an internal test accidentally uploaded to a public repository.
PyPICompromised package - resolvedhigh
Malicious code in euler-sdk (PyPI)
The euler-sdk package on PyPI contained malicious code that exfiltrates basic host information (IP address, username) during installation. The package overrides the install command in setup.py to execute the malicious payload when installed.
PyPICompromised package