• Rentlar ( Rentlar@lemmy.ca ) 
    link
    fedilink
    arrow-up
    10
    ·
    1 year ago

    Yeah, I didn’t have any current expectations about the privacy, anything beyond security-by-obscurity which is absolutely not reliable for any important private conversation.

    I’m pretty much chatting with complete strangers on the network anyway, and the usefulness I see is as a secondary communication band if traditional networks aren’t available in a crisis. The PSK sounded more like a channel filter than an encryption mechanism to me anyway (I hope my past comments describing meshtastic were clear about this).

    I’m all for identifying these flaws and fixing them, improving the protocol in future version so that maybe eventually it can be suitable for sensitive information than hobbyist blather or emergency info.

    • Yeah, I just started messing around with Meshtastic, and it is apparent it’s more of a beta project. Has lots of little bugs, no real routing, etc. Seems like the user-base outpaced development. It is pretty cool though, and I hope they fix the glaring issues quickly.

      • Rentlar ( Rentlar@lemmy.ca ) 
        link
        fedilink
        arrow-up
        3
        ·
        1 year ago

        Currently in Vancouver. I play with it on certain weekends only though so far with some Heltecs. I’ll be in Toronto next in the fall sometime (hopefully after the fabled Eglinton Crosstown opens 🤣).

  • My first thought would be to encrypt the profile broadcast with your private key and then broadcast it and then broadcast the public key second. That way, if the public key was not correct, they could not decrypt the profile broadcast at all.

    Then again, I’m just a normie, so that’s just a thought from somebody who doesn’t fully understand the intricacies, so I could be way off base.

    • Arthur Besse ( cypherpunks@lemmy.ml ) OP
      link
      fedilink
      English
      arrow-up
      6
      ·
      1 year ago

      In asymmetric encryption, the private key is used for decrypting things which were encrypted using the corresponding public key. You don’t encrypt things using the private key.

      The problem here is that Meshtastic doesn’t have any means whatsoever of ensuring that a public key is authentic, and they allow keys to be replaced at any time. Verifying keys out-of-band would be the most secure approach, but to enable encryption between nodes who don’t do that the thing Meshtastic should be doing is ssh-style TOFU (meaning that users must explicitly acknowledge when a key changes before using the new key).

        • Arthur Besse ( cypherpunks@lemmy.ml ) OP
          link
          fedilink
          English
          arrow-up
          5
          ·
          1 year ago

          Yes, you can make a signature using the private key and anyone can verify it using the corresponding public key.

          But, if the attacker can replace the public key they can also replace the signature with one made using their own key - so this doesn’t solve the problem of keys being unverified.

          If public keys were actually verified, signatures could protect the other fields in the profile packet from being modified. You could also theoretically use signatures to authenticate key rotation, by signing a packet containing your new public key using your old private key. But this doesn’t really work in the unreliable radio setting where some messages are likely to be missed.

      • lightrush ( lightrush@lemmy.ca ) 
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

        Err, is it just me or does the Android client stop exchanging DMs in an existing chat if a public key changes? I’ve had to delete conversations between my nodes to reenable comm after regenerating one node’s public key.