MAL-2024-12228

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

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

Source: kam193 (cc3d0aad00732ac597c39a82c41efa9ec9a102544ff1540266321e31b1fdd3b5)

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": "66e3df409984415be2af4f91cfa37b270c55238d00fd70e5fe6e662ce410def6",
            "source": "kam193",
            "modified_time": "2024-11-30T09:03:27Z",
            "id": "pypi/2023-12-valuent/calctestchristmas",
            "ranges": [
                {
                    "type": "ECOSYSTEM",
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ]
                }
            ],
            "import_time": "2025-12-02T22:30:55.932783277Z"
        },
        {
            "sha256": "cc3d0aad00732ac597c39a82c41efa9ec9a102544ff1540266321e31b1fdd3b5",
            "source": "kam193",
            "modified_time": "2024-11-30T09:03:27Z",
            "id": "pypi/2023-12-valuent/calctestchristmas",
            "ranges": [
                {
                    "type": "ECOSYSTEM",
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ]
                }
            ],
            "import_time": "2025-12-02T23:07:19.122418403Z"
        },
        {
            "sha256": "2ca28313dde83e6a781be8018c9a9b55d5ae15f6341f79a412e199edf3d1e433",
            "source": "kam193",
            "modified_time": "2024-11-30T09:03:27Z",
            "id": "pypi/2023-12-valuent/calctestchristmas",
            "versions": [
                "1.0.0"
            ],
            "import_time": "2025-12-10T21:38:58.257208224Z"
        }
    ]
}
References
Credits

Affected packages

PyPI / calctestchristmas

Package

Name
calctestchristmas
View open source insights on deps.dev
Purl
pkg:pypi/calctestchristmas

Affected ranges

Affected versions

1.*
1.0.0

Database specific

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