Malicious code in echogen (PyPI)
Description
--- -= Per source details. Do not edit below this line.=-
Source: amazon-inspector (5f4b0ce31a04b0a723841811270611a011b3e145af96f326787d721ddd06bb5c)
On every import echogen, __init__.py invokes a _canary() function that performs an HTTP GET to a canarytokens.com tracking URL (canarytokens.com/
Source: kam193 (c38ef1a445f502de507bc9e58f66539c816eb765a086e14631bd164bc501a644)
Installing the package or importing the module exfiltrates basic information about the host, and the package has no other purpose.
---
Category: PROBABLY_PENTEST - Packages looking like typical pentest packages, but also anything that looks like testing, exploring pre-prepared kits, research & co, with clearly low-harm possibilities.
Campaign: GENERIC-standard-pypi-install-pentest
Reasons (based on the campaign):
- The package contains code to exfiltrate basic data from the system, like IP or username. It has a limited risk.
- The package overrides the install command in setup.py to execute malicious code during installation.