MAL-2024-12216

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/bestcolorsever2/MAL-2024-12216.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2024-12216
Published
2024-11-30T09:03:27Z
Modified
2025-12-12T20:36:25.350097Z
Summary
Malicious code in bestcolorsever2 (PyPI)
Details

-= Per source details. Do not edit below this line.=-

Source: kam193 (fa4352627d3e53d9bea22f4b439c0749f5a88407f6dda914fe43ca7612c5b101)

Packages either test the malicious behaviour, or actually download and run a simple remote script during the installation.


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: 2023-12-valuent

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.

  • Downloads and executes a remote malicious script.

Database specific
{
    "malicious-packages-origins": [
        {
            "sha256": "dad845b52ea2334b85ac47195ffc7d373b03ccbfe5b508a3fe81268f31eaa6fc",
            "source": "kam193",
            "modified_time": "2024-11-30T09:03:27Z",
            "id": "pypi/2023-12-valuent/bestcolorsever2",
            "ranges": [
                {
                    "type": "ECOSYSTEM",
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ]
                }
            ],
            "import_time": "2025-12-02T22:30:55.882485489Z"
        },
        {
            "sha256": "fa4352627d3e53d9bea22f4b439c0749f5a88407f6dda914fe43ca7612c5b101",
            "source": "kam193",
            "modified_time": "2024-11-30T09:03:27Z",
            "id": "pypi/2023-12-valuent/bestcolorsever2",
            "ranges": [
                {
                    "type": "ECOSYSTEM",
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ]
                }
            ],
            "import_time": "2025-12-02T23:07:19.066185648Z"
        },
        {
            "sha256": "c472267013b6a18a675f5e072887fe489994e2f8a9dd9341c1e3df1c73d265ab",
            "source": "kam193",
            "modified_time": "2024-11-30T09:03:27Z",
            "id": "pypi/2023-12-valuent/bestcolorsever2",
            "versions": [
                "1.0.0"
            ],
            "import_time": "2025-12-10T21:38:58.203823153Z"
        }
    ]
}
References
Credits

Affected packages

PyPI / bestcolorsever2

Package

Affected ranges

Affected versions

1.*
1.0.0

Database specific

source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/bestcolorsever2/MAL-2024-12216.json"