Preinstall to persistence: Inside the Red Hat npm Miasma credential-stealing campaign
EXECUTIVE SUMMARY
Red Hat npm Miasma Attack: Credential Theft in CI/CD Environments
Summary
A large-scale npm supply chain attack targeted over 90 versions of @redhat-cloud-services packages, compromising CI/CD environments and developer systems. The attack involved credential theft from GitHub, cloud platforms, and local machines, spreading through republishing trusted packages.
Key Points
- Over 90 versions of @redhat-cloud-services packages were compromised.
- The attack targeted CI/CD environments and developer systems.
- Malicious code was used to steal credentials from GitHub, cloud platforms, and local machines.
- The attack spread by republishing trusted packages, functioning like a worm.
- The campaign is known as the Red Hat npm Miasma credential-stealing campaign.
Analysis
This attack highlights the vulnerabilities in supply chain security, particularly in npm packages used widely in development environments. The ability of the malicious code to steal credentials and spread through trusted packages poses a significant threat to organizations relying on these packages for their development processes. The campaign's impact on CI/CD environments underscores the need for robust security measures in software development pipelines.
Conclusion
IT professionals should prioritize securing their CI/CD environments and closely monitor npm package dependencies. Implementing strict access controls and regularly auditing package sources can help mitigate the risks associated with such supply chain attacks.