MAL-2024-7750 Malicious code in discord-api-ts (npm)

Malicious package Published
Package
discord-api-ts
Registry
npm

What is MAL-2024-7750?

MAL-2024-7750 is a malicious package in discord-api-ts, published on 12 Jul 2024.

Official description

This package is considered malicious because it contains a heavily obfuscated postinstall.js script with multiple stages of payload execution, resulting in the delivery of QuasarRAT. This allows command and control by a malicious actor.

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-2024-7750?

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

Sources

Also known as GHSA-m537-j596-495x.

Is MAL-2024-7750 in your software?

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

Check your SBOMs for free