MAL-2026-5303

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/rlask/MAL-2026-5303.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-5303
Aliases
Published
2026-06-08T07:53:50Z
Modified
2026-07-09T23:02:07Z
Summary
Malicious code in rlask (PyPI)
Details

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

Source: amazon-inspector (89a034f9ba4356799034d728884eccecf5c53779d85280556419cda38e671a30)

The package name 'rlask' is a single-character edit of the popular 'flask' package. METADATA declares 'Maintainer-email: Pallets contact@palletsprojects.com', and entry_points.txt registers 'flask=flask.cli:main' rather than an rlask-specific entry — indicating the distribution is a verbatim repackaging of Flask 3.1.x source while falsely advertising Pallets maintainership. The exported API (Flask, Blueprint, Config, request, session, etc.) mirrors Flask's surface. No exfiltration, install-time hooks, subprocess execution, credential reads, or outbound network I/O were observed in the shipped code. The risk is name confusion plus forged maintainer identity: a developer who mistypes 'pip install flask' as 'pip install rlask' receives a package that shadows the real Flask, controlled by an author who is not Pallets and could push a malicious update at any time. Routing to human review per the typosquat handling discipline — name-confusion judgments and impersonated-maintainer attributions should be confirmed by a human before publication.

Source: kam193 (baacd735e23c83962845507427fa53c89bdc2e8e0456dbbce6f00a91bf4fe002)

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": [
        {
            "id": "pypi/2026-06-compr-woodpecker/rlask",
            "import_time": "2026-06-08T09:42:58.908884113Z",
            "modified_time": "2026-06-08T07:53:50.973743Z",
            "sha256": "baacd735e23c83962845507427fa53c89bdc2e8e0456dbbce6f00a91bf4fe002",
            "source": "kam193",
            "versions": [
                "3.1.3",
                "3.1.4",
                "3.1.5",
                "3.1.6",
                "3.1.7"
            ]
        },
        {
            "id": "pypi/2026-06-compr-woodpecker/rlask",
            "import_time": "2026-06-08T11:41:02.547347016Z",
            "modified_time": "2026-06-08T07:53:50.973743Z",
            "sha256": "4ca4516111fcaad3efadf2bf86fd3ae9c975315f7754183c797acabc1e6475d5",
            "source": "kam193",
            "versions": [
                "3.1.3",
                "3.1.4",
                "3.1.5",
                "3.1.6",
                "3.1.7"
            ]
        },
        {
            "id": "pypi/2026-06-compr-woodpecker/rlask",
            "import_time": "2026-06-09T07:48:29.659983437Z",
            "modified_time": "2026-06-08T07:53:50.973743Z",
            "sha256": "b4d4792bb2fb39439fe9b965c349935006fb237decae4f77ac833921d0d283f2",
            "source": "kam193",
            "versions": [
                "3.1.3",
                "3.1.4",
                "3.1.5",
                "3.1.6",
                "3.1.7"
            ]
        },
        {
            "id": "IN-MAL-2026-008934",
            "import_time": "2026-07-08T23:27:54.23970498Z",
            "modified_time": "2026-07-08T22:54:35Z",
            "sha256": "89a034f9ba4356799034d728884eccecf5c53779d85280556419cda38e671a30",
            "source": "amazon-inspector",
            "versions": [
                "3.1.3"
            ]
        },
        {
            "id": "IN-MAL-2026-009529",
            "import_time": "2026-07-09T22:56:31.542760041Z",
            "modified_time": "2026-07-09T22:08:50Z",
            "sha256": "85f60af8077caaaf6b2937b78c1a5f3a84b39241ff3739203f33eecfe45f01bf",
            "source": "amazon-inspector",
            "versions": [
                "3.1.6"
            ]
        },
        {
            "id": "IN-MAL-2026-009530",
            "import_time": "2026-07-09T22:56:31.618047954Z",
            "modified_time": "2026-07-09T22:09:00Z",
            "sha256": "92bd4b422853a33d38f179752632ef094a008292ff1f9a2168bd90fc385ee913",
            "source": "amazon-inspector",
            "versions": [
                "3.1.7"
            ]
        },
        {
            "id": "IN-MAL-2026-009528",
            "import_time": "2026-07-09T22:56:31.413284917Z",
            "modified_time": "2026-07-09T22:08:43Z",
            "sha256": "cc98b863089370a92d8c73e09b64b8d3fc0a7a088d0e3c7e36b12d64bbff959a",
            "source": "amazon-inspector",
            "versions": [
                "3.1.4"
            ]
        },
        {
            "id": "IN-MAL-2026-009532",
            "import_time": "2026-07-09T22:56:31.79247844Z",
            "modified_time": "2026-07-09T22:09:19Z",
            "sha256": "d48cbada3f475ae3be28305c78ee0f626f83dcca7cb7de691e8083de964785d3",
            "source": "amazon-inspector",
            "versions": [
                "3.1.5"
            ]
        }
    ]
}
References
Credits

Affected packages

PyPI / rlask

Package

Affected ranges

Affected versions

3.*
3.1.3
3.1.4
3.1.5
3.1.6
3.1.7

Database specific

cwes
[
    {
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code"
    },
    {
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code"
    },
    {
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code"
    },
    {
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code"
    },
    {
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code"
    }
]
indicators
{
    "evidence_files": [
        {
            "path": "rlask-3.1.3.dist-info/METADATA",
            "sha256": "9edae1da526276a4c0174bef36f1da900d07adea87ea42210a50cb3037bbb0df",
            "tlsh": "ee5186ab87c06ba07fc783cb921cb4ede537825cfb8e50f5747480a426842a5827d23d"
        }
    ],
    "package_integrity": [
        {
            "filename": "rlask-3.1.3-py3-none-any.whl",
            "hashes": {
                "blake2b_256": "09d02235ea9d2f50b2c06b192409c1658f16419b9bc1fc5203cc3c28f9213c43",
                "md5": "aed8e3d4318810529cb28a9a52aabe72",
                "sha256": "1f655e86ef30e1709291409911177914917c4342cb7edbe9a30d3e74836a631d"
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/rlask/MAL-2026-5303.json"