Live data from Hacker News

Show HN: Peer-to-peer secure file transfer using WebRTC

bitf.ly

21–30 of 65 posts

Re: Show HN: Peer-to-peer secure file transfer using WebRTC

#21
post #4

"Secure" but "we advise against using Bitfly for highly sensitive data. You have been warned.". So is it secure or isn't it?

The warning is posted under the headline "How do I know you're not sending my data to the NSA" and in that context, it is a good warning. Don't trust random software with highly sensitive data.

Re: Show HN: Peer-to-peer secure file transfer using WebRTC

#22

From the HN title: "secure" I have a question: Secure against what thread model? The FAQ has an entry for "How do I know you're not sending all my data to the NSA?" but that's the wrong question to ask (i.e. Even if you're not behaving maliciously, that doesn't mean our data is safe against highly sophisticated threats). It would really be great if you could demonstrate what makes this more secure than alternative so…

Webrtc itself requires perfect forward secrecy. While you cannot do authentication with it - you need to provide that yourself - you can be certain besides yourself and whomever your signaling server told you is your peer are the only two able to decrypt the packets going between you two.

Re: Show HN: Peer-to-peer secure file transfer using WebRTC

#23
post #16

Earlier quoted context omitted.

These are very good points. I believe that adding any real crypto to the JS code to be a doomed path so I probably won't go for that. My only argument right now is couldn't one verify that the IP of the recipient is the same as the address of the expected receiving device (or router) and be somewhat sure it's not MITM?

The way I would make this work: - Build a DHT style overlay network of "meet in the middle" servers - Have a standalone html file, that uses websockets to connect to the network of servers. - Have both clients generate keys, exchange them via other channels. - Both users have a shared key, they both lookup the server that hosts the shared key on the DHT network (that actually can be done without leaking the key to ev…

This sounds incredibly complicated :) I would definitely use TOR if I believe I'm facing a dedicated and sophisticated threat. For now I have tried to clarify the issues in the FAQ and can only hope that people read it and don't get screwed over by wrong expectations.

Re: Show HN: Peer-to-peer secure file transfer using WebRTC

#25
post #7

Earlier quoted context omitted.

A big problem is that webRTC is highly MITM-able. You have to exchange initial connections using a server. So no party has any way of knowing if you are MITM attacking. You might be able to do something diffie-helman shaped at the javascript level (hard to ensure it actually works) to show a fingerprint of the shared secret that could be confirmed via outside channels. But all-in-all this does not offer ANY security…

These are very good points. I believe that adding any real crypto to the JS code to be a doomed path so I probably won't go for that. My only argument right now is couldn't one verify that the IP of the recipient is the same as the address of the expected receiving device (or router) and be somewhat sure it's not MITM?

> I believe that adding any real crypto to the JS code to be a doomed path

Mega[1] users JS based crypto and it's been fine

[1]: http://mega.co.nz

Re: Show HN: Peer-to-peer secure file transfer using WebRTC

#26
post #20
post #8

With some sort of peer discovery functionality, this could be a pretty cool open, cross-platform replacement for Apple's AirDrop. ...but would probably need WebRTC functionality in Safari to work on iOS devices

I mentioned it in another comment upthread, but http://sharedrop.io is exactly this. WebRTC file transfer with LAN peer discovery.

Nice! Right, I forgot I had come across that one too. Using firebase was clever too.

Re: Show HN: Peer-to-peer secure file transfer using WebRTC

#28
post #27

I was wondering if it is possible to transfer streaming video data over WebRTC already, for example to implement a video chat service, without wasting too much CPU power and/or bandwidth?

Icecomm lets you use Webrtc to do this pretty easily (icecomm.io)

Re: Show HN: Peer-to-peer secure file transfer using WebRTC

#29
post #3

Similar project: FilePizza – https://file.pizza/ github: https://github.com/kern/filepizza show hn: https://news.ycombinator.com/item?id=9535332

Happy to see that it works with CyanogenMod Chrome Beta on an old HP TouchPad.

ps: although it says the HTTPS connection is not safe.. weird. pps: lazy me would love a multiple file options ..

Re: Show HN: Peer-to-peer secure file transfer using WebRTC

#30
post #22

From the HN title: "secure" I have a question: Secure against what thread model? The FAQ has an entry for "How do I know you're not sending all my data to the NSA?" but that's the wrong question to ask (i.e. Even if you're not behaving maliciously, that doesn't mean our data is safe against highly sophisticated threats). It would really be great if you could demonstrate what makes this more secure than alternative so…

Webrtc itself requires perfect forward secrecy. While you cannot do authentication with it - you need to provide that yourself - you can be certain besides yourself and whomever your signaling server told you is your peer are the only two able to decrypt the packets going between you two.

Doesn't the server know the token id? I didn't inspect the requests, but it's possible to send the token to the server.

Therefore, can't they download the sample just like the connected client?

Post reply on HN