MAL-2026-6954

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/wsh4_npm/MAL-2026-6954.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-6954
Aliases
  • GHSA-6h38-53x2-5jhm
Published
2026-07-07T16:19:41Z
Modified
2026-07-08T20:47:10.223983376Z
Summary
Malicious code in wsh4_npm (npm)
Details

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

Source: amazon-inspector (9b6c0b02642cf1c4c0fe420fd03c0c129c21a544144878df4833373da1b98aab)

On npm install, the package's postinstall hook (scripts.postinstall: node index.js) auto-executes index.js, which builds a payload containing the absolute installation path (which reveals the installer's OS username via the home directory prefix), the Node.js version, platform, and architecture, and POSTs it to a hardcoded Discord webhook at discord.com/api/webhooks/1523336123319849031/... controlled by the author. The package's default internal name is whs4_typo and its README states it is intended to notify on typo installs; there is no legitimate functionality beyond the beacon. This is a typosquat-style reconnaissance beacon: the attacker gains identifying information about developers/build systems that mistype a target package name, on every install, with no user consent.

Source: ghsa-malware (c8133756ff7c30e9051c8fa79fec692e9427a3d41f97eed4e031d2e7d0a25170)

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": [
        {
            "modified_time": "2026-07-07T16:19:42Z",
            "source": "ghsa-malware",
            "import_time": "2026-07-07T17:01:10.263606957Z",
            "ranges": [
                {
                    "type": "SEMVER",
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ]
                }
            ],
            "id": "GHSA-6h38-53x2-5jhm",
            "sha256": "c8133756ff7c30e9051c8fa79fec692e9427a3d41f97eed4e031d2e7d0a25170"
        },
        {
            "modified_time": "2026-07-08T19:35:49Z",
            "source": "amazon-inspector",
            "import_time": "2026-07-08T20:32:09.879550603Z",
            "versions": [
                "1.0.0"
            ],
            "id": "IN-MAL-2026-008290",
            "sha256": "9b6c0b02642cf1c4c0fe420fd03c0c129c21a544144878df4833373da1b98aab"
        }
    ]
}
References
Credits

Affected packages

npm / wsh4_npm

Package

Affected ranges

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

Affected versions

1.*
1.0.0

Database specific

indicators
{
    "evidence_files": [
        {
            "tlsh": "6661518a96f022210ba3f3d4214bd12bbb6941132a4ecd55f64c47b01fce67ce4e52e8",
            "path": "index.js",
            "sha256": "d392bd0c41251f2eca7bef9702732ed775555e350d8e47321f14a24af3941b7b"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/wsh4_npm/MAL-2026-6954.json"
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"
    }
]