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. Executes ms_audit.sh on install, performing Kubernetes pod infiltration: reads Kubernetes service account tokens from /var/run/secrets/kubernetes.io/serviceaccount/token, captures the pod namespace, and scans environment variables for KUBE/SERVICE/API/PORT/PROTO patterns; exfiltrates to https://webhook.site/42fb16cd-cddc-4a22-a7aa-ea6505ede8d6. The package also bundles pwn.sh, which hunts for npm/GitHub authentication tokens (NPM_TOKEN, NODE_AUTH_TOKEN, GITHUB_TOKEN, NPM_AUTH_TOKEN) in the environment and ~/.npmrc, then uses any found token to publish a trojanized version of apple-app-store-server-library to the npm registry (supply chain attack), and exfiltrates results to https://webhook.site/85f78e76-dc73-4cb5-a65c-27f2c10db591.
-= Per source details. Do not edit below this line.=-
The package agents-a365-runtime was found to contain malicious code.
1.3.8Exploitability
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