MAL-2024-12227

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

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

Source: kam193 (84ad749380bb774a5cc7da818c03f863ee2838773e46e0a5c4cff469e1647962)

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": [
        {
            "source": "kam193",
            "id": "pypi/2023-12-valuent/calcnotepad",
            "modified_time": "2024-11-30T09:03:27Z",
            "sha256": "e2dc7a87e45ce7d2762fad7dfdcd6357ca0224acf7be608a87afc2121cc420ae",
            "ranges": [
                {
                    "type": "ECOSYSTEM",
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ]
                }
            ],
            "import_time": "2025-12-02T22:30:55.931627427Z"
        },
        {
            "source": "kam193",
            "id": "pypi/2023-12-valuent/calcnotepad",
            "modified_time": "2024-11-30T09:03:27Z",
            "sha256": "84ad749380bb774a5cc7da818c03f863ee2838773e46e0a5c4cff469e1647962",
            "ranges": [
                {
                    "type": "ECOSYSTEM",
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ]
                }
            ],
            "import_time": "2025-12-02T23:07:19.121434495Z"
        },
        {
            "source": "kam193",
            "id": "pypi/2023-12-valuent/calcnotepad",
            "modified_time": "2024-11-30T09:03:27Z",
            "sha256": "d878adfaeb7d5231857f37f5b0e599c396c8202a3bf6152223f3157e02e38a19",
            "versions": [
                "1.0.0"
            ],
            "import_time": "2025-12-10T21:38:58.255847357Z"
        }
    ]
}
References
Credits

Affected packages

PyPI / calcnotepad

Package

Affected ranges

Affected versions

1.*
1.0.0

Database specific

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