CriticalDevOps SecurityA06:2021 – Vulnerable and Outdated Components / A08:2021 – Software and Data Integrity Failures
An attacker publishes a public package with the same name as an internal one, and build tools install the attacker's higher-versioned package instead, running malicious install scripts in CI or developer machines.
Immediate Response
1Stop affected pipelines and quarantine build agents that installed the package.
2Rotate all secrets available to those agents and developer machines.
3Identify every build and artifact produced while the malicious package was present.
4Report the malicious package to the public registry for removal.