MAL-2024-9270

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/ptsecurity/MAL-2024-9270.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2024-9270
Published
2024-10-07T13:23:16Z
Modified
2025-12-12T20:41:50.105377Z
Summary
Malicious code in ptsecurity (PyPI)
Details

The package contains code to download and execute a reverse shell script.


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

Source: kam193 (a67d1a04a247e897d3da239f3ff95a95284282eb6bb38c266273167e4419b9c1)

When imported, the package download and runs a remote stage - a reverse shell. To mask activity, the remote domain is made to mimic PyPI host: files[.]pythonhosted[.]ru


Category: MALICIOUS - The campaign has clearly malicious intent, like infostealers.

Campaign: 2024-10-innostage

Reasons (based on the campaign):

  • The package contains code to create a reverse shell, allowing an attacker to execute any commands on the victim's machine.
Database specific
{
    "iocs": {
        "urls": [
            "http://files.pythonhosted.ru/56788.txt",
            "http://files.pythonhosted.ru/56789.txt"
        ],
        "domains": [
            "files.pythonhosted.ru",
            "pythonhosted.ru",
            "files.inostage.ru"
        ]
    },
    "malicious-packages-origins": [
        {
            "id": "pypi/2024-10-innostage/ptsecurity",
            "ranges": [
                {
                    "type": "ECOSYSTEM",
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ]
                }
            ],
            "import_time": "2025-12-02T22:30:55.449367005Z",
            "sha256": "db7f459d8d864985656f06a8c8d163dfcf5679b1ce388f1cb3108395328671a0",
            "source": "kam193",
            "modified_time": "2024-10-07T13:23:16Z"
        },
        {
            "id": "pypi/2024-10-innostage/ptsecurity",
            "ranges": [
                {
                    "type": "ECOSYSTEM",
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ]
                }
            ],
            "import_time": "2025-12-02T23:07:18.472348001Z",
            "sha256": "a67d1a04a247e897d3da239f3ff95a95284282eb6bb38c266273167e4419b9c1",
            "source": "kam193",
            "modified_time": "2024-10-07T13:23:16Z"
        },
        {
            "id": "pypi/2024-10-innostage/ptsecurity",
            "import_time": "2025-12-10T21:38:57.68971193Z",
            "sha256": "2dc12db211fb9943a1e406e939aaabf211a1c864fc017b55aedd6e40f08e2b0b",
            "source": "kam193",
            "modified_time": "2024-10-07T13:23:16Z",
            "versions": [
                "7.0.6"
            ]
        }
    ]
}
References
Credits

Affected packages

PyPI / ptsecurity

Package

Affected ranges

Affected versions

7.*
7.0.6

Database specific

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