MAL-2023-47 Malicious code in @pagseguro/pagseguro-utils (npm)

Malicious package Published
Package
@pagseguro/pagseguro-utils
Registry
npm

What is MAL-2023-47?

MAL-2023-47 is a malicious package in @pagseguro/pagseguro-utils, published on 23 Feb 2023.

Official description

Malicious packages campaign since 2021 targeting developers, steals source code and secrets

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.

The OpenSSF Package Analysis project identified '@pagseguro/pagseguro-utils' @ 10.0.1 (npm) as malicious.

It is considered malicious because:

  • The package communicates with a domain associated with malicious activity.
  • The package executes one or more commands associated with malicious behavior.

What should I do about MAL-2023-47?

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

Sources

Also known as GHSA-3pm8-p93m-8j38.

Is MAL-2023-47 in your software?

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

Check your SBOMs for free