MALICIOUS (1) package from Python Package Index.
- The campaign has clearly malicious intent, like infostealers.
mrmustard¶
Affected versions: (1) 0.7.4
- Version numbers are usually added automatically. In most cases, the packages listed here were created only to distribute malicious code.
Campaign data¶
Campaign information may not always be 100% accurate for every related package.
Campaign description
Compromised release has embedded code that during import exfiltrates sensitive data (selected environmental variables, credentials to AWS, SSH keys etc.) and ensures persistence via multiple ways: a cron entry, a malicious PTH file, and a shell configuration file. Persistence is diguished as "tensorflow hardware compatibility check" using file placed under ~/.cache/.tf_cache/hw_probe.pyc. The malicious version was uploaded after exfiltrating the PyPI token from the CI environment, likely after compromising the maintainer's Github account.
See more details on the campaign page.
abuses-pth
The package uses .pth files, sitecustomize or usercustomize modules to execute malicious code during Python startup, even without importing the package code manually.
compromised-package
Campaign targets compromised-package.
exfiltration_credentials
The package attempts to steal credentials, like passwords or API keys.
exfiltration_env_variables
Campaign targets exfiltration_env_variables.
exfiltration_ssh_keys
Campaign targets exfiltration_ssh_keys.
persistence
Campaign targets persistence.
sandbox-detection
The package contains code to detect if it is running in a sandbox environment.
Look up in other services¶
- Check metadata in pypi-data project (1)
- Search for the package in deps.dev(2)
- Search for the package in socket.dev (3)
- Search for the package in secure.software (4)
- Search for the package in Snyk Advisor (5)
- May not be available. See more in pypi-json-data repository.
- Open Source Insights project, provided by Google.
- Service from Socket.dev, a cybersecurity company.
- Spectra Assure Community, a service from ReversingLabs, a cybersecurity company.
- Service from Snyk, a cybersecurity company.