No answer yet from what I’ve seen. Possibly Mess up from an unreviewed vibe coded mess. Or worse yet , intentional.

you are viewing a single comment's thread
view the rest of the comments
[–] 277 points 1 day ago* (52 children)

https://developers.google.com/ml-kit

ML Kit’s processing happens on-device. This makes it fast and unlocks real-time use cases like processing of camera input. It also works while offline and can be used for processing images and text that need to remain on the device.

https://developers.google.com/ml-kit/vision/doc-scanner

The entire document scanner flow operates on-device.

It's on-device scanning and OCR and stuff. I fail to see how this is a privacy concern? Your documents aren't leaving your device and they're not being uploaded to Google servers. This really seems like a false moral outrage imo. Y'all really wanna hate Proton because the CEO is a dickbag but c'mon man, this doesn't scream vibe coded, low quality, or insecure/non-private to me. I'm guessing this is just to allow you to upload documents to Proton using your phone as a scanner.

  • source
  • hideshow 52 child comments
  • [–] 108 points 1 day ago (2 children)

    Concerning

    https://www.privacyaffairs.com/proton-drive-google-ml-kit/

    ML Kit isn’t silent, though. Google’s data disclosure for ML Kit lists what its Android libraries collect for diagnostics and usage analytics:

    Device: maker, model, OS version and available ML hardware.

    App: package name and version.

    Identifiers: a device identifier for features delivered through Play services, like this scanner, plus per-installation identifiers.

    Usage: performance figures, settings, input and output sizes, events such as start-ups, model downloads and detections, and error codes.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 36 points 1 day ago* (1 child)

    Kudos for actually looking into this at all and not just having feelings on the subject.

    Having said that, that usage data is not sold or made available for non-development purposes: https://developers.google.com/ml-kit/android-data-disclosure

    Overview of data encryption and data sharing for ML Kit Android SDKs:

    Data encryption For the collected data listed on this page, ML Kit encrypts the data in transit using HTTPS.
    Data sharing For the collected data listed on this page, ML Kit does not transfer this data to third-parties.

    I also haven't proven this out, but I think the devs should be able to block that behavior in the apps manifest and prevent the telemetry uploader from running.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 36 points 1 day ago* (last edited 1 day ago)

    Having said that, that usage data is not sold or made available for non-development purposes:

    Not yet. The usual pattern of Google is to ship something good for free and once it has a sufficient spread, extract the shit out of it, Human Rights be damned.

  • source
  • parent
  • [–] -1 points 13 hours ago

    Please don't use Google gaslighting nonsense as reference.

    OS is a spyware, nothing is private! Try scanning old (old old) naked picture of yourself and see if on device "safety feature" will flag you to G..

    Signal is private but notifications are not.. Can't blame signal or proton when OS is not trusted

    Thee is "on device AI" that transmits everything to the cloud AI and people believe shared informations with AI are private somehow..

    Google privacy policy goes something like this:

    "When you use our services, you're trusting us with your information. We understand this is a big responsibility and work hard to protect your information and put you in control.."

    Like nobody trusts them (but they are telling you that you do), if they "understand big responsibility" then they would not collect PRIVATE data. They "work" really really "hard" not letting you protect your own data (you can't block, disable, or uninstall Google spyware, apps from play store are full of trackers and malware but F-Droid is not safe to install).. And you don't have any control but they are telling that you are in control... Gemini is opt in automatically, email scanning opt in automatically, can't even use the device until you agree that Google can "share" your data...

    Anyway, believe your gut instinct instead of trusting those psychopaths

  • source
  • parent
  • [–] 98 points 1 day ago* (4 children)

    Thank you for the additional context!

    Proton has issues as a company but it feels like 50% of the negative headlines or coverage they get ends up not being an accurate representation.

    The other 50% sucks tho, which is a bummer

  • source
  • parent
  • hideshow 4 child comments
  • [–] 21 points 1 day ago* (last edited 1 day ago) (3 children)

    It really is. A spotty record like this is simply not good enough for a company putting forth privacy and security as its chief features and product differentiators. You're either all in on those things or you're not.

  • source
  • parent
  • hideshow 3 child comments
  • [–] 5 points 1 day ago (2 children)

    I know the issues with the man at the top, but what spotty record in regards to the actual product are there?

  • source
  • parent
  • hideshow 2 child comments
  • [–] [S] 36 points 1 day ago (6 children)

    Is there a guarantee ML kit stays on device or we just taking Googles word for it ?

  • source
  • parent
  • hideshow 6 child comments
  • [–] 34 points 1 day ago (1 child)

    It would be pretty easy to demonstrate the opposite, a security researcher could do it in a jiffy, so it wouldn't make sense for Google to lie about it.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 18 points 1 day ago*

    Yes, but also no, never know what G will do next, once you include their libraries terms can change on a whim.

    ETA: Apparently terms already permit exfiltration of identifiers and 'performance figures, settings, input and output sizes, events such as start-ups, model downloads and detections, and error codes.' (thanks BrilliantBadger) So simple detection won't work.

  • source
  • parent
  • [–] 19 points 1 day ago (3 children)

    You can sniff packets heading out of the device if you're so invested. Proton should frankly be the ones testing and making that statement clear, but you can too.

  • source
  • parent
  • hideshow 3 child comments
  • [–] 4 points 1 day ago (2 children)

    MLK phones home, so it's more a matter of taking Google's word that they're not sending your data back.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 19 points 1 day ago (11 children)

    Illuminating, thanks for the info.

    But do consider. From a security standpoint, do you want your security software company running a bunch of local ML on your phone? Even if it were being run by a stand-up, security-first guy who didn't tell them to fuck all delays/testing and charge ahead, do you want them to put a bunch of data processing on your device? Do you want them all over your text and images, even locally, making an index that can be exfiltrated?

    Even if you completely remove the company's previous actions, I don't want that included in my VPN / Password / Document Storage app. I don't really even want that on my phone, even if it's provided by the Operating System.

    They use ML to read and summarize data, it's inches away from selling telemetry info about you.

  • source
  • parent
  • hideshow 11 child comments
  • [–] 2 points 1 day ago (3 children)

    So what should they do in your opinion? They remove the OCR scanning, and then people will say "I'm never moving from Google Docs to Proton, they don't even have basic features like OCR scanning".

    Genuine question, I do agree with the concerns, and I also see how this is a basic feature any sensible office suite should have.

  • source
  • parent
  • hideshow 3 child comments
  • [–] 2 points 3 hours ago (2 children)

    You act like OCR scanning without Google / AI doesn't exist.

    My opinion? Honestly?

    Dethrone Andy. Let him sit around in an 'advisory' role collecting fat money, and fascist-fetishizing his own personal media accounts.

    Put a CEO in who is willing to prioritize quality, security, and privacy. Stop all the PR troll campaigns that they're acshually fine... Sell themselves as the de-Google platform by using as little google/microsoft/Anthropic/GPT as possible.

    If they were the go-to for de-Google, they'd make WAY more money/marketshare than they stand to make from going all in on AI and firing half their staff.

    There was great OCR scanning before AI models. There are open models made by other efforts that aren't slobbering to get hold of our collective data. Once they tie themself to the Google Infrastructure, they're one change from a telemetry call home.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 1 point 2 hours ago (1 child)

    I agree with your comment, but let me focus on the OCR stuff.

    You act like OCR scanning without Google / AI doesn’t exist. There was great OCR scanning before AI models

    Of course, you are right. But the person I replied to didn't mention Google or AI at all. What they said, is: "do you want your security software company running a bunch of local ML on your phone?"

    And yes, all the OCR tools, Google or not, are using machine learning models. I'm not aware of another technique for OCR. So if the commenter doesn't want any machine learning to run in the app, then we can't have OCR, which is where my comment is coming from. Because I personally think that's ridiculous: there is nothing wrong with ML-based, local OCR in my opinion.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 1 point 2 hours ago

    didn’t mention Google or AI at all.

    They're running Google's ML Kit. That's where that came from.

    do you want your security software company running a bunch of local ML on your phone

    And I really, honestly would rather they don't. The original machine learning models were tiny and exacting. You want to detect if this is an 'e', we gather a 150dpi scan of the letter then we use statistical ML on it. Nearest neighbor searches, markov models, decision trees. All very dumb stuff. Nothing that had any chance of pulling telemetry on you or making calls home. Nothing you couldn't read and understand, of even reverse.

    You can say sorry pal, that's still ML and you want it, but that glazes over my actual point in this privacy forum. Running a toolkit maintained by a company that solely exists to exfiltrate as much of your data as possible and sell it to the highest bidder is absolutely at odds with both privacy and security.

    At the same time, I'm not so obtuse as to think that advanced machine learning can be kept away from things forever. But there are things that are less damning in terms of security and privacy.

    https://developers.google.com/ml-kit/terms

    "When you use ML Kit APIs, processing of the input data (e.g. images, video, text) fully happens on-device, and ML Kit does not send that data and the resultant outputs to Google servers."

    It's an interesting choice for them to specify Google servers. But for the sake of argument, let's say they mean they will not send it off-device.

    "The ML Kit APIs also send metrics about the performance and utilization of the APIs in your app to Google. Google uses this metrics data to measure performance, debug, maintain and improve the APIs, and detect misuse or abuse, as further described in our Privacy Policy."

    So the ML Kit can send data to Google Servers (and perhaps other servers?), and the only thing preventing them from sending it all to themselves is two lines of text in a privacy policy that they are allowed to change without notification or consent.

    Now, let's say they want to use that same Tesseract underlying code. Pytesseract doesn't have any facilities to call home. It is 100% private and that code will work on android, pc, ios, linux.

    There are half a dozen other great options without trying to use google.

  • source
  • parent
  • load more comments (5 replies)
  • [–] 11 points 1 day ago (14 children)

    It's not against proton.. But can you trust anything that is "on device" from G?

    Go offline, scan, encrypt, zip with password, purge the original file somehow then go online.. Even then you can't be sure there ia not some thumbnail, copy, screenshot being made and send to G

  • source
  • parent
  • hideshow 14 child comments
  • [–] 12 points 1 day ago (13 children)

    It's trivially easy to prove it works offline, and it would be also very easy to sniff traffic on device or MITM yourself to verify traffic isn't flowing to Google.

    As a closed-source package it's not possible to inspect the source but it would be very easy to catch them in the act, even with it as a black box.

  • source
  • parent
  • hideshow 13 child comments
  • [–] 4 points 1 day ago (11 children)

    MLK phones home, so it's more a matter of taking Google's word that they're not sending your data back.

  • source
  • parent
  • hideshow 11 child comments
  • [–] 1 point 1 day ago (10 children)

    Not really, you can tcpdump it or MITM yourself and read the data that's being sent.

    The app devs can also block the telemetry uploaded from running, which should be inspectacle from apps manifest.

  • source
  • parent
  • hideshow 10 child comments
  • [–] 1 point 1 day ago (9 children)

    Not an expert, but can you if it's encrypted?

    The app devs can also block the telemetry uploaded from running

    Yeah but are they? Especially considering the recent turns proton has taken.

  • source
  • parent
  • hideshow 9 child comments
  • [–] 3 points 1 day ago (8 children)

    Yeah you have to get the TLS cert so it's annoying but you can definitely decrypt HTTPS traffic via tcpdump. It might be extra annoying over Android but it's definitely possible somehow.

    Worst case you fake the cert and MITM your device and sniff as you pass it upstream. It's a lot of work but...

  • source
  • parent
  • hideshow 8 child comments
  • [–] 1 point 1 day ago (3 children)

    You arent getting google's private cert. You can decrypt data they send. Not the other way around. HTTPS encryption is asymmetric. You cannot decrypt data you yourself encrypt that easily. Their TLS cert provides the encryption, not decryption.

    That being said, blocking the HTTPS data collection endpoint is a lot more trivial to do.

  • source
  • parent
  • hideshow 3 child comments
  • [–] 2 points 1 day ago* (2 children)

    You don't need Google's private cert to decrypt HTTPS traffic, you just need the keys from the TLS handshake your client performs. As you are the client, you can sniff your own traffic. I've personally done this using wireshark. I've already provided one link from a trustworthy source, feel free to search for more if you choose.

    https://support.atlassian.com/atlassian-knowledge-base/kb/how-to-capture-http-traffic-using-wireshark-fiddler-or-tcpdump/

  • source
  • parent
  • hideshow 2 child comments
  • [–] 1 point 22 hours ago (1 child)

    Does this not state you need the actual clienr application to be involved in the process? Where are you getting the session key here? Its not a browser.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 1 point 22 hours ago

    You just need access to the client itself, which in this case if you cared enough to go this far, could be a sample app that you're just using to test MLKit's behavior. Custom app means you can do whatever you want as part of the TLS handshake, including dumping the negotiated keys to a logfile. Again, it would be non-trivial work, but it's absolutely possible. If anyone was sufficiently motivated, they could do it.

  • source
  • parent
  • [–] 1 point 1 day ago (3 children)

    I don't get it. The whole point of encryption is that only the recipient can decrypt it, regardless of what role you play in the middle. Unless you're reading it before the encryption happens.

    Not saying it's bullshit, just not jiving with my very basic understanding of this.

  • source
  • parent
  • hideshow 3 child comments
  • [–] 2 points 1 day ago* (last edited 1 day ago)

    For MITM attacks you need to own the network you're on and then you have the client connect to you with a cert the client will trust (by adding to the client's trusted cert bundles or or or) and then sniff as you proxy upstream to the real intended host.

    This is why people say not to trust random WiFi networks.

  • source
  • parent
  • [–] 2 points 1 day ago (1 child)

    For option 1, since you are the device, you just need to use the TLS certificate from the session, which you can capture otherwise. This is just the first source I could find: https://support.atlassian.com/atlassian-knowledge-base/kb/how-to-capture-http-traffic-using-wireshark-fiddler-or-tcpdump/

    Decrypt with SSLKEYLOGFILE

    Wireshark has the ability to use SSLKEYLOGFILE to decrypt https traffic. This file is a feature provided by the web browser. When a Web Browser is configured to create and use this file all of the encryption keys created for that session are logged. This allows Wireshark to decrypt the traffic. If you supply SSLKEYLOGFILE and a pcap file that were taken at the same time, wireshark will show you all of the web traffic.

  • source
  • parent
  • hideshow 1 child comment
  • load more comments (1 reply)
  • [–] 9 points 1 day ago (5 children)

    Any code from google is either a problem or a future problem. And before you say "what about x?" my answer will be "nope".

  • source
  • parent
  • hideshow 5 child comments
  • [–] 1 point 1 day ago* (2 children)

    Ok, then you don't use any Android apps? Because the majority of code running in any Android all is Google written.

    I don't disagree it's a problem, but if the stance is that any Google code is bad, then whether they have this or not, one shouldn't use the app, and the Android phone in the first place, anyway.

  • source
  • parent
  • hideshow 2 child comments
  • load more comments (2 replies)