213 points · by amadeuspagel · 3y ago · 125 comments
Previously you’d need an expensive third party product like Virtru, so it’s great news for users that this is just a bundled feature now.
“Security theater” is probably fair, as is much of the compliance regime. However this probably does make it harder for a back-office admin to accidentally/absentmindedly save files with PII to their machine in breach of policy, as the UI makes it clear the files/content are Top Secret.
The client side encryption/decryption process is described at https://developers.google.com/workspace/cse/guides/overview
If I got it right, Google generates a key and sends it to the external service that stores the keys of the user. That service uses a Google API with probably Google's and the user keys [1] to encrypt the message (and this is quite disturbing, imagine if every company would require key management services to use its own API - Office365, Apple, second tier mail providers, etc.) and finally Google stores the encrypted message. Similar procedure to decrypt.
At a first glance Google is not able to see the message, except that they provide the browser to most people and the OS too (Chromebooks and especially Android.) However we're back to monitoring the network packets for suspicious traffic to Google.
What I'm more concerned about is regulatory capture through compliance. If E2E messages become the new normal either clients like Thunderbird (desktop) or K9 (mobile) implement an interoperable E2E system or more sooner than later it will be impossible to use them to mail customers and maybe friends too. And uncountable IMAP / POP3 / SMTP libraries for a lot of different languages: they eventually have to display the message and encrypt it before sending it.
Of course I'm all in for encrypted email but let's hope everybody can jump on it no matter the mail client they use. I'd hate that the only choices left will be GMail, Apple and Office365 (if they'll be able to talk to each other.)
[1] https://developers.google.com/workspace/cse/guides/encrypt-a...
I think you are fundamentally misunderstanding what these regulations are. Regs get defined, then someone makes sure that the boxes are checked.
They are not the same thing as (often being orthogonal to) having a strong security posture, that being far too dynamic and technical to encode in regulations.
See https://latacora.micro.blog/2020/03/12/the-soc-starting.html for discussion of SOC2, which should give you an idea of what we are talking about.
First, that would require the regulating body to actually now what security is and how it works in the real world, in real companies.
Then, it would require having an open mind regarding the risks and forget about 30 years of long gone history. If you look at ISO27002 (derived from the British BS-7799 30 years ago) you will note that it addresses very general ideas without a link to the reality of the field.
If we had 5 rules that address real-world issues we would be light years ahead. Something like "a patch from teh vendor must be applied within 24 hours" (yes, one in a blue moon it will break things and slow down some fantasy "quarter end"), "MFA on all accounts used by humans" and 2-3 more like these.
Just ask the people doing actual security 9-12 and then "compliance" 13-17, two totally disconnected activities.
I don't understand the hype around end-to-end encrypted software where you have to trust the organization behind the software to not steal your data through their complete control of the endpoints.
However, you have reduced the attack surface to the organisation distributing a signed and compromised version of their software to your phone. This is much less likely than any admin in the company looking at your stuff, or anyone who can hack into the company.
Don't let the perfect be the enemy of the good.
After thinking about it for a bit, I find that argument rather convincing in the case of Signal: very few people would be in a position to add code to the distributed binary without it ending up in the git repo. So with E2EE, we still have to trust the organisation overall, but we don't have to trust any individuals with access to the servers, and the open-source nature lets us avoid trusting any of the individual app developers other than the person/group responsible for producing the final binaries.
It's slightly less convincing in the case of WhatsApp or this GMail thing though. You don't have to avoid a back-door ending up in the git repo, you just have to make it past code review. So in that case, with E2EE, we still have to trust the organisation overall, we have to trust the individuals with access to the app source-code, but it lets us avoid trusting any individuals with access to the back-end.
Still a win I suppose. Just a pretty far cry from how I usually see it advertised, which is more like "thanks to E2EE you don't even have to trust them".
Is there a reason Google and Apple couldn't change their deploy flow to pull from a git repository? As in:
1. Developer pushes to a specific remote (or pushes a specific tag or branch)
2. Apple/Google run the build on their systems, sign it, etc
3. If passed, the app deploys and the published app is annotated with the specific git hash (which can also be displayed in the app store)
For open source, it gives the public verification ability.
For closed source, it is still useful for internal verification. I work adjacent to some mobile teams and most still do builds on a developer's desktop and upload that. I am working towards getting CI for everything, partly to reduce dependence on any one developer's system (eg: I hear things like "Only Tom knows how to do builds to give to Apple, but he's out today") and partly for security. As much as I believe we don't have developers with malicious intent, there's still no way to know that a build uploaded from a developer's desktop really is what's in source control.
Because doing so isn't something they'd realistically care about. They'd still have to maintain the existing flow for closed-source apps (the vast majority of them) that don't want to give outside parties access to their source code, so this would just mean more work for them.
Another big downside is that app authors would not be signing the final product with their own keys. That would have to be done by Google/Apple, so authors would lose a bit of control over future distribution of their app.
[0]: https://developer.android.com/guide/app-bundle/code-transpar...
Take the case of WhatsApp. Without E2EE, you have to trust the platform (Apple) and the people behind the app (Facebook). With E2EE, you still have to trust Apple, but you also still have to trust Facebook, since Facebook controls the endpoint and you have no insight into what it does or if there are any back doors. The same applies to Signal obtained from the App Store or (AFAIK) Google Play. And Apple's E2EE stuff is obviously not adding anything, since we're already trusting them as the OS vendor.
Something like Signal on the desktop is different though. There, we still have to trust the OS vendor, but we and anyone else can inspect the source code, verify that it does what it's supposed to and doesn't have any back-doors, compile it for ourselves, and then we can exchange messages without trusting Signal. In the case of Signal on the desktop, E2EE lets us distrust the Signal organisation, which has value even though we still need to trust our OS and our hardware.
You could argue that we should trust the Signal organisation. That's not unreasonable, but that still makes E2EE no better than normal client-server encryption a la TLS and the promise of a solid no-logging policy.
(We could also discuss the feasibility of verifying that there are no back-doors purely from reading source code and how well a back-door could be hidden. But that's sort of a tangent.)
It is doable.
Telegram has a procedure you can run to verify the binaries, also from the Apple App Store.
Yes, it requires a jailbroken phone, but it is doable.
Signal has reproducible builds
https://github.com/signalapp/Signal-Android/blob/main/reprod...
While I agree with the concern here, is there an alternative mass market model in which software can be distributed in a way that ensures no one but the user controls the device? I mean mass market, so the barrier is that my tech illiterate grandma has to be able to install this with the help of my tech illiterate parents.
Also, wasn't Zoom sued for bastardizing the concept of "end-to-end encryption" to mislead people?
https://www.businessinsider.com/zoom-ftc-lawsuit-end-to-end-...
They're either stored in your choice of third party service or you can host it yourself if you really want.
I don't see if the private half of the key is shared with the web app to decrypt the cypher text, or if the cypher text is sent to the key service which responds with plain text.
> I also wouldn't be surprised if the shit only works in Chrome.
I don't see any evidence of this in the documentation. I can't think what API it would require beyond the widely adopted fetch API.
> Also, wasn't Zoom sued for bastardizing the concept of "end-to-end encryption" to mislead people?
I don't see any reason to think this is much different from any other end-to-end system. All the mobile end-to-end apps require you trust the code they run on your device. As described this requires you to trust the JavaScript they run on your browser.
> I don't see if the private half of the key is shared with the web app to decrypt the cypher text, or if the cypher text is sent to the key service which responds with plain text.
I checked out the ref for that encryption API. Seems like the service stores the key, and the API exposes encrypt/decrypt calls:
https://developers.google.com/workspace/cse/reference
So yeah, go trust that third-party provider, or if you have the technical skill, set up your own. Since most people would do the former, this is basically back to square one, and to call this "end-to-end" is misleading.
The idea of storing your keys on an Internet-facing server baffles me too. It will 100% get hacked sooner or later.
Most thick client update mechanisms make this more difficult (but certainly not impossible) thus greatly increasing the risks of embedded malware being detected.
Signal, for example, is reproducibly built, so you can diff the source of each new update and then verify that you get the same binary. This gives you very good assurance that your audit of those diffs is valid to the binary on your phone.
I doubt that someone who has invested the time in developing code-auditing skills also values their own time so little that they'd audit and build their chat client. And if they're willing to farm auditing out to someone else, or to vouch to other users of the app, then they've lost the plot.
Not saying such a person couldn't exist. But the intersection in the Venn diagram seems small.
Is the main news that S/MIME encryption can now happen in the browser instead of Google’s backend?
I thought Google was targeting using email content... Also this will impact their ability to use AI for things like spam filtering and smart labeling
"You upload a user’s S/MIME certificate and wrapped private key using the Gmail API, with the service account private key file. For each user"
If this is end to end encryption why are you uploading a private key to Google? Am I confused?
> When you open Gmail, you'll see ads that were selected to show you the most useful and relevant ads. The process of selecting and showing personalized ads in Gmail is fully automated. These ads are shown to you based on your online activity while you're signed into Google. We will not scan or read your Gmail messages to show you ads.
I don’t believe a random external sender will be able to send an E2E encrypted email. Or at least not in a way that would be readable by the recipient.
"What's encrypted in Gmail:
Email body and attachments, including inline images
Not encrypted in Gmail:
The header of the email, including subject, timestamps, and recipients lists
"Subjects is a concession to search and filters. Nobody is trying to shove PHI into a subject line... doesn't seem like a big deal imo.
https://signal.org/blog/sealed-sender/
I guess another example of why it's hard to retrofit email for security and privacy.
lol
https://support.google.com/a/answer/13069736?visit_id=638068...
This does not affect non-corporate Gmail users...
All that to say, this is something at least some people have thought would be useful for some time, and it's nice to see some people getting access to that functionality.
(Now work for Google, not on anything remotely related to Gmail, remarks are my own, etc etc.)
But to the best of my knowledge, he graduated without suggesting we all start using his extension to take over the world, and I've not found any suggestions it was published.
What I like about Google’s announcement is that even though this is only enabled now for Workspaces, if Google opens this to all GMail users then a large percentage of e-mail will be gmail to gmail encrypted.
This is what disappointed me about ProtonMail: they didn’t have a critical mass of users. I only had one other non-work friend who used ProtonMail.
Those things are client-side encryption. End to end implies more than the one end. Which is a good thing. Who would want to have to compare a key fingerprint just so they could securely store files in the cloud? With client side encryption the identity management comes for free...
That’s a pretty hard sell for power users…
Too little, too late, we will never regain what was lost.
I guess since gmail is JS on the client side, some smart programmer can unpack the code and show that the crypto is sound.
But until then it's only claims
From evil compilers to source/binary modification in flight to supply chain attacks, it is probably impossible to prove secure operation of open (or closed) source.
All we have are mitigations and risk reduction. If the bar is provably perfect security, nothing can meet it.
Seriously. It is not possible to prove 100% security. Between human, electrical, hardware, firmware, and software vulnerabilities, there is always a gap.
So if you care about that you can't trust any webmail. Instead use Thunderbird/mutt/whatever and GPG/PGP, like you could for the last 20+ years.
i'm starting to wonder if this is actually just a coincidence...
i couldn't find this for years either