MAL-2024-12238 Malicious code in cobo-custdy (PyPI)
- Package
- cobo-custdy
- Registry
- PyPI
What is MAL-2024-12238?
MAL-2024-12238 is a malicious package in cobo-custdy, published on 7 Sep 2024.
Official description
It appears to be a forgotten pentest checking typosquatting against cobo-custody package, but may also have malicious purposes. During installation, if a machine is Mac, an obfuscated code attempts to download and execute a shell script. Currently, the server does not respond.
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-08-old-cobo-sectest
Reasons (based on the campaign):
Downloads and executes a remote executable.
clones-real-package
crypto-related
The package overrides the install command in setup.py to execute malicious code during installation.
obfuscation
typosquatting
What should I do about MAL-2024-12238?
Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.