• Lyricism6055@lemmy.world
    link
    fedilink
    English
    arrow-up
    3
    arrow-down
    1
    ·
    7 hours ago

    Why would it be more secure? Electron has a massive ecosystem with a good bug bounty program afaik.

    • Axolotl.cpp@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      3
      ·
      edit-2
      2 hours ago

      Less surface area to attack; Electron bundles a stripped down Chrorium browser and to make graphics you also gotta use JS… so basically there could be 3 more parts to attack

    • zener_diode@feddit.org
      link
      fedilink
      English
      arrow-up
      13
      ·
      7 hours ago

      It would (hopefully) have less attack surface. Electron is, after all, a whole browser, and needs to be able to do all the things a browser can do, while a native implementation can limit itself to just the very limited network interactions needed. (e.g. while XSS attacks are quite hard to do on a modern browser, a native app would make them impossible)

      • Lyricism6055@lemmy.world
        link
        fedilink
        English
        arrow-up
        5
        ·
        7 hours ago

        Does rust have a mature sandboxing environment similar to a browser though?

        Legit asking as I thought that was one of the selling points to electron. It also seems like one of the easiest things a shiny new app that leans heavily on Claude is probably gonna fuck up