MAL-2024-12343

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/shinchina/MAL-2024-12343.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2024-12343
Published
2024-07-26T16:53:30Z
Modified
2025-12-12T20:42:18.831582Z
Summary
Malicious code in shinchina (PyPI)
Details

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

Source: kam193 (0a21b3328ab75bc0d00f300ad728fa27c3b3acc2396d7af90522856afe628aca)

Installing the package or importing the module exfiltrates basic information about the host, and the package has no other purpose.


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: GENERIC-standard-pypi-install-pentest

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.

Database specific
{
    "malicious-packages-origins": [
        {
            "sha256": "d52ab1ca28b87da0fe3fac6bebf3d0cd29862b568965c6ca6f9abc91fbb48b5b",
            "source": "kam193",
            "modified_time": "2024-07-26T16:53:30Z",
            "id": "pypi/GENERIC-standard-pypi-install-pentest/shinchina",
            "ranges": [
                {
                    "type": "ECOSYSTEM",
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ]
                }
            ],
            "import_time": "2025-12-02T22:30:56.399491781Z"
        },
        {
            "sha256": "0a21b3328ab75bc0d00f300ad728fa27c3b3acc2396d7af90522856afe628aca",
            "source": "kam193",
            "modified_time": "2024-07-26T16:53:30Z",
            "id": "pypi/GENERIC-standard-pypi-install-pentest/shinchina",
            "ranges": [
                {
                    "type": "ECOSYSTEM",
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ]
                }
            ],
            "import_time": "2025-12-02T23:07:19.586004968Z"
        },
        {
            "sha256": "8370663b3132616c084b7d4484e58b6958ebf50c1a5766810515ebd89017fa7f",
            "source": "kam193",
            "modified_time": "2024-07-26T16:53:30Z",
            "id": "pypi/GENERIC-standard-pypi-install-pentest/shinchina",
            "versions": [
                "1.0.0"
            ],
            "import_time": "2025-12-10T21:38:58.688941765Z"
        }
    ]
}
References
Credits

Affected packages

PyPI / shinchina

Package

Affected ranges

Affected versions

1.*
1.0.0

Database specific

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