MAL-2024-10727

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/huggingface-hubs/MAL-2024-10727.json
JSON Data
https://api.test.osv.dev/v1/vulns/MAL-2024-10727
Published
2024-11-06T18:46:10Z
Modified
2025-12-12T20:47:45.584539Z
Summary
Malicious code in huggingface-hubs (PyPI)
Details

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

Source: kam193 (1d238b4266e7eb2a0fbda69d410f875e0625c30fcf79647d89c6e3358cbdcb55)

A campaign of probably pentest packages flooding PYPI. Installing the package or importing the module triggers reporting basic info like hostname, path and the username to the package author. There is no other purpose of the package.


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: 2024-11-byted-dast

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.

  • typosquatting

  • dependency-confusion

Source: ossf-package-analysis (9b93398e29b9d342c1401d2daa718f6cd0d56e8f9f7caa3a6c33cec141c5b671)

The OpenSSF Package Analysis project identified 'huggingface-hubs' @ 95.6 (pypi) as malicious.

It is considered malicious because:

  • The package communicates with a domain associated with malicious activity.
Database specific
{
    "malicious-packages-origins": [
        {
            "modified_time": "2024-11-15T09:21:27Z",
            "source": "ossf-package-analysis",
            "versions": [
                "95.6"
            ],
            "import_time": "2024-11-15T09:35:13.495314804Z",
            "sha256": "9b93398e29b9d342c1401d2daa718f6cd0d56e8f9f7caa3a6c33cec141c5b671"
        },
        {
            "modified_time": "2024-11-06T18:46:10Z",
            "ranges": [
                {
                    "type": "ECOSYSTEM",
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ]
                }
            ],
            "sha256": "bd90c8b1f384c441e6eabdf50b2ef9a6c2c6647b20a802079ba30a32844a1668",
            "source": "kam193",
            "import_time": "2025-12-02T22:30:56.102386411Z",
            "id": "pypi/2024-11-byted-dast/huggingface-hubs"
        },
        {
            "modified_time": "2024-11-06T18:46:10Z",
            "ranges": [
                {
                    "type": "ECOSYSTEM",
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ]
                }
            ],
            "sha256": "1d238b4266e7eb2a0fbda69d410f875e0625c30fcf79647d89c6e3358cbdcb55",
            "source": "kam193",
            "import_time": "2025-12-02T23:07:19.290024471Z",
            "id": "pypi/2024-11-byted-dast/huggingface-hubs"
        },
        {
            "modified_time": "2024-11-06T18:46:10Z",
            "sha256": "05bec213a6346fd4442097b3f336a76e2ba70cd1cb345394c1f6e21cde8e9a12",
            "source": "kam193",
            "versions": [
                "95.6"
            ],
            "import_time": "2025-12-10T21:38:58.428752464Z",
            "id": "pypi/2024-11-byted-dast/huggingface-hubs"
        }
    ],
    "iocs": {
        "domains": [
            "byted-dast.com"
        ]
    }
}
References
Credits

Affected packages

PyPI / huggingface-hubs

Package

Name
huggingface-hubs
View open source insights on deps.dev
Purl
pkg:pypi/huggingface-hubs

Affected ranges

Affected versions

95.*

95.6

Database specific

source

"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/huggingface-hubs/MAL-2024-10727.json"