MAL-2026-6953

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/whs4_pnm/MAL-2026-6953.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-6953
Aliases
  • GHSA-23v6-j5g5-7x9p
Published
2026-07-07T16:19:41Z
Modified
2026-07-09T16:32:05.733843396Z
Summary
Malicious code in whs4_pnm (npm)
Details

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

Source: amazon-inspector (47d72187d8b59a9a40cb8397d064bc7319b20e19ee7d48b870432bd96952b089)

The package declares a postinstall script (node index.js) that runs unconditionally on npm install. The script POSTs the absolute __filename path (which contains the installer's OS username via the home-directory prefix), the Node.js version, and the platform/architecture to a hardcoded Discord webhook at https://discord.com/api/webhooks/1523336123319849031/.... There is no opt-in, disclosure, or configuration option — every install silently transmits host-identifying data to an author-controlled endpoint. The package's own README and default internal packageName value (whs4_typo) indicate the package is positioned as a typo-target beacon, matching the typosquat-with-callback pattern where the attacker collects fingerprints of developers who mistype a legitimate package name.

Source: ghsa-malware (6c7538f81810e9802a2f2a45995000376e76177b2eb21d1c6e8aea63942a330d)

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": [
        {
            "sha256": "6c7538f81810e9802a2f2a45995000376e76177b2eb21d1c6e8aea63942a330d",
            "modified_time": "2026-07-07T16:19:42Z",
            "import_time": "2026-07-07T17:01:10.198929405Z",
            "id": "GHSA-23v6-j5g5-7x9p",
            "ranges": [
                {
                    "type": "SEMVER",
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ]
                }
            ],
            "source": "ghsa-malware"
        },
        {
            "versions": [
                "1.0.0"
            ],
            "modified_time": "2026-07-09T15:46:30Z",
            "import_time": "2026-07-09T16:20:52.565361518Z",
            "sha256": "47d72187d8b59a9a40cb8397d064bc7319b20e19ee7d48b870432bd96952b089",
            "source": "amazon-inspector",
            "id": "IN-MAL-2026-009225"
        }
    ]
}
References
Credits

Affected packages

npm / whs4_pnm

Package

Affected ranges

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

Affected versions

1.*
1.0.0

Database specific

cwes
[
    {
        "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"
    }
]
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/whs4_pnm/MAL-2026-6953.json"
indicators
{
    "evidence_files": [
        {
            "sha256": "f2ddb56ddd701d752a4119f13d83db2d2191ae8b36211383cbc652cf652dac8a",
            "path": "index.js",
            "tlsh": "6c61628a96f122210bb3f3d4214bd12bbb2941132a4ecd45f64c47b41fce67de4e52e8"
        },
        {
            "sha256": "0096d3922f4ffb4a0e4ae45f24bcf321c8e932b41426820937fe1b8efccc3f44",
            "path": "README.md",
            "tlsh": "75a01283120e170c30140d32005c14010750dc05d11d00e58601d9a08408055207808f"
        }
    ]
}