logoalt Hacker News

tptacek • last Wednesday at 5:34 PM • 63 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 • last Wednesday 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 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.

➕ show 13 replies
bfmalky • last Wednesday 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 5 replies
ceocoder • last Wednesday 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 5 replies
pdpi • last Wednesday 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
dgroshev • last Wednesday at 10:14 PM

In 1Password's case, everyone's getting owned when the attacker gets access to their update pipeline. At this point, I see "1Password will update when you restart the app" about 20% of the time I open 1Password.

The situation is really asymmetric: the attacker only needs to deliver a poisoned update once and it's game over. It doesn't matter for me [1] if the poison is quickly patched and the update is pushed out; I'm already fully owned. There's no realistic possibility to rotate 1k+ secrets before an LLM-driven attacker puts anything of value in there out of my reach.

Alternatively, 1Password needs to slow the hell down and make triple sure that every update is safe. Maybe release new version every few months or even once a year, like they did before their SaaS pivot.

[1]: Although the situation is really different for corporate customers, which are now the main focus of 1Password.

stanmancan • last Wednesday 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
gamerDude • yesterday at 4:10 PM

A product like 1 password does not have to have tons of features. It could solve the problem of password management in a straightforward way and stop there. Then focus all effort on maintaining security. Which, as you pointed out, may mean having few employees.

There are plenty of solutions to these problems if you don't jump on the bandwagons of needing to use AI, scale as big as possible, etc.

How you solve people's need to go big and jump on bandwagons might be the real problem.

➕ show 1 reply
coldtea • last Wednesday at 9:32 PM

>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.

1Password client unlocks them and shows them to the user. If the attacker can push code to the client, they can access any secret, including the unlocking password.

➕ show 1 reply
jwr • last Wednesday at 11:57 PM

> 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.

I'm not sure if this holds. Attackers being able to push code changes implies them being able to push client-side code changes as well. Which means my next 1Password update could download code that will extract my secrets after I unlock my vault and send them somewhere.

nologic98 • last Wednesday at 9:48 PM

Not sure what you meant by “outcompete”, but I would think rolling my own password manager would improve my security. (Perhaps not ergonomics or features I don’t use — but I have to open 1Password by hand and copy paste about 30% of the time anyway.). Among other reasons, a home grown encrypted store is not a known target.

➕ show 1 reply
roca • last Wednesday at 10:06 PM

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

Google and Mozilla, at least, still do this. And I think they're right to do so.

noname120 • last Wednesday 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
tclancy • yesterday at 2:56 PM

I’ve been thinking about this a lot recently and feel there’s a divide here that probably matches the divide between coders who actively and with thought are ok with AI and the ones completely opposed. I am not making a value judgement about either group. We treat PRs as though they are the natural order of things, but they’re just the proof we all settled on. What else could stand as proof of work being done correctly varies by task (front end tweak versus database migration, screenshots work for the former but not the latter) so it’s not particularly obvious what “it” should be. Is a code change which closes a known security hole but opens another worth being blindly deployed simply to buy time against an infinite number of attackers? It is weird to think of code changes as temporary p, as the work as temporal itself, but it always has been and now the question is what level you put the thought and care into.

antihero • last Wednesday 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.

➕ show 1 reply
rkagerer • yesterday at 8:49 AM

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 not? We did that for years before the advent of AI. Especially for something as security critical as this application, I'd prefer as small as possible a codebase with minimal features, done right.

jjcm • last Wednesday at 9:57 PM

> what is review?

I think that's the wrong question / wrong way to approach a fix.

I suspect we're going to move to a very different type of defense mechanism, which is proactive defense from agents. Always-on agents on servers that identify attack threats / odd behaviors in realtime. In a weird way, we're moving towards systems that are more akin to anime/video games, where agents track you down and prevent you from acting in real time.

I'm already trying similar things on some of my non-essential servers, and it's starting to convince me this might be the proper way forward.

meow_mix • last Wednesday at 11:45 PM

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

Why? For something as important as a password manager, I think hand review is still worth it

I'd pay more for one that was hand reviewed

stingraycharles • yesterday at 12:09 AM

For me what’s still a massive challenge, as a fully remote company, is in fact credential management for employees. They need access to systems, but - as you say - at some point one of their computers will get compromised.

We’re a small startup, but even then, this already happened once to us in the past (fortunately very low impact).

What’s the modern solution for this, without creating an insane amount of friction for employees? I feel like letting them install password managers in the first place is already a mistake, as this implies they would have direct access to credentials, but other than than “log into cloud based remote workspace which has almost no permissions” which you see in enterprise contractor environments, I don’t see a good solution.

➕ show 1 reply
grey-area • last Wednesday 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
eclipticplane • yesterday at 12:07 AM

> In 1Password's case, the absolute worst-case catastrophe is mitigated by the fact that customers retain custody of their unlocking secrets

Is that true of their business products?

➕ show 1 reply
m12k • yesterday at 6:17 AM

How about: An LLM reviewing every single PR, and preventing merging to main if it suspects malware or obfuscation. Can only be overruled by agreement between two reviewers other than the PR author (that last number can be raised, in order to require N compromised accounts at once)

ctkhn • last Wednesday 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.

cdavid • last Wednesday at 11:49 PM

Do you have an updated recommendation about managing password in 2026 for the typical "tech savy" person with a big part of their life online?

Until recently, I thought 1password w/ strong keyphrase + HW token and 2FA in 1password was the right tradeoff between convenience, security and recoverability. But today, I don't know.

➕ show 1 reply
Ozzie_osman • last Wednesday at 9:14 PM

It's an odd coincidence that Todoist also had a security incident caused by a compromised github credential...

https://www.todoist.com/help/todoist/get-started/security-in...

goosejuice • last Wednesday 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.

fidotron • last Wednesday 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).

olalonde • yesterday at 3:50 AM

Maybe I'm naive but it seems like a "security audit" agent in the CI pipeline could have caught the malicious code before deployment.

__MatrixMan__ • yesterday at 12:47 AM

Every time dependabot demands that I update a dependency I find myself asking why we think the new version is safer than the old one.

Sure, the old one has known bugs, but the new one may have unknown bugs.

I think we'll land on a solution where some moderator decides when it's time to roll out a version widely, and that moderator is totally independent of whoever wrote the code. Different companies. Checks and balances. We push new code through both gates in a hurry only when both parties agree that the risk is warranted.

➕ show 1 reply
jerf • last Wednesday 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.

➕ show 1 reply
CodeWriter23 • last Wednesday 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 2 replies
yawaramin • last Wednesday at 6:51 PM

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

CER10TY • last Wednesday 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).

SoftTalker • last Wednesday 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.

➕ show 1 reply
pamcake • last Wednesday 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.

techmunky • yesterday at 5:25 AM

I would argue that you can literally have a team of humans reviewing each line. We can either go back to the way things were (for industries where that's an option) or have the right amount of people to safely move at this new speed. Right now we're in a transition space where skeleton crews are expected to maintain impossible velocity while maintaining quality. It's not possible and things are burning left and right as a result.

You want to safely move 10x as fast? Cool, you need to hire more . There are no AI savings, it's a myth to get you to buy the stock.

cowlevel • yesterday at 4:17 PM

I am skeptical that anyone is threatened by their password manager not getting enough updates. My lightbulbs don't get frequently updated either. Or my front door.

➕ show 1 reply
zergrush • last Wednesday 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

lapcat • last Wednesday 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 • last Wednesday 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?

➕ show 2 replies
conrs • yesterday at 2:58 AM

Not sure I agree regarding massive PR rates. If you keep it to only patches and internal security it is quite manageable - it is just finding room for it in between all the bad product ideas that gets hard.

bcrosby95 • yesterday at 1:08 AM

Dunno, git commit hook that injects the code, modify global AGENTS.md, add agent hooks, blah blah blah.... developer signs off anyways cuz apparently no one's reading all that garbage.

jamesfinlayson • last Wednesday at 11:09 PM

A few years ago after one of the password managers had a breach a friend said to me that an online password manager is only as strong as its weakest programmer.

Now it's even worse than that.

tripleee • last Wednesday 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 2 replies
bigbuppo • last Wednesday at 11:42 PM

Well if SaaS is untenable don't do SaaS. Was that so hard?

ErrantX • last Wednesday 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.

tmpz22 • last Wednesday 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 3 replies
aeneas_ory • last Wednesday at 9:54 PM

> 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.

Oh it is absolutely possible and it is absolutely required except for regions of your business where you can accept risk. Whoever thinks code review is not required in critical systems is in AI-delusion and just hasn’t spent time or mental capacity to actually review their own AI code and simply trusts the process, which creates bad code ALL the time.

The research is VERY clear about this as well.

https://www.endorlabs.com/learn/opus-5-5-6x-cheaper-and-2x-f...

https://www.gitclear.com/the_ai_code_quality_maintainability...

https://arxiv.org/abs/2603.24755

https://2026.msrconf.org/details/msr-2026-mining-challenge/2...

https://arxiv.org/abs/2603.28592v3

bojangleslover • last Wednesday at 7:36 PM

Solution: have no employees (somewhat joking)

🔗 View 13 more replies