MAL-2026-5304

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/rsquests/MAL-2026-5304.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-5304
Published
2026-06-08T07:52:31Z
Modified
2026-07-09T22:17:08.138234138Z
Summary
Malicious code in rsquests (PyPI)
Details

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

Source: amazon-inspector (e2041887c315474d0722cbf717e189ec1260e209c5f00da5ca3a52a60c6aebb2)

The package name rsquests is a single-character insertion typo of the top-100 PyPI package requests. Package metadata and source are a verbatim copy of upstream requests: rsquests/__version__.py sets __title__ = "requests", METADATA lists Author-email: Kenneth Reitz <me@kennethreitz.org>, and top_level.txt declares the top-level package as requests (so import requests after installing rsquests resolves to this package's bundled copy, shadowing the real upstream if it isn't installed). The full public API (get/post/put/delete/Session/...) is replicated, so a developer who mistypes pip install requests as pip install rsquests gets working behavior and may not notice the substitution. No exfiltration, RCE, dropper, credential harvest, or silent-relay payload is present in this version — the install-time and import-time code paths match the upstream library. The risk is name-confusion plus future-version risk: the squatted name normalizes the typo and provides a vector if a later release introduces a malicious payload. Routing to human review per typosquat-without-payload policy — name-similarity is a subjective signal and the absence of a current payload means this does not meet the bar for an automated block.

Source: kam193 (b32959e10bc6b1df57d105a5e5d74cbe7b69660cb7a1e78185d3f5e0e0f07e10)

Typosquatting package published from a compromised account with an obfuscated infostealer. The infostealer is a heavily obfuscated JavaScript code executed using Bun runtime on Python startup. It collectes all kinds of sensitive data, including API keys, credentials to package repositories, cryptocurrency assets, password manager data. Infostealer actively queries online services to collect additional secrets as well as attempts to gain persistence and spread further by publishing infected packages using collected credentials. Data are exfiltrated likely using Github. The code seems to threaten to wipe the user's data if it detects invalid GitHub tokens. Cleanup should be done with caution.

It seems to be related to the recent Mini Shai Hulud campaign.


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

Campaign: 2026-06-compr-woodpecker

Reasons (based on the campaign):

  • compromised-package

  • exfiltration-env-variables

  • exfiltration-cloud-tokens

  • exfiltration-credentials

  • abuses-pth

  • obfuscation

  • infostealer

  • The package contains code to detect if it is running in a sandbox environment.

  • exfiltration-crypto

  • files-exfiltration

  • destructive-actions

Database specific
{
    "malicious-packages-origins": [
        {
            "versions": [
                "2.34.2",
                "2.34.3"
            ],
            "import_time": "2026-06-08T09:42:58.909580933Z",
            "sha256": "b32959e10bc6b1df57d105a5e5d74cbe7b69660cb7a1e78185d3f5e0e0f07e10",
            "source": "kam193",
            "id": "pypi/2026-06-compr-woodpecker/rsquests",
            "modified_time": "2026-06-08T07:52:32.007871Z"
        },
        {
            "versions": [
                "2.34.2",
                "2.34.3"
            ],
            "import_time": "2026-06-08T11:41:02.548256137Z",
            "sha256": "fe6aea9cd8f7473d9ed244dec4f7ed8e41db8c994ba1c5ef447120331b9e7cae",
            "source": "kam193",
            "id": "pypi/2026-06-compr-woodpecker/rsquests",
            "modified_time": "2026-06-08T07:52:32.007871Z"
        },
        {
            "versions": [
                "2.34.2",
                "2.34.3"
            ],
            "import_time": "2026-06-09T07:48:29.660780065Z",
            "sha256": "4fb80b5b56d1513fb5fc9eabbd64a38c054ee698c5ee1f04e01325e2ee6e5885",
            "source": "kam193",
            "id": "pypi/2026-06-compr-woodpecker/rsquests",
            "modified_time": "2026-06-08T07:52:32.007871Z"
        },
        {
            "versions": [
                "2.34.2"
            ],
            "import_time": "2026-07-08T23:27:54.317694596Z",
            "sha256": "e2041887c315474d0722cbf717e189ec1260e209c5f00da5ca3a52a60c6aebb2",
            "source": "amazon-inspector",
            "id": "IN-MAL-2026-008935",
            "modified_time": "2026-07-08T22:54:45Z"
        },
        {
            "versions": [
                "2.34.3"
            ],
            "import_time": "2026-07-09T22:02:31.34079122Z",
            "sha256": "dea50337a1e5e3d778bdcc0275f160646cdc00e92e90e63ab90434b0e3d78924",
            "source": "amazon-inspector",
            "id": "IN-MAL-2026-009436",
            "modified_time": "2026-07-09T21:55:35Z"
        }
    ]
}
References
Credits

Affected packages

PyPI / rsquests

Package

Affected ranges

Affected versions

2.*
2.34.2
2.34.3

Database specific

indicators
{
    "evidence_files": [
        {
            "sha256": "75f8c8b3514d46edaba2ce2317bbc5fdcd5feca819c7f86d7dbcf922b8be1c21",
            "tlsh": "bda175e312e07f64efa30a46a76997594527c679bacd34b9e8bd80bc91143a1833d06c",
            "path": "rsquests-2.34.2.dist-info/METADATA"
        }
    ],
    "package_integrity": [
        {
            "hashes": {
                "sha256": "67cc4ee0fa900f30bfa312b4a42ba9d3de47a80ee460581c622a3474e2beae87",
                "blake2b_256": "82d1e28e0b7a5e58d28cafc81783fe3d8f23019f49d7f7b45b7b4f3e646e3786",
                "md5": "0fa585b6dda26b896a033cbe2f4ae6a9"
            },
            "filename": "rsquests-2.34.2-py3-none-any.whl"
        }
    ]
}
cwes
[
    {
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code"
    },
    {
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code"
    }
]
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/rsquests/MAL-2026-5304.json"