MAL-2026-15861

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

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

Source: amazon-inspector (bd6d1a5c78d4368dc76a90cc90a68e4264170ed9ef208c8096251798734bb0d6)

py1requests is a typosquat of the popular requests library (leading 1 inserted inside the name). On import, py1requests/init.py iterates os.environ and collects every variable whose name starts with SECRET, API, TOKEN, or KEY, then opens a TCP socket to HOST:PORT and sends the serialized dict; HOST and PORT default to 127.0.0.1:9999 but are overridable via the TSHOST and TSPORT environment variables. The same init.py spawns a python subprocess that connects to the same host/port and sends a 'SHELL' marker, holding the connection open — a reverse-shell staging path. cli.py prints 'py_1requests installed -- targeting requests' and init.py prints '[typosquat] exfiltrating:...', in-source admissions of purpose. Both behaviors fire unconditionally on import with no documented purpose.

Source: kam193 (877b4b612041848c46e9fb32160b85b74e7c3e983a38313017bc8c034e5f93da)

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.036527917Z",
            "id": "pypi/2026-09-0requests/py-1requests",
            "versions": [
                "0.0.1"
            ],
            "source": "kam193",
            "modified_time": "2026-09-03T17:02:03.007584Z",
            "sha256": "877b4b612041848c46e9fb32160b85b74e7c3e983a38313017bc8c034e5f93da"
        },
        {
            "import_time": "2026-09-04T00:45:54.899058915Z",
            "source": "amazon-inspector",
            "versions": [
                "0.0.1"
            ],
            "id": "IN-MAL-2026-019386",
            "modified_time": "2026-09-03T23:50:24Z",
            "sha256": "bd6d1a5c78d4368dc76a90cc90a68e4264170ed9ef208c8096251798734bb0d6"
        }
    ]
}
References
Credits

Affected packages

PyPI / py-1requests

Package

Affected ranges

Affected versions

0.*
0.0.1

Database specific

source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/py-1requests/MAL-2026-15861.json"
indicators
{
    "evidence_files": [
        {
            "path": "py_1requests/__init__.py",
            "tlsh": "00111ee2e859092d307a67428527503da3b3d2415b35680277b85e32af37ba8307a6b8",
            "sha256": "b2a6588476f40845a2df173d57d436dc47c0dfd044bcffdc936be1b509cffd3d"
        }
    ],
    "package_integrity": [
        {
            "filename": "py_1requests-0.0.1-py3-none-any.whl",
            "hashes": {
                "md5": "131defaa4751d8031e80be024a64549b",
                "blake2b_256": "61e9d656f64e0ff5dd550c66ef351de9e939c12ada6b6dcfdc61c3bea3c674b6",
                "sha256": "deb530d11fcd2b05d46819d575e75177e3d85b516223e29b689a3f8702024fa4"
            }
        },
        {
            "filename": "py_1requests-0.0.1.tar.gz",
            "hashes": {
                "sha256": "6d6bc65ef1138fd22d60d1acad1c612678b951858a5c3df3cbde726503ba385c",
                "blake2b_256": "403837766994f94a3b6e99bfb32a83bd9a6b6f10ba9124d8f733a6a301be2d8c",
                "md5": "e8934d43091cfde5f7cee946f45504b8"
            }
        }
    ]
}
cwes
[
    {
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code"
    }
]