MAL-2026-10457

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/cktool-core/MAL-2026-10457.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-10457
Aliases
  • GHSA-qm37-v399-r9m5
Published
2026-07-13T17:44:38Z
Modified
2026-08-05T06:36:05Z
Summary
Malicious code in cktool-core (npm)
Details

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

Source: amazon-inspector (18ee2228fd4f97fcc261019bf662b6e3006a5aed7a6f3bc0ec4fa505a84aa037)

cktool-core is the unscoped public-registry form of the private-scoped @apple/cktool.core package. Installers whose resolver misroutes the scoped name to the public npm registry receive this package instead of Apple's internal library. On install, postinstall.js generates and persists a per-installer UUID under XDG_CACHE_HOME (or ~/.cache) and POSTs it, along with version and timestamp fields, to a hardcoded external endpoint at npx-monitor-76056.azurewebsites.net/api/pingback. The behavior fires unconditionally via the declared postinstall lifecycle hook, so any misresolution results in attacker-controlled JavaScript executing on the installer's machine and an install beacon leaving to a non-vendor destination. The package.json description self-labels this as a dependency-confusion PoC, but the mechanism and installer impact are identical to a real dependency-confusion attack against Apple's private namespace.

Source: ghsa-malware (cdbb75e8b781db493564b5b0bc750b43b94c74909ff0bf5c82271f657e7d2eb2)

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": [
        {
            "id": "IN-MAL-2026-010277",
            "import_time": "2026-07-13T18:10:12.903668434Z",
            "modified_time": "2026-07-13T17:44:47Z",
            "sha256": "18ee2228fd4f97fcc261019bf662b6e3006a5aed7a6f3bc0ec4fa505a84aa037",
            "source": "amazon-inspector",
            "versions": [
                "1.0.0"
            ]
        },
        {
            "id": "IN-MAL-2026-010278",
            "import_time": "2026-07-13T18:10:12.996906844Z",
            "modified_time": "2026-07-13T17:44:57Z",
            "sha256": "b6cc92287a275e3f237b40571cea09e40aa691c5ef64aa52064c25e6b868c188",
            "source": "amazon-inspector",
            "versions": [
                "1.0.2"
            ]
        },
        {
            "id": "IN-MAL-2026-010276",
            "import_time": "2026-07-13T18:10:12.841527384Z",
            "modified_time": "2026-07-13T17:44:38Z",
            "sha256": "ccee78fe976d424bfce31c9f7190b87246e5412f144821dbbc4bedc9a9cdcc49",
            "source": "amazon-inspector",
            "versions": [
                "1.0.1"
            ]
        },
        {
            "id": "GHSA-qm37-v399-r9m5",
            "import_time": "2026-07-23T07:45:08.890593763Z",
            "modified_time": "2026-07-23T01:18:19Z",
            "sha256": "cdbb75e8b781db493564b5b0bc750b43b94c74909ff0bf5c82271f657e7d2eb2",
            "source": "ghsa-malware",
            "versions": [
                "1.0.4",
                "1.0.3",
                "1.0.2",
                "1.0.1",
                "1.0.0"
            ]
        },
        {
            "id": "IN-MAL-2026-013227",
            "import_time": "2026-08-05T06:00:56.025377325Z",
            "modified_time": "2026-08-05T05:52:31Z",
            "sha256": "abbd06f364367903105c29c141c6d50bf268f5917d9345fa22b00994031313a3",
            "source": "amazon-inspector",
            "versions": [
                "1.0.3"
            ]
        },
        {
            "id": "IN-MAL-2026-013043",
            "import_time": "2026-08-05T06:00:34.681574605Z",
            "modified_time": "2026-08-05T05:25:49Z",
            "sha256": "c81d930d38ae9b8ba2a283363f006029e1c2cbad28a33d56df9a822c5926f41a",
            "source": "amazon-inspector",
            "versions": [
                "1.0.4"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / cktool-core

Package

Affected ranges

Affected versions

1.*
1.0.0
1.0.1
1.0.2
1.0.3
1.0.4

Database specific

cwes
[
    {
        "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",
        "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",
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code"
    }
]
indicators
{
    "evidence_files": [
        {
            "path": "package.json",
            "sha256": "7b3a8ad6f25277aafb30bb4032ca1a5b7681f8d6d7689888980eca44f3365f42",
            "tlsh": "92f0dc1084708e3325c506ca083a0909ba719e1b2180b90d2bd3a41cf7adaa300bf36e"
        },
        {
            "path": "postinstall.js",
            "sha256": "e5c1d6fda6fb7396cb34ae06f35055430f84fac506bf59eb76579c3a64666dda",
            "tlsh": "994124e61ee49d302ef282d5e5e988033317eba13253b5b476cc1b1a26de8400012bfe"
        }
    ],
    "package_integrity": [
        {
            "filename": "cktool-core-1.0.0.tgz",
            "hashes": {
                "sha1": "aa5368e021e002141121328b74d70963835c228e",
                "sha512_sri": "sha512-TvsOziwMt08hLGLAwIJoCjxyZKHqLjn6lQXjClXGzgVhDozQAylbf2/j+VfL7KoBtmIWZj8Mf6kubvVzYGGD6w=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/cktool-core/MAL-2026-10457.json"