MAL-2026-13360

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/uzair-rajput-new/MAL-2026-13360.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-13360
Published
2026-08-05T17:38:18Z
Modified
2026-08-06T23:50:24.341411257Z
Summary
Malicious code in uzair-rajput-new (npm)
Details

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

Source: amazon-inspector (b371d3a1e96e6e79066cf8f620a85867c73eb9ddbe68a81a33589e85146c4df6)

The package is published as a chalk/tinygradient color-gradient wrapper, and its ESM entrypoint dist/index.js matches that description. The CJS main dist/index.cjs diverges: at module load it reconstructs an AES-256-CBC key by reading byte arrays from sibling files dist/_a.cjs, dist/_b.cjs, and dist/_c.cjs, XORing them with the constants 17, 91, and 53, concatenating the results, and passing that through scryptSync alongside a hex IV literal. The derived key is used with createDecipheriv('aes-256-cbc',...) to decrypt a large embedded base64 blob, and the resulting source is executed via new Function('module','exports','require','__dirname','__filename', _x)(...). The stated purpose (color gradients) has no legitimate need for an encrypted payload with a key split across three sibling files and evaluated at require-time; the split-key + AES + new Function pattern conceals the payload from static inspection, and the divergence between the benign ESM twin and the obfuscated CJS entrypoint indicates deliberate concealment. Every require() of this package on the installer's host runs attacker-controlled code with the process's privileges.

Database specific
{
    "malicious-packages-origins": [
        {
            "sha256": "70070ac11c08aa4d23d214d9539b96f97c6bd6eaa56bb6561160d02bd6d52632",
            "id": "IN-MAL-2026-015838",
            "modified_time": "2026-08-05T17:38:18Z",
            "source": "amazon-inspector",
            "import_time": "2026-08-05T18:07:51.171790787Z",
            "versions": [
                "1.0.1"
            ]
        },
        {
            "sha256": "8707b4f666ee10edd27b372407eb544ae84ed9959c1a23b3558da9a0003009f4",
            "id": "IN-MAL-2026-016804",
            "modified_time": "2026-08-06T19:41:15Z",
            "source": "amazon-inspector",
            "import_time": "2026-08-06T23:25:10.141195209Z",
            "versions": [
                "1.1.0"
            ]
        },
        {
            "sha256": "b31945523ba2cf6d4fac09347224887cc6dc87f1b145092bee98979ede432f2d",
            "id": "IN-MAL-2026-016803",
            "modified_time": "2026-08-06T19:41:08Z",
            "import_time": "2026-08-06T23:25:10.03191426Z",
            "source": "amazon-inspector",
            "versions": [
                "1.3.0"
            ]
        },
        {
            "sha256": "b371d3a1e96e6e79066cf8f620a85867c73eb9ddbe68a81a33589e85146c4df6",
            "id": "IN-MAL-2026-016806",
            "modified_time": "2026-08-06T19:41:36Z",
            "source": "amazon-inspector",
            "import_time": "2026-08-06T23:25:10.267971952Z",
            "versions": [
                "1.2.0"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / uzair-rajput-new

Package

Affected ranges

Affected versions

1.*
1.0.1
1.1.0
1.2.0
1.3.0

Database specific

indicators
{
    "evidence_files": [
        {
            "sha256": "3f564f0df5a16009ca450256e3e5e0457dcd9202e10f79567b7b2aa354d888b2",
            "path": "dist/index.cjs",
            "tlsh": "f1f1ae461cbe00a6f8bac1b27932e14d1df5dbb4345f940a06ca9eca449661e90f0b1d"
        }
    ],
    "package_integrity": [
        {
            "hashes": {
                "sha512_sri": "sha512-+11JQNfleMzuhHqgU9nYTD2cLVCe0j2q+4TqD6Fn5w1dwhW6Xqvi9SmqYKhzk/F0rblaJ0WpGj389eJHBjBijw==",
                "sha1": "9ceb68689aa14def50104f5cf39cc00d5940825e"
            },
            "filename": "uzair-rajput-new-1.0.1.tgz"
        }
    ]
}
cwes
[
    {
        "name": "Embedded Malicious Code",
        "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",
        "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"
    }
]
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/uzair-rajput-new/MAL-2026-13360.json"