MAL-2024-12239 Malicious code in cobo-python (PyPI)

Malicious package Published
Package
cobo-python
Registry
PyPI

What is MAL-2024-12239?

MAL-2024-12239 is a malicious package in cobo-python, 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-12239?

Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.

Sources

Is MAL-2024-12239 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free