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.
-= Per source details. Do not edit below this line.=-
The package apple-pki-cert-validator was found to contain malicious code.
1.0.0Exploitability
AV:NAC:LPR:NUI:NScope
S:CImpact
C:HI:HA:H10.0/CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H