MAL-2026-5768

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/bash8/MAL-2026-5768.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-5768
Published
2026-06-14T10:09:19Z
Modified
2026-06-15T19:05:12.899092113Z
Summary
Malicious code in bash8 (PyPI)
Details

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

Source: amazon-inspector (375ef978992bd3c12f8778e62d2c6f8a105fa3a15cc508db6d8dd6043fd7507c)

setup.py overrides the install command with a custom InstallWithBeacon class that, on pip install, collects the installer's hostname via socket.gethostname() and resolves it to an IP via socket.gethostbyname(), then POSTs both as JSON to the hardcoded URL https://webhook.site/b32fda38-ab07-4dc4-820d-548bd5011f78 before continuing the install (setup.py lines 7, 13-15, 30). The pyproject.toml description self-identifies the package as 'POC package (beacon-only)' with placeholder author 'Your Name', confirming the package has no legitimate functionality — its only effect is the recon beacon. Every installer's host identifiers are silently transmitted to an attacker-controlled endpoint without consent.

Source: kam193 (cc82142b2f705e97dabfd2945e1f4686296211b857a6ccda5195803650bddf63)

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": [
        {
            "id": "pypi/GENERIC-standard-pypi-install-pentest/bash8",
            "import_time": "2026-06-14T10:35:38.755823454Z",
            "source": "kam193",
            "versions": [
                "0.0.0",
                "1.0.0"
            ],
            "sha256": "cc82142b2f705e97dabfd2945e1f4686296211b857a6ccda5195803650bddf63",
            "modified_time": "2026-06-14T10:09:19.566142Z"
        },
        {
            "id": "IN-MAL-2026-006658",
            "import_time": "2026-06-15T18:54:56.425869436Z",
            "versions": [
                "1.0.0"
            ],
            "source": "amazon-inspector",
            "sha256": "375ef978992bd3c12f8778e62d2c6f8a105fa3a15cc508db6d8dd6043fd7507c",
            "modified_time": "2026-06-15T18:47:40Z"
        },
        {
            "id": "IN-MAL-2026-006659",
            "import_time": "2026-06-15T18:54:56.532697069Z",
            "versions": [
                "1.0.0"
            ],
            "source": "amazon-inspector",
            "sha256": "878c40538865804940e8dedf17a905b5f1675c4f495f061fa2615c5382f190fb",
            "modified_time": "2026-06-15T18:47:41Z"
        }
    ]
}
References
Credits

Affected packages

PyPI / bash8

Package

Affected ranges

Affected versions

0.*
0.0.0
1.*
1.0.0

Database specific

cwes
[
    {
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506"
    }
]
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/bash8/MAL-2026-5768.json"
indicators
{
    "package_integrity": [
        {
            "filename": "bash8-1.0.0.tar.gz",
            "hashes": {
                "blake2b_256": "709489b2d199f155286b7905733380e9f154dff3a5d2f637c863e363ec86e5e3",
                "sha256": "eb014918581e68c2e541da8e49ed913b5b946d9153a2ac7a39398bb2a137486d",
                "md5": "84a9f31ce7c450a5ee94699f3ebddcad"
            }
        }
    ],
    "evidence_files": [
        {
            "path": "setup.py",
            "sha256": "7700b44d426178cd68055c4d71a25ae2453a0de5081fa011a2f482a878f24631",
            "tlsh": "b911efd3ecb2b175ea8360e0446749a53692b90f6f42ac693ccd47580faf835d821299"
        },
        {
            "path": "pyproject.toml",
            "sha256": "683a0db365a9faa244d508e2eb25a93ace3fa01c7298d7b7ae591fcbc64958e4",
            "tlsh": "06d07d23caa35a10e9c6404010116445deb2f85422c0804467cbc1846ddd885c7de924"
        }
    ],
    "ips": [
        "178.63.67.106"
    ],
    "domains": [
        "webhook.site"
    ]
}