MAL-2026-5395

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@sql-trigger/nodesql/MAL-2026-5395.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-5395
Aliases
  • GHSA-9f9w-wg5j-m53j
Published
2026-06-09T15:46:48Z
Modified
2026-07-03T17:01:42.307151286Z
Summary
Malicious code in @sql-trigger/nodesql (npm)
Details

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

Source: amazon-inspector (39e37d95fb040c83277583e2bf90b56363f86360337f1c30e63c85eb56579ada)

The package advertises itself as a simple SQL helper but its main entry index.js is heavily obfuscated (obfuscator.io string-array + RC4 + base64, 218-entry shuffled literal array, two RC4 decoders) with no human-readable logic. After deobfuscation, the top-level IIFE requires os/fs/path/childprocess/axios, installs uncaughtException and unhandledRejection handlers to suppress errors, then assembles an IPv4 address at runtime by concatenating four numeric octets with '.', issues an axios HTTP GET to that host, writes the response body into os.tmpdir() with flag 'w+', and invokes childprocess exec/spawn on the written file with windowsHide:true and cwd set to the tmp directory. This is a generic remote-binary dropper: the destination is mutable, the payload is opaque and unverified, the URL is built at runtime to evade static scanners, and the fetched file is unrelated to any SQL functionality. The dropper fires the moment any consumer require()s the package, so installing this dependency results in attacker-controlled code being downloaded to and executed from the consumer's temp directory.

Source: ghsa-malware (af206fa9674f6676548fa54503b38eaa9a0cd31b267e4b7a39598bfde93c0e54)

Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.

Database specific
{
    "malicious-packages-origins": [
        {
            "versions": [
                "1.0.1"
            ],
            "sha256": "39e37d95fb040c83277583e2bf90b56363f86360337f1c30e63c85eb56579ada",
            "modified_time": "2026-06-09T15:46:48Z",
            "source": "amazon-inspector",
            "id": "IN-MAL-2026-004942",
            "import_time": "2026-06-09T16:59:43.549497061Z"
        },
        {
            "versions": [
                "1.0.0"
            ],
            "sha256": "df686aa903ce47ad4414266558600486e522e7ad0bf4e5876018ef24bca1d1a3",
            "source": "amazon-inspector",
            "modified_time": "2026-06-12T19:09:53Z",
            "import_time": "2026-06-12T19:44:12.764293786Z",
            "id": "IN-MAL-2026-006142"
        },
        {
            "sha256": "af206fa9674f6676548fa54503b38eaa9a0cd31b267e4b7a39598bfde93c0e54",
            "ranges": [
                {
                    "type": "SEMVER",
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ]
                }
            ],
            "modified_time": "2026-07-03T15:59:15Z",
            "source": "ghsa-malware",
            "import_time": "2026-07-03T16:45:59.760638744Z",
            "id": "GHSA-9f9w-wg5j-m53j"
        }
    ]
}
References
Credits

Affected packages

npm / @sql-trigger/nodesql

Package

Name
@sql-trigger/nodesql
View open source insights on deps.dev
Purl
pkg:npm/%40sql-trigger%2Fnodesql

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*
1.0.0
1.0.1

Database specific

indicators
{
    "package_integrity": [
        {
            "filename": "nodesql-1.0.1.tgz",
            "hashes": {
                "sha512_sri": "sha512-jQp8WH9Bmvr6eZIhQP/JXfZdqL9LWOrPXhhQ8FJtlPSVV0kRXDud9RssDQUFYC1zo4XsNxh9EnZgO/VPTNTBzw==",
                "sha1": "3a733d9326588696ce792cc6b2b39401a0db6be9"
            }
        }
    ],
    "evidence_files": [
        {
            "sha256": "47336ec64eb50ea6780cc4dd72a8fa72edc6c882269befea2f8c3483b87e1852",
            "path": "index.js",
            "tlsh": "8a82b7c83bc2b0215733e0fbba1bb096e2a95c89a34d8549f766f458fd6c314d4c5a68"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@sql-trigger/nodesql/MAL-2026-5395.json"
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"
    },
    {
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code",
        "cweId": "CWE-506"
    }
]