MAL-2024-11575 Malicious code in dftester-pip (PyPI)
- Package
- dftester-pip
- Registry
- PyPI
What is MAL-2024-11575?
MAL-2024-11575 is a malicious package in dftester-pip, published on 27 Nov 2024.
Official description
Example package with overwritten install command and the reverse shell
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: 2024-11-dftester-pip
Reasons (based on the campaign):
The package overrides the install command in setup.py to execute malicious code during installation.
The package contains code to create a reverse shell, allowing an attacker to execute any commands on the victim's machine.
What should I do about MAL-2024-11575?
Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.