Question/Discussion on security against malicious key generation


chuck4100

Recommended Posts

So I was reading through some post and such about security and I'm not really concerned about BTSync's security but a thought occurred to me that I did not feel was addressed.

What exactly stops someone from mass generating W/R keys then adding them in bulk to see if they catch anyone's shared folders?

 

Like I realize its impossible or so to guess any given individual's folder but like game distributors like Steam will soft-ban and perma-ban accounts with too many invalid key redemptions to prevent people from typing random keys.

Edited by chuck4100
Link to comment
Share on other sites

Warning: I am not a cryptographer, so this might be wrong.

Standard Sync folder use 160-bit of random material. Brute forcing a specific folder is virtually impossible, because it is a search space of 2^160. We can use the birthday paradox to find out when we expect a collision, the birthday bound is 2^(n/2), so we expect a collision when 2^80 folder keys are generated. In other words, every member of the world population needs to have 1.633684e+14 folders before we expect a certain collision.

Obviously, the key space is very sparse, so you'd have to do many more than 2^80 attempts to find a collision. Moreover, finding a collision has two complicating factors:

  • For every generated key, you need to query the DHT, which has quite a lot of overhead for brute-forcing.
  • BTSync sends a derivative of the key to discover peers. Even if you find a collision of the folder ID, it does not mean that you have found an in-use key.

 I am not sure if nodes that participate in the DHT apply rate limiting. But even if they don't, the attack that you mention seems impractical. Though it would be nice if one of the Resilio cryptographers can weigh in.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.