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

  • assaultpotato@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    300
    arrow-down
    15
    ·
    3 days ago

    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.

    • BrilliantBadger@piefed.ca
      link
      fedilink
      English
      arrow-up
      116
      arrow-down
      1
      ·
      3 days ago

      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.

      • assaultpotato@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        42
        arrow-down
        6
        ·
        3 days ago

        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.

        • MonkderVierte@lemmy.zip
          link
          fedilink
          English
          arrow-up
          42
          arrow-down
          1
          ·
          edit-2
          3 days 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.

    • Cris_Citrus (he/him <3)@piefed.zip
      link
      fedilink
      English
      arrow-up
      101
      arrow-down
      3
      ·
      3 days ago

      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

      • badgermurphy@lemmy.world
        link
        fedilink
        English
        arrow-up
        23
        arrow-down
        1
        ·
        edit-2
        3 days ago

        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.

        • pauljhenry@lemmy.ml
          link
          fedilink
          English
          arrow-up
          6
          ·
          3 days ago

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

          • badgermurphy@lemmy.world
            link
            fedilink
            English
            arrow-up
            4
            arrow-down
            3
            ·
            3 days ago

            My personal concerns include their longstanding neglect (years) of missing features, lack of Linux support on some of their offerings, concerning ToS changes, a stated philosophy of expediency over security and other goals, and appalling CEO conduct.

    • 64bithero@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      39
      arrow-down
      2
      ·
      3 days ago

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

      • EdyBolos@lemmy.world
        link
        fedilink
        English
        arrow-up
        39
        arrow-down
        4
        ·
        3 days ago

        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.

        • MalReynolds@piefed.social
          link
          fedilink
          English
          arrow-up
          23
          arrow-down
          4
          ·
          3 days 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.

      • Clambake0351@piefed.zip
        link
        fedilink
        English
        arrow-up
        19
        ·
        3 days ago

        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.

    • rumba@lemmy.zip
      link
      fedilink
      English
      arrow-up
      26
      arrow-down
      6
      ·
      3 days ago

      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.

      • dev_null@lemmy.ml
        link
        fedilink
        English
        arrow-up
        3
        ·
        3 days ago

        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.

        • rumba@lemmy.zip
          link
          fedilink
          English
          arrow-up
          2
          ·
          2 days ago

          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.

          • dev_null@lemmy.ml
            link
            fedilink
            English
            arrow-up
            2
            ·
            2 days ago

            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.

            • rumba@lemmy.zip
              link
              fedilink
              English
              arrow-up
              1
              ·
              2 days 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.

              • dev_null@lemmy.ml
                link
                fedilink
                English
                arrow-up
                2
                ·
                2 days ago

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

                Then we are in agreement, your original comment (I just noticed you are the same person) wasn’t clear to me. It looked to me like you are against the idea of ML in itself, and would be just as against e.g. Tesseract.

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

                Yes I do, as long as it’s open source, doesn’t phone home, and has nothing to do with a company like Google.

      • 4am@lemmy.zip
        link
        fedilink
        English
        arrow-up
        8
        arrow-down
        6
        ·
        3 days ago

        Same guy gets mad when search doesn’t find what he’s looking for

      • pauljhenry@lemmy.ml
        link
        fedilink
        English
        arrow-up
        1
        arrow-down
        2
        ·
        3 days ago

        You’re already jumping to conclusion as fact. You might as well just stop using Linux at tis point of touching ML related technology is enough of an infraction for you.

            • rumba@lemmy.zip
              link
              fedilink
              English
              arrow-up
              1
              ·
              2 days ago

              You know, I see so much .ml fanboying for this place; it’s almost like you’re part of a campaign for their public relations.

              • pauljhenry@lemmy.ml
                link
                fedilink
                English
                arrow-up
                1
                ·
                2 days ago

                I just enjoy E2EE. See my few comments on Molly which is Signal with extra security. I also use Firefox Relay, but i have had issues with that.

    • cqgbp@lemmy.world
      link
      fedilink
      English
      arrow-up
      15
      arrow-down
      3
      ·
      3 days ago

      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

      • assaultpotato@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        16
        arrow-down
        4
        ·
        3 days ago

        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.

        • Awesome Lowlander@cozyver.se
          link
          fedilink
          English
          arrow-up
          6
          arrow-down
          1
          ·
          3 days ago

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

          • assaultpotato@sh.itjust.works
            link
            fedilink
            English
            arrow-up
            3
            arrow-down
            2
            ·
            3 days ago

            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.

            • Awesome Lowlander@cozyver.se
              link
              fedilink
              English
              arrow-up
              2
              arrow-down
              1
              ·
              3 days ago

              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.

              • assaultpotato@sh.itjust.works
                link
                fedilink
                English
                arrow-up
                4
                ·
                3 days ago

                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…

                • pauljhenry@lemmy.ml
                  link
                  fedilink
                  English
                  arrow-up
                  2
                  ·
                  3 days ago

                  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.

                • Awesome Lowlander@cozyver.se
                  link
                  fedilink
                  English
                  arrow-up
                  2
                  ·
                  3 days ago

                  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.

                  • assaultpotato@sh.itjust.works
                    link
                    fedilink
                    English
                    arrow-up
                    2
                    ·
                    edit-2
                    3 days 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.

                  • assaultpotato@sh.itjust.works
                    link
                    fedilink
                    English
                    arrow-up
                    2
                    ·
                    3 days ago

                    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.

    • voidsignal@lemmy.world
      link
      fedilink
      English
      arrow-up
      15
      arrow-down
      5
      ·
      3 days ago

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

      • dev_null@lemmy.ml
        link
        fedilink
        English
        arrow-up
        3
        arrow-down
        2
        ·
        3 days ago

        Ok, then you don’t use any Android apps? Because the majority of code running in any Android app 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.

      • pauljhenry@lemmy.ml
        link
        fedilink
        English
        arrow-up
        2
        arrow-down
        1
        ·
        3 days ago

        Then you have no applications from the Play Store? Every single play store app requires a little bit of it.

    • dropdrip@lemmy.ml
      link
      fedilink
      English
      arrow-up
      5
      arrow-down
      8
      ·
      3 days ago

      This isn’t at all an implementation of OCR for the purposes of using a phone as a scanner. This is putting the foundations in to allow AI to utilize the contents of your e-mails.

      That’s a huge privacy nightmare…

      Ideally the only people reading e-mails should be the senders and the recipients. Instead you also have this thing–doesn’t matter if it’s offline or online. It’s a piece of software trying to contextualize private communications.

    • cqgbp@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      arrow-down
      3
      ·
      2 days 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