MAL-2026-6754

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/yt-api-dlp/MAL-2026-6754.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-6754
Published
2026-07-04T12:24:12Z
Modified
2026-07-04T20:30:55.140040872Z
Summary
Malicious code in yt-api-dlp (PyPI)
Details

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

Source: kam193 (c3b9ca286cef4b241ded9603c192ce5b13e155cad9b017ee3f89b98674065374)

During import, this malicious copy of a legitimate package downloads an encrypted data disguise as an image. It contains an archive with a next-stage script that uses the Polygon blockchain (contract 0xC7c9026a3a7e27ec6Ce2D09B19FC1FB4bc978BBb) to get the C2 address. The script then communicates with C2 over an encrypted channel to get further commands and ensures persistence. C2 delivers an executable that is executed by loading it into the memory of another process. During analysis, the encryption key and delivered binary contained test data suggesting the author experiments with building a botnet. The package has been briefly used as dependency of a Github project.


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

Campaign: 2026-07-yt-api-dlp

Reasons (based on the campaign):

  • peristence-autorun

  • Downloads and executes a remote malicious script.

  • clones-real-package

  • persistence

  • data-from-blockchain

  • custom-crypto

Database specific
{
    "malicious-packages-origins": [
        {
            "versions": [
                "0.1.0",
                "0.1.1"
            ],
            "sha256": "c3b9ca286cef4b241ded9603c192ce5b13e155cad9b017ee3f89b98674065374",
            "modified_time": "2026-07-04T12:24:13.05687Z",
            "source": "kam193",
            "id": "pypi/2026-07-yt-api-dlp/yt-api-dlp",
            "import_time": "2026-07-04T12:56:48.731454313Z"
        },
        {
            "versions": [
                "0.1.0",
                "0.1.1"
            ],
            "sha256": "3e8d052ba4cb590ddd1e1c9c825efa8122dfcfd47721152ed5f6f3463405f05a",
            "modified_time": "2026-07-04T12:24:13.05687Z",
            "source": "kam193",
            "import_time": "2026-07-04T20:23:45.607150938Z",
            "id": "pypi/2026-07-yt-api-dlp/yt-api-dlp"
        }
    ],
    "iocs": {
        "ips": [
            "159.223.5.148"
        ],
        "urls": [
            "https://raw.githubusercontent.com/DreyCode2/assets/refs/heads/main/asset.png",
            "http://159.223.5.148/api.php"
        ]
    }
}
References
Credits

Affected packages

PyPI / yt-api-dlp

Package

Affected ranges

Affected versions

0.*
0.1.0
0.1.1

Database specific

source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/yt-api-dlp/MAL-2026-6754.json"