MAL-2026-15860

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/py-0requests/MAL-2026-15860.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-15860
Published
2026-09-03T17:01:32Z
Modified
2026-09-04T01:00:06.028399938Z
Summary
Malicious code in py-0requests (PyPI)
Details

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

Source: amazon-inspector (bd1f4c6176eadca0e4a460d4434e9957eb9befa90d85feecd49e4baf7f3abb4b)

py-0requests is a homoglyph typosquat of the PyPI package requests (letter o replaced with digit 0). On import py_0requests, top-level code in the package's __init__.py scrapes os.environ for keys prefixed with SECRET, API, TOKEN, or KEY and sends the collected dictionary over a TCP socket to a host/port read from TS_HOST/TS_PORT (defaulting to 127.0.0.1:9999). The same import path spawns a Python subprocess that opens a TCP connection to the same destination, sends a SHELL marker, and holds the socket open, providing a reverse-shell handshake to whichever operator controls the destination. The package's CLI banner self-identifies as targeting requests and ships no HTTP-client API.

Source: kam193 (0d447dd088f92d3af66ecad461725f2df268f5f073e22a7293b3f946451933fb)

During import, the code exfiltrates potentially sensitive env variables. In all analyzed versions the exfiltration target was a localhost, suggesting it was just a test.


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: 2026-09-0requests

Reasons (based on the campaign):

  • exfiltration-env-variables

  • typosquatting

Database specific
{
    "malicious-packages-origins": [
        {
            "import_time": "2026-09-03T17:16:47.035550803Z",
            "source": "kam193",
            "versions": [
                "0.0.1"
            ],
            "id": "pypi/2026-09-0requests/py-0requests",
            "modified_time": "2026-09-03T17:01:32.373433Z",
            "sha256": "0d447dd088f92d3af66ecad461725f2df268f5f073e22a7293b3f946451933fb"
        },
        {
            "import_time": "2026-09-04T00:45:54.077932787Z",
            "id": "IN-MAL-2026-019374",
            "versions": [
                "0.0.1"
            ],
            "source": "amazon-inspector",
            "modified_time": "2026-09-03T23:48:29Z",
            "sha256": "bd1f4c6176eadca0e4a460d4434e9957eb9befa90d85feecd49e4baf7f3abb4b"
        }
    ]
}
References
Credits

Affected packages

PyPI / py-0requests

Package

Affected ranges

Affected versions

0.*
0.0.1

Database specific

source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/py-0requests/MAL-2026-15860.json"
indicators
{
    "evidence_files": [
        {
            "path": "py_0requests/__init__.py",
            "tlsh": "00111ee2e859092d307a67428527503da3b3d2415b35680277b85e32af37ba8307a6b8",
            "sha256": "b2a6588476f40845a2df173d57d436dc47c0dfd044bcffdc936be1b509cffd3d"
        },
        {
            "path": "py_0requests/cli.py",
            "tlsh": "d8a022ae0fc82838e830800fac0203288000f03220333032eace038e0c82280c8c00a8",
            "sha256": "243486ebc4e74e34073708b1802cfe7eb7df38250d153e30776d6d1dd118a2f4"
        }
    ],
    "package_integrity": [
        {
            "filename": "py_0requests-0.0.1-py3-none-any.whl",
            "hashes": {
                "sha256": "1a3d4213191380f2f09a2c6a8e510a20c71dc9dde4ea6e67a977452da14c0985",
                "blake2b_256": "089b7f9fe4f3b77da20e9292a30893cdc4e7eb67a442f9e1c9b5b7397778809f",
                "md5": "4bb8c0d15b686460484d3cfd9bf616e3"
            }
        },
        {
            "filename": "py_0requests-0.0.1.tar.gz",
            "hashes": {
                "md5": "1e63686f5c74a119ab4354b6850ec0db",
                "blake2b_256": "eaa961f90f79186ab9c6c069f5be0140ba8db4d13c3b1d88c18816641a9a3d44",
                "sha256": "ffca2ff436b06e05eed5e661f350544cd2af35d728c1a05e66451e3fcd86fdec"
            }
        }
    ]
}
cwes
[
    {
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code"
    }
]