MAL-2026-3158

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/apple-internal-pki-trust/MAL-2026-3158.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-3158
Aliases
  • GHSA-mc4h-h4q5-8hw9
Published
2026-04-29T08:00:00Z
Modified
2026-05-15T11:19:25.516381Z
Summary
Malicious code in apple-internal-pki-trust (npm)
Details

Malicious npm package published by threat actor "raya4321" as part of a coordinated typosquatting campaign impersonating Apple internal infrastructure services (authentication, PKI, telemetry, CloudKit, and cloud infrastructure). All packages in this campaign execute credential-theft payloads during npm installation via preinstall or postinstall lifecycle hooks.

Trigger: preinstall. Exfiltrates Azure access tokens (~/.azure/accessTokens.json), git credentials (~/.git-credentials), and .env files from the home directory, base64-encoded, to https://franki.requestcatcher.com/apple_pre via curl.


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

Source: amazon-inspector (50fe6a637643643b8f442834e218443bbcaf18dcaefe0f0b5ae8d66cbe7a6e84)

The package apple-internal-pki-trust was found to contain malicious code.

Source: ghsa-malware (7ff0ba62a485e4357c65d36f2f577a2df53ae7310a2cf5712011cfdb83a9c054)

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": [
        {
            "import_time": "2026-04-30T22:23:14.201405791Z",
            "versions": [
                "2.5.0"
            ],
            "sha256": "50fe6a637643643b8f442834e218443bbcaf18dcaefe0f0b5ae8d66cbe7a6e84",
            "modified_time": "2026-04-30T21:59:18Z",
            "source": "amazon-inspector"
        },
        {
            "import_time": "2026-05-15T11:03:58.975919827Z",
            "sha256": "7ff0ba62a485e4357c65d36f2f577a2df53ae7310a2cf5712011cfdb83a9c054",
            "source": "ghsa-malware",
            "id": "GHSA-mc4h-h4q5-8hw9",
            "modified_time": "2026-05-15T10:40:55Z",
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ],
                    "type": "SEMVER"
                }
            ]
        }
    ]
}
References
Credits

Affected packages

npm / apple-internal-pki-trust

Package

Name
apple-internal-pki-trust
View open source insights on deps.dev
Purl
pkg:npm/apple-internal-pki-trust

Affected ranges

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

Affected versions

2.*
2.5.0

Database specific

source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/apple-internal-pki-trust/MAL-2026-3158.json"
cwes
[
    {
        "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."
    }
]