Horizon Alert
Summary of the vulnerability and why it matters
A compromised software package was published that could have exposed sensitive credentials like API keys and tokens if installed. Version 0.1.20 is a clean republish. The main concern is confirming relevance and exposure.
- Malicious code harvested secrets during package installation.
- Confirms exposure and relevance to your development environment.
- Review development tools and rotate all credentials.
Attack Path
How an attacker could exploit the issue
An attacker could compromise the integrity of the `@beproduct/nestjs-auth` package by publishing malicious versions. Developers who then install these compromised versions inadvertently execute a post-install script designed to harvest sensitive credentials and tokens from their development environment.
- Entry Condition: Developer installs a malicious package version.
- Trigger Point: Package installation process runs `postinstall` script.
- Resulting Risk: Sensitive developer credentials may be exposed.
Live Threat
Current exploitation, exposure, and threat context
This vulnerability could affect secrets used during the software development and build process, specifically when installing a malicious version of the `@beproduct/nestjs-auth` package. When installed, the package attempts to harvest various tokens and credentials, such as npm publish tokens, GitHub tokens, AWS credentials, and HashiCorp Vault tokens, if they are present in the environment.
- Secrets in the installation environment.
- Malicious package installation on developer machines.
- Exposure of sensitive credentials and tokens.
Operational Fix
Recommended remediation, mitigation, and detection steps
The ownership for this incident likely falls to the Platform or DevOps teams responsible for the build and CI/CD pipelines where the malicious package was installed. The first practical step is to identify all environments where `@beproduct/nestjs-auth` versions `0.1.2` through `0.1.19` may have been installed, confirm the scope of potential credential exfiltration, and then coordinate a comprehensive remediation plan.
- Platform/DevOps teams own the issue.
- Verify all npm publish, GitHub, and AWS credentials.
- Rotate all exposed secrets and scan for compromises.