upvote
It’s generally really vague. And maybe they don’t know and we’ll learn more, but: was an employees machine compromised? Were they phished? Was their GitHub instance or cloud instance unrestricted open on the Internet or restricted to internal networks?

They say “token”, singular, which would point to a personal access token.

Assuming we will learn more it’s too early to judge, but if we hear nothing else from 1Password this points to security practices which are entirely inadequate for a password manager company!

reply
> And maybe they don’t know

Very doubtful. These statements are crafted to omit specific information they feel the public is too apathetic or stupid to understand or care about. They are betting on people not caring they use weasel words to lie to you.

reply
There are often many ways to deploy code to production, the "main" branch being the common path. Poorly configured CI credentials that allow off-main deployment is often possible. My favorite is cross-branch build cache poisoning.

It could be as simple as no branch protection, but it could be vastly more complicated.

> gained access to our CI/CD system. ... CI/CD contains infrastructure related secrets in order for our product to work.

I'm guessing poorly secured CI pipelines/security tokens. Not a good look, but unlikely the front door was left wide open.

reply
Unfortunately there are a lot of footguns in CI/CD systems.
reply
How do you think this would have plausibly happened?
reply
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
As an ex-blackhat hacker from decades ago, I can 100% say that the most damage I ever did to various systems was when I was able to get into the CI pipelines of developers that had many other things downstream. The game has changed a lot since then (whitespace stuffing was a thing back then) but the overall concept is that a patient attacker with that access can operate extremely effectively.
reply
TIL that CI has a history much longer than I thought.
reply
The history of CI goes back quite a while. The modern tools and practices are much better and easier now, but the general concept has been around for quite a while. In general these kinds of systems where developers access some chain of systems that ultimately goes to production are gold. Often times you get access to the developer or at least their work system and from there you can modify most anything and it becomes a game of either bypassing or passing code review if it exists.
reply
It sounds like it could have been some insignificant marketing department repo dangling around the edges of the company - its only got access to mailing list info and these sorts of things tend to escape normal engineering rigor.

(And this is an example of why they shouldn't)

reply
I'm sure main was protected, but perhaps malicious code was snuck into an otherwise benign pr that got merged due to a lacking review process? Or they compromised an account with the perms to toggle branch protection for main. Not good either way
reply
Yeah, you could push a "PR feedback" commit to an existing PR that was in the final stages of PR discussion, and odds are nobody would notice.
reply
This was my question as well. GitHub for organizations makes it trivial to configure PR rules across the enterprise. I am a little surprised that a company as mature as 1password did not have this configured.
reply
Never underestimate anyone's incompetence.
reply
deleted
reply
a single user hsould not have been able to get code pushed onto the main branch, ideally. Unless they selected a reviewer, crossed their fingers, and hoped for a 'LGTM' that let it in.
reply
agree i'd like to know how this happened. i would think you'd new a review of code before you could merge stuff to the main branch

PR comes in from someone on your team, people don't actually read the PR and give it a thumbs up?

reply