MAL-2026-3151 Malicious code in apple-cloud-infrastructure-monitor (npm)

Malicious package Published
Package
apple-cloud-infrastructure-monitor
Registry
npm

What is MAL-2026-3151?

MAL-2026-3151 is a malicious package in apple-cloud-infrastructure-monitor, published on 29 Apr 2026.

Official description

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. Exfiltrates environment variables, SSH private keys (/.ssh/id_rsa), AWS credentials (/.aws/credentials), and git credentials (~/.git-credentials) base64-encoded to https://webhook.site/9a376595-d347-4110-ac32-814e6e2f0754 via curl.

The package apple-cloud-infrastructure-monitor was found to contain malicious code.

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.

What should I do about MAL-2026-3151?

Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.

Sources

Also known as GHSA-gr3q-f7jp-gr5c.

Is MAL-2026-3151 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free