{"id":"MAL-2026-3157","summary":"Malicious code in apple-internal-auth-v3 (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.\n\nTrigger: postinstall. Conditionally targets hosts with 'apple' in hostname; exfiltrates environment variables, SSH keys, and AWS credentials to https://franki.requestcatcher.com/apple_hit_verified via curl.\n\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (f86b845d264e507c11b84c31639271547c1489df936481be4d8fffa4530a9267)\nThe package apple-internal-auth-v3 was found to contain malicious code.\n\n## Source: ghsa-malware (1fa956c2c44617665bc1c5c1b65f66e2e947ebae00049a519316e8289729dd41)\nAny 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.\n","aliases":["GHSA-r59g-3q6c-f5v6"],"modified":"2026-05-15T11:18:35.709880Z","published":"2026-04-29T08:00:00Z","database_specific":{"malicious-packages-origins":[{"source":"amazon-inspector","sha256":"f86b845d264e507c11b84c31639271547c1489df936481be4d8fffa4530a9267","modified_time":"2026-04-30T21:59:18Z","import_time":"2026-04-30T22:23:13.315706694Z","versions":["1.0.0"]},{"id":"GHSA-r59g-3q6c-f5v6","sha256":"1fa956c2c44617665bc1c5c1b65f66e2e947ebae00049a519316e8289729dd41","modified_time":"2026-05-15T10:40:55Z","import_time":"2026-05-15T11:03:58.97917003Z","source":"ghsa-malware","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}]}]},"references":[{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-r59g-3q6c-f5v6"}],"affected":[{"package":{"name":"apple-internal-auth-v3","ecosystem":"npm","purl":"pkg:npm/apple-internal-auth-v3"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.0.0"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/apple-internal-auth-v3/MAL-2026-3157.json","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"}]}}],"schema_version":"1.7.5","credits":[{"name":"Amazon Inspector","contact":["actran@amazon.com"],"type":"FINDER"},{"name":"SafeDep","contact":["https://safedep.io"],"type":"FINDER"}]}