MAL-2026-3162
Dashboard / Malicious Package / MAL-2026-3162
MAL-2026-3162
Summary: Malicious code in apple-pki-cert-validator (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: postinstall. Checks for ~/.ssh/id_rsa; if present, exfiltrates the SSH private key and last 50 lines of bash history, base64-encoded, to https://franki.requestcatcher.com/apple_whale via curl. Source: amazon-inspector (bd5051ccd5f3320b046d595f846390a4f697f2ba1c11cbba710d5fd85e001659) The package apple-pki-cert-validator was found to contain malicious code. Source: ghsa-malware (34739dcdd2176f96736d21e786ffc4aa1ce702ae6e0dbba0e567a3c38abaf98e) 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.
References: https://github.com/advisories/GHSA-9rmm-mp3q-456f, https://safedep.io/npm-global-util-malicious-package-analysis
Affected packages
Package
Name: apple-pki-cert-validator
Purl: pkg:npm/apple-pki-cert-validator
Affected ranges
Type: SEMVER
Events:
