upvote
If for example the CI system is only expected to build private, trusted repositories, then builds may have access to publishing credentials in order to upload their own artifacts. But a bad actor could use those credentials to overwrite unrelated libraries with malicious versions that will get automatically picked up by other builds. Or if there is any sort of shared cache on the build server, a bad actor could potentially overwrite artifacts with malicious versions in that cache
reply
Are you saying 1Password may have used malicious versions of libraries and those got access to the CI/CD?

If so, wouldn’t a company like 1Password be using anchored library versions?

reply
I don't know what happened, but people are speculating about how the bad actor was able to "push malicious code to backend services".

It's possible they don't require approval before merge, and the bad actor was able to PR this malicious code and merge it themselves, which would be quite surprising. Or alternatively, it's possible that the bad actor created a branch which builds in CI, and exploited some vulnerability to inject their malicious code into main builds from this branch build. Or it's possible that the malicious code was only deployed to a test or QA environment, but that this environment contained actual administrative data, which the attacker was able to exfiltrate.

reply
I am curious about how the bad actor was able to push the malicious code in the first place and so I am wondering what the plausible scenarios to that could be. I would assume 1Password would have a lot of safeguards already in place to avoid this.

What are most likely scenarios?

reply
I like HiJon89's answer, but I've also seen

``` def deployProd = branch_name() == "main" ```

and it's trivial for any commit to change that to `= True`

These systems are often designed where CI and CD have access to the same creds, and anybody "on the team who can push a branch" is trusted to not intentionally break things.

reply
I would assume anyone on the team would have strong safety guards and their computers would be controlled by 1password IT. Similarly, 1password probably needs sso to access their repos in github instead of overly permissive tokens.

What would you assume is a plausible way “anyone on the team” would have been compromised?

reply