Malicious package · PyPI
Malicious code in echogen (PyPI)
1.0.0No safe version. Remove it.What it does
On every import echogen, init.py invokes a _canary() function that performs an HTTP GET to a canarytokens.com tracking URL (https://canarytokens.com/feedback/traffic/tags/u7eeajm7pteo1ns0mzaijswht/payments.js) with a JSON query parameter containing host identifiers: Python version, container/k8s/CI environment flags (names only, not values), the parent process name read from /proc/<ppid>/comm, and a 6-segment prefix of the install path (which typically contains the OS username). The behavior is disclosed in the README and can be disabled via ECHOGEN_NO_CANARY=1. No credentials, environment variable values, file contents, or other sensitive data are collected. The destination is a third-party canary-token tracking service rather than a product-telemetry endpoint; because canary tokens are designed to alert an operator when accessed, each import of this library generates such an alert and the mild host identifiers above are disclosed to whoever controls that token. Import-time outbound network also breaks offline and air-gapped installs.
Reported by kam193 Installing the package or importing the module exfiltrates basic information about the host, and the package has no other purpose.
No fix · Remove and contain
pip uninstall echogenSources