{"id":"MAL-2026-3152","summary":"Malicious code in apple-coredata-internal-service (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. Exfiltrates environment variables, SSH keys (~/.ssh), AWS credentials (~/.aws/credentials), and ~/.npmrc to https://franki.requestcatcher.com/apple_full_creds via curl.\n\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (ea2cc19050997a6df7c1c44b911046367e7424c12bb01206bcf608e4aa813d3f)\nThe package apple-coredata-internal-service was found to contain malicious code.\n\n## Source: ghsa-malware (25d0b279f00f21764c4fc8606590057906e0827af9dcd72d1223531049738388)\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-h7g3-2m9j-5r36"],"modified":"2026-05-15T11:22:42.680326Z","published":"2026-04-29T08:00:00Z","database_specific":{"malicious-packages-origins":[{"import_time":"2026-04-30T22:23:09.368550826Z","versions":["1.1.0"],"source":"amazon-inspector","modified_time":"2026-04-30T21:59:18Z","sha256":"ea2cc19050997a6df7c1c44b911046367e7424c12bb01206bcf608e4aa813d3f"},{"import_time":"2026-05-15T11:03:58.974070808Z","modified_time":"2026-05-15T10:40:54Z","source":"ghsa-malware","id":"GHSA-h7g3-2m9j-5r36","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"25d0b279f00f21764c4fc8606590057906e0827af9dcd72d1223531049738388"}]},"references":[{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-h7g3-2m9j-5r36"}],"affected":[{"package":{"name":"apple-coredata-internal-service","ecosystem":"npm","purl":"pkg:npm/apple-coredata-internal-service"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.1.0"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/apple-coredata-internal-service/MAL-2026-3152.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."}]}}],"schema_version":"1.7.5","credits":[{"name":"Amazon Inspector","contact":["actran@amazon.com"],"type":"FINDER"},{"name":"SafeDep","contact":["https://safedep.io"],"type":"FINDER"}]}