MAL-2026-15501

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/grafeno-api/MAL-2026-15501.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-15501
Published
2026-08-28T23:02:01Z
Modified
2026-08-29T02:30:13.006202220Z
Summary
Malicious code in grafeno-api (npm)
Details

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

Source: amazon-inspector (6324266ac0f7a76fc3a8e8209d194daa17bdd47c913207f218f7c1683db4333c)

package.json declares a preinstall script that shells out via child_process to curl http://216.126.236.46/x.sh and pipe the response into /bin/bash, running attacker-controlled code on the installer's machine at npm install time. The fetch is unpinned, uses plain HTTP to a bare IP with no integrity check, and is wrapped in a try/catch that suppresses errors. The shipped index.js is a one-line stub exporting a no-op request() function, so the package provides no legitimate functionality — the manifest lifecycle hook is the entire payload, and the 'API client' framing is a cover story.

Source: ossf-package-analysis (e30333357bace03d536c107ea6180be7a1951073192c1647bcb028e9fac3d633)

The OpenSSF Package Analysis project identified 'grafeno-api' @ 1.0.1 (npm) as malicious.

It is considered malicious because:

  • The package executes one or more commands associated with malicious behavior.
Database specific
{
    "malicious-packages-origins": [
        {
            "id": "IN-MAL-2026-019063",
            "source": "amazon-inspector",
            "import_time": "2026-08-28T23:14:35.458633866Z",
            "modified_time": "2026-08-28T23:02:01Z",
            "sha256": "6324266ac0f7a76fc3a8e8209d194daa17bdd47c913207f218f7c1683db4333c",
            "versions": [
                "1.0.0"
            ]
        },
        {
            "source": "ossf-package-analysis",
            "import_time": "2026-08-28T23:14:30.532033512Z",
            "modified_time": "2026-08-28T23:12:48Z",
            "sha256": "e30333357bace03d536c107ea6180be7a1951073192c1647bcb028e9fac3d633",
            "versions": [
                "1.0.1"
            ]
        },
        {
            "id": "IN-MAL-2026-019116",
            "source": "amazon-inspector",
            "import_time": "2026-08-29T02:22:18.377300467Z",
            "modified_time": "2026-08-29T01:42:58Z",
            "sha256": "74b99fb3b240a852af422addece31b9c99411be9e4228edcd3f1ea63fd2ce848",
            "versions": [
                "1.0.1"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / grafeno-api

Package

Affected ranges

Affected versions

1.*
1.0.0
1.0.1

Database specific

cwes
[
    {
        "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"
    }
]
indicators
{
    "package_integrity": [
        {
            "filename": "grafeno-api-1.0.0.tgz",
            "hashes": {
                "sha512_sri": "sha512-R4L0CSb/J+xObpb5Jzr1V5N1zZu0G3vjVjVbrgX1KFj5BRU1u2QN6wm0GmutEajxSGcUDfB0CnxOndQw/k7v7g==",
                "sha1": "b61d8065bccda490ed342667fa5784935e900bba"
            }
        }
    ],
    "evidence_files": [
        {
            "path": "package.json",
            "tlsh": "43e0d8748920f5b35ac942700e55426276a689060908bd087b47016ca2de3535db955a",
            "sha256": "1dbb4d390dfc743b3590aed13067f5da7af49b790cbdb46bc6e472719ae19ae0"
        },
        {
            "path": "index.js",
            "tlsh": "d99002475290769f8645ba65fd49954b2997949111414514228869b9114795da040cc4",
            "sha256": "aaa058c8dc0de8f775b72666eee548397630e1bc583d74aad7577481c3ec374c"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/grafeno-api/MAL-2026-15501.json"