MAL-2025-47197
Dashboard / Malicious Package / MAL-2025-47197
MAL-2025-47197
Summary: Malicious code in ngx-bootstrap (npm)
Details: The package ngx-bootstrap was found have been identified as potentially malicious due to the inclusion of a minified postinstall script. It is considered suspicious because: The script appears to attempt to steal access tokens for npm, GitHub, AWS, GCP, etc. There is no changelog or new tags in the GitHub repository associated with these releases. The packages were uploaded by a service account: https://www.npmjs.com/~ngxbs Source: ghsa-malware (d67a085f3dff5a57bd08eb486ebc3f90c9506a62ebcc30d189e7f24b1c424ec6) 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. Source: google-open-source-security (b39a50d6179dce1ee4e023cebcf88557e48d6060e10fd6c44db4b09abf2179bd) This package was compromised by the Shai-Hulud NPM worm. The malicious payload steals tokens and credentials and publishes them to GitHub before propogating itself to NPM packages the user owns.
References: https://github.com/advisories/GHSA-6m4g-vm7c-f8w6, https://github.com/github/advisory-database/issues/6140, https://www.wiz.io/blog/shai-hulud-npm-supply-chain-attack, https://semgrep.dev/blog/2025/security-advisory-npm-packages-using-secret-scanning-tools-to-steal-credentials/, https://www.aikido.dev/blog/s1ngularity-nx-attackers-strike-again, https://www.stepsecurity.io/blog/ctrl-tinycolor-and-40-npm-packages-compromised, https://socket.dev/blog/tinycolor-supply-chain-attack-affects-40-packages
Affected packages
Package
Name: ngx-bootstrap
Purl: pkg:npm/ngx-bootstrap
Affected ranges
Type: SEMVER
Events:
