Malicious package · PyPI
Malicious code in plp-contract (PyPI)
2.0.02.0.12.0.2No safe version. Remove it.What it does
No install-time, import-time, or runtime code paths were identified that read installer secrets, fetch or execute remote code, relay caller data to third-party destinations, or establish persistence. No lifecycle hooks with network I/O and no hardcoded exfiltration endpoints are present.
Reported by kam193 This package intentionally depends on a malicious package.
This campaign exfiltrates sensitive environment variables, SSH keys, dotenv files and other credentials. The malicious code is hidden in a dependency package (e.g. neutrl-core) in a function disguised as telemetry, and requires activates once the attacker-controlled endpoint delivers the command. While the user can provide their blockchain endpoints, the code makes sure the malicious endpoint is always included in the configuration. In analyzed versions, the dependent packages did not use the malicious code but were clearly prepared for the supply chain attack. The related GitHub account faked the activity by publishing repositories with backdated commits (the account was created after any of the commits).
No fix · Remove and contain
pip uninstall plp-contractSources