logoalt Hacker News

tptacek • today at 5:34 PM • 31 replies • view on HN

This is the single most important attack vector for SAAS companies. It has been for a long time --- this is the standard fact pattern for every SAAS breach --- but much more so today. As the number of employees grow, the likelihood that one of their laptops will get compromised approaches 1. When that happens, the attacker will be able to push code to Github, and if that code gets deployed, you're owned.

In 1Password's case, the absolute worst-case catastrophe is mitigated by the fact that customers retain custody of their unlocking secrets; 1Password (at least in the normal product flows) simply doesn't hold it. But an attack like this implicates every catastrophe short of that worst case.

Change velocity in 2026 is unreal and that trend is going to continue. You could not outcompete 1Password by building a handcrafted artisanal password manager backend (witness all the commercially successful password managers that don't even share 1Password's customer secret custody model). You have to accept insane PR rates as a premise to do modern SAAS security.

So the question then becomes: what is review? It's not what r/programming assumes it is; you almost certainly can't literally have a team of people line-by-line reviewing PRs anymore, at least not across the whole codebase (you can and should probably do a threat model for your codebase and institute stuff like that on a case-by-case basis, though). What you can realistically expect to review for is change provenance; a human developer signoff of some sort. But it's tricky! The attacker owns your email during the window of attack.

I think this is a fun problem to noodle on, and someone could probably come up with something here that would make a real difference.


Replies

mikeocool • today at 6:41 PM

> You have to accept insane PR rates as a premise to do modern SAAS security.

You kinda have to wonder if this is necessary or true. I can’t say I’ve seen the rate of significant product improvements from the SaaS providers increase this year (for 1Password in particular, I can’t think of one thing that had changed this year in the product).

However there has undoubtedly been an uptick in major outages and security incidents that have accompanied the increased rate of change.

bfmalky • today at 7:29 PM

> you almost certainly can't literally have a team of people line-by-line reviewing PRs anymore

You absolutely can, especially with a mature product like 1password. A security focused company like 1password should have plenty of human controlled approval gates in their process.

➕ show 2 replies
pdpi • today at 7:29 PM

In 1Password's case, the true catastrophe scenario is if the frontend gets compromised, at which point attackers can exfiltrate master keys as users type them in.

➕ show 2 replies
ceocoder • today at 5:59 PM

Agreed 100% and this[0] is the discussion I started back in 2020 with response from 1Password’s cofounders.

Folks if you are reading this thread - which I’m sure you are - do take this as a clear sign why local vaults are necessary.

[0] https://news.ycombinator.com/item?id=24054864

➕ show 1 reply
stanmancan • today at 5:41 PM

A few months ago I updated my workflow so my git signing keys are in 1Password. All commits and git pushes require my finger print. It's a bit annoying, but at least I can feel a bit more confident that I was present for the commits and pushes.

➕ show 2 replies
antihero • today at 6:29 PM

The vector for 1Password would be pushing compromised versions of the app, which ask for and then pass off the secrets.

noname120 • today at 6:00 PM

What if an attacker pushes a malicious update to 1Password that sends all the vault keys to a server under his control? All 1Password apps I know of auto-update

➕ show 1 reply
ctkhn • today at 6:59 PM

Your point about velocity of changes needed for security of internet-facing apps nowadays. I used to give myself access over a remote URL to my self hosted password manager, but this year I took it offline in the sense that it (just like all my other self hosted services) is only accessible to devices my local home network. I am not updating passwords so frequently that I can't just sync them when I am home in the evening.

fidotron • today at 6:40 PM

Are you saying you want some sort of reviewbot that is specialized in identifying when it thinks a developer has been compromised?

There are so many ways you could go after such an idea, especially if you had the developer's known (good) commit history. (Admittedly less so now that Claude makes everything so similar).

goosejuice • today at 6:14 PM

> When that happens, the attacker will be able to push code to Github, and if that code gets deployed, you're owned

I'm a bit naive, but isn't this relatively straightforward albeit annoying? Separation of duties and requirement of hardware 2FA on push, merge, deploy. Add additional reviewers, human or LLM, as deemed necessary.

grey-area • today at 5:39 PM

What I'm worried about here is that it sounds like they had access to all the source code, so they'll be able to far more easily find vulnerabilities across the 1password stack now.

They also have access to things like reset tokens that were set in the db, though 1pass have since changed criteria for those to invalidate old ones. Sounds like they had full access to pretty much all internal systems from the update.

I was just persuaded to set up a 1password online account a few days ago after years of resistance to their all-online model, and now received this email. Sigh.

➕ show 2 replies
yawaramin • today at 6:51 PM

How does a human developer sign off without reviewing the PR properly?

CodeWriter23 • today at 6:31 PM

Seems to me an LLM with adequate context and a database of known security risks and best practices can automate review cycles, perform them more thoroughly than human reviewers and call out areas requiring secondary review and/or summarizing the net change of any given PR.

➕ show 1 reply
jerf • today at 6:39 PM

This may seem an odd diversion but I am reminded of the Haskell pattern of "functional core, imperative wrapper" that a lot of that code tends to turn into. If we did a better job thinking in terms of contracts and guarantees, we could build cores that were secure, auditable by AIs and humans because they are smaller, and then often be somewhat less concerned by the much larger pile of code that uses that core, as long as the primitives offered by that core did not admit compromise.

However, despite its other benefits, AI code has been a huge step back on almost every dimension we need for that plan to work. It is no longer the case that I've never seen an AI create a strong type, but I still don't see it thinking in terms of what values of this type guarantee very often, or any related concept. It still erases any such guarantees I add more often than it builds on them, even when I explicitly document the guarantees in the code docs (and then when it erases them, it leaves the comments about the guarantee behind, naturally). It is hard to fence an AI off to tell it not to modify this bit of code... not necessarily impossible but the models seem to presume that if they can see it, they can change it, and they basically YOLO and hope the test suite will catch anything that breaks as a result of their particular change written from the hyper-local perspective of the task at hand. They still want to write reams of scripting code where, for instance, every access to the database is individually responsible for maintaining any security guarantees related to the data in question... and then they often refuse to load the skills that might explain the guarantees that are necessary, and then the skills fall too far back in the context window to be taking effect. If I force them to be secure by building right into some function call a declaration of what permissions must be held to execute it, they rarely get the permissions completely correct and really love to just bypass the check, sometimes in distressingly clever ways. Even when asked to be sure to write tests that assert that permissions fail correctly.

It's a very fast programmer. It can often do surprising specific tasks. But in a lot of ways, it's still not very good, when you really get right down to it.

Without an exceeding strong hand the AIs I've seen build code that fights this on almost every level. If someone has some magic sauce to address my complaints and prove me wrong I am all ears... I'm getting kind of tired of the constant fights with my AIs over these issues. I'm trying various tweaks out but it takes time to try them out fairly.

I used to think Star Trek was silly in the way it portrayed every computer system as hackable in about 15 seconds with the moral equivalent of a paperclip, but I begin to see a world in which that makes sense to me.

SoftTalker • today at 7:06 PM

So to summarize, you should assume compromised dev systems, and the necessity of accepting changes at a rate that is too fast to review. In light of those conditions, keep your services secure.

zergrush • today at 8:07 PM

> As the number of employees grow, the likelihood that one of their laptops will get compromised approaches 1.

How do you explain Google and other companies then ? They are doing something right

CER10TY • today at 7:25 PM

> When that happens, the attacker will be able to push code to Github, and if that code gets deployed, you're owned.

I think this is one of those areas where we'll have to rethink local security. It's still pretty common I think to have a bunch of unencrypted credentials to GitHub, AWS etc flying about in some ~/.config directory. Pretty sure most CLIs support encrypted credentials by now, but depending on the OS there's just too much friction to set this up when all you're expected to do is push more and more code (going back to the change velocity argument). Ultimately, that means any laptop is ripe for picking with "easy" attack vectors like compromised packages (or just plain old phishing).

pamcake • today at 5:56 PM

> You have to accept insane PR rates as a premise to do modern SAAS security.

> So the question then becomes: what is review? It's not what r/programming assumes it is; you almost certainly can't literally have a team of people line-by-line reviewing PRs anymore, at least not across the whole codebase

Pretty myopic views. Just because you think you can't doesn't nobody can. I say that it is both possible, reasonable, and sometimes necessary. In particular for a secrets manager.

Claiming "it's impossible for any tech business to review their own code" as some sort of truth is just disinfo.

lapcat • today at 5:53 PM

> Change velocity in 2026 is unreal and that trend is going to continue.

You speak as if this were a force of nature rather than a choice.

Is there a good reason for 1Password to move fast and break things, as it were? Shouldn't 1Password of all companies insist on line-by-line reviews?

➕ show 2 replies
tempfile • today at 7:24 PM

> You have to accept insane PR rates as a premise to do modern SAAS security. > what is review? > you almost certainly can't literally have a team of people line-by-line reviewing PRs anymore

For a password manager? A fucking password manager? Apart from bumping their dependencies, what do they even need to work on?

What are we doing? What's going on?

bojangleslover • today at 7:36 PM

Solution: have no employees (somewhat joking)

ErrantX • today at 6:55 PM

I do think AI is going to squeeze the Enterprise SAAS commercial model; there are a bunch of companies who rely on scale and compliance standards like SOC2 to argue they can't offer unique terms, sensible liability clauses (because SAAS is cheap bro) or audit rights.

The shock of some vendors over the idea folks want to use SOC as a starting point is mind-blowing.

As we see more of these breaches I believe enterprises will wake up and exert commercial pressure on SAAS folks.

tripleee • today at 6:47 PM

> you almost certainly can't literally have a team of people line-by-line reviewing PRs anymore, at least not across the whole codebase

..why?

This "you must move as fast as clankerly possible or you can't compete" is just not true. We didn't copy-paste code around and skip reviews in the past because we knew the costs. What's with this brainwashing? Is it anxiety-driven?

Apple built their entire strategy around moving more intentionally and doing things better.

> You have to accept insane PR rates as a premise to do modern SAAS security.

Not reviewing code in-depth just opens you up to more security issues, not less.

➕ show 1 reply
gib444 • today at 5:38 PM

What password manager do you use?

➕ show 1 reply
rsoto2 • today at 7:36 PM

"you almost certainly can't literally have a team of people line-by-line reviewing PRs anymore"

Then you can't afford to be in business. Good luck to your greedy executives and the greedy shareholders.

EDIT: and good luck with the burnout, as long as developers are willing to bite off more than they can chew employers will continue underfunding teams.

tmpz22 • today at 5:58 PM

Historically you HAVE been able to expect a lawyer to read line by line a contract.

Especially since SWEs are paid more than lawyers, why cant a software engineer read line by line?

I fundamentally reject the premise that a) every product needs millions of lines of constantly changing code and b) that a 200k SWE is just too good to read line by line as a competent lawyer often must.

➕ show 2 replies
150g2 • today at 7:31 PM

[dead]

150g2 • today at 7:30 PM

[dead]