MAL-2026-6101

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/type-check-816d/MAL-2026-6101.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-6101
Aliases
  • GHSA-q7qm-cfrq-fg6g
Published
2026-06-18T03:27:53Z
Modified
2026-06-18T06:01:49.771145495Z
Summary
Malicious code in type-check-816d (npm)
Details

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

Source: amazon-inspector (6bd3f7912317a2b9465a4c22ea948951f70aaa8c0d12f152572d43febc5667dd)

The package declares a postinstall hook ("postinstall": "node run.js") that runs run.js automatically on npm install. run.js imports os, https, http, and child_process, reads host identifiers and environment data (process.env.USER, os.hostname(), os.platform(), process.cwd()), base64-encodes the payload (Buffer.from(...).toString('base64')), and exfiltrates it via outbound HTTP/HTTPS requests (multiple POST calls and a GET). The package name appears to be a numeric-suffixed lure with no legitimate documented purpose, and the postinstall behavior is a credential/host-recon exfiltration pattern rather than any build or setup task. Installing this package causes immediate, unattended exfiltration of installer host data to an attacker-controlled endpoint.

Source: ghsa-malware (61d6a8d969f423b926400caee1087849fe0475b8ca302176004bfd5574e50e3d)

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": "6bd3f7912317a2b9465a4c22ea948951f70aaa8c0d12f152572d43febc5667dd",
            "source": "amazon-inspector",
            "modified_time": "2026-06-18T03:56:37Z",
            "id": "IN-MAL-2026-006963",
            "versions": [
                "1.0.0"
            ],
            "import_time": "2026-06-18T05:42:04.739174079Z"
        },
        {
            "sha256": "61d6a8d969f423b926400caee1087849fe0475b8ca302176004bfd5574e50e3d",
            "source": "ghsa-malware",
            "modified_time": "2026-06-18T03:28:02Z",
            "id": "GHSA-q7qm-cfrq-fg6g",
            "ranges": [
                {
                    "type": "SEMVER",
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ]
                }
            ],
            "import_time": "2026-06-18T05:54:18.967983129Z"
        }
    ]
}
References
Credits

Affected packages

npm / type-check-816d

Package

Affected ranges

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

Affected versions

1.*
1.0.0

Database specific

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"
    }
]
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/type-check-816d/MAL-2026-6101.json"
indicators
{
    "evidence_files": [
        {
            "sha256": "b0efab258e08a1a49599666aa22c6838598c0d3be55157553e0f22bd6d15a6ec",
            "tlsh": "4ae068189c24393339c02aa80c629257a7308f1b21543d2c52bb283942abb3ab87b21d",
            "path": "package.json"
        },
        {
            "sha256": "7513e82a4ccd60d2943bd183da9088115ae6fa967f702cf82e1bd73dd0f596d4",
            "tlsh": "4672d87518fb152939a3e5aea36f64012526f1037202d9e47b8cb3409fcf52456e2bfe",
            "path": "run.js"
        }
    ]
}