MAL-2026-6394

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/hs-locale-management/MAL-2026-6394.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-6394
Aliases
  • GHSA-rv32-4gr2-5g7w
Published
2026-06-24T14:01:16Z
Modified
2026-06-25T03:31:24.469023538Z
Summary
Malicious code in hs-locale-management (npm)
Details

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

Source: amazon-inspector (1d717c264a1c338c3b3fee43c13e43eba24cafbdabf34f62108bbd99e05c6b1b)

Package targets the internal-sounding name 'hs-locale-management' on the public npm registry at an inflated version (99.99.99-poc3), the canonical dependency-confusion shape. Both preinstall.js and postinstall.js execute automatically on npm install and POST installer identity to a hardcoded collector at https://webhook.site/f83b073c-a04a-4ac5-8930-507051bd22f7, including os.hostname(), process.cwd(), pid, node version, platform, arch, user, and the first 20 environment variable names from process.env. preinstall.js additionally issues a uniquely-keyed DNS lookup to pkg-poc3-<timestamp>.callbacks.report, providing an out-of-band beacon that confirms code execution even when HTTPS egress is blocked. The package's self-description as a 'security PoC' does not change the behavior: a public-registry package claiming an internal name and exfiltrating host/env data on install is the harmful end of the dependency-confusion pattern regardless of stated intent.

Source: ghsa-malware (c0c64cbd2dc6ed9daff15a5552b386ab39a761b8a7fb212d3ee60c1c91a2605c)

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": "1161606183ced9cba1c4822de7f6a3515230f04ccfadd33ea2937c667cfaf1d2",
            "import_time": "2026-06-24T15:01:17.578177521Z",
            "source": "amazon-inspector",
            "modified_time": "2026-06-24T14:01:16Z",
            "versions": [
                "99.99.99-poc2"
            ],
            "id": "IN-MAL-2026-007433"
        },
        {
            "sha256": "1d717c264a1c338c3b3fee43c13e43eba24cafbdabf34f62108bbd99e05c6b1b",
            "import_time": "2026-06-25T00:57:06.982395805Z",
            "source": "amazon-inspector",
            "modified_time": "2026-06-25T00:24:46Z",
            "versions": [
                "99.99.99-poc3"
            ],
            "id": "IN-MAL-2026-007449"
        },
        {
            "sha256": "c0c64cbd2dc6ed9daff15a5552b386ab39a761b8a7fb212d3ee60c1c91a2605c",
            "id": "GHSA-rv32-4gr2-5g7w",
            "ranges": [
                {
                    "type": "SEMVER",
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ]
                }
            ],
            "modified_time": "2026-06-25T02:16:09Z",
            "source": "ghsa-malware",
            "import_time": "2026-06-25T03:23:52.156599881Z"
        }
    ]
}
References
Credits

Affected packages

npm / hs-locale-management

Package

Name
hs-locale-management
View open source insights on deps.dev
Purl
pkg:npm/hs-locale-management

Affected ranges

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

Affected versions

99.*
99.99.99-poc2
99.99.99-poc3

Database specific

source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/hs-locale-management/MAL-2026-6394.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"
    },
    {
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506"
    }
]
indicators
{
    "evidence_files": [
        {
            "sha256": "c2e0be22b69366160b4db0916277c1a4f8732297ab95a4b1e48e78d1f7808b53",
            "tlsh": "632172d491eca62411f3f7c0a05f121264b7c9299a06aea0406192a33f7a77d12b2cec",
            "path": "preinstall.js"
        },
        {
            "tlsh": "362175a015a8173031f3f684f4d61227627bca18aa02bd546095436b3f1912d02719fd",
            "sha256": "5bc47ee3954ae8a41c667c663a7ab4c66c0d1e23b44c222c1356f04a81bcbd0c",
            "path": "postinstall.js"
        },
        {
            "tlsh": "fce068301406a7337cc897e76923005619ea8c86c7381e6862c3408222aeabe98bf002",
            "sha256": "c9c6e8f1036b2b8f32915ae5e76736a1c6b1c3c3c400f45b5d33f7b9d7764c45",
            "path": "package.json"
        }
    ],
    "package_integrity": [
        {
            "filename": "hs-locale-management-99.99.99-poc2.tgz",
            "hashes": {
                "sha1": "64d371a01c7a55d2976a9e60b9097e5b6640f028",
                "sha512_sri": "sha512-MmoU1GZClUdliirBvG9AaZzCMnyMvZt4hTFw98PZWV4JhqUVT+slJQCxUizLEM4ezCQJohOz9VDItHVpkAdIAg=="
            }
        }
    ]
}