Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Protect against DOS attacks that spam new connections #30

Open
adamstallard opened this issue Sep 29, 2018 · 3 comments
Open

Protect against DOS attacks that spam new connections #30

adamstallard opened this issue Sep 29, 2018 · 3 comments

Comments

@adamstallard
Copy link
Member

adamstallard commented Sep 29, 2018

  1. rate limit ip addresses that are creating many new accounts
  2. rate limit connections where neither user is verified
  3. rate limit connections per user (no one needs to create 10,000 connections a day)
@adamstallard
Copy link
Member Author

From @alfhg on May 10, 2018 21:56

Re captcha should be required to prove being a human. Each time when someone adds new member, both parties must complete re captcha. This way it's more costly and slower to add fake members. (But someone can still spend all day creating fake connections, and there will be incentive for it if there is UBI)

@adamstallard
Copy link
Member Author

C. Adam Stallard, [28.09.18 21:40]
Also, what I said above 👆. If at least one of the two users has to have a preexisting score—even if it's really small like 5 out of a possible 100. At least the attacker can't use newly created keys to connect to more keys. Limit each "user" to say 50 connections a day or something.

C. Adam Stallard, [28.09.18 21:41]
I think that'd make it really hard to spam us with thousands of connections per second.

C. Adam Stallard, [28.09.18 21:43]
thousands a day for sure, but not enough to bring down the network so its unresponsive, just enough to add a bunch of garbage to the graph. I fully expect 10% of the graph to be people doing garbage stuff like this. We could also find ways to automatically clean it.

C. Adam Stallard, [28.09.18 21:49]
I also think that if a node isn't experiencing high load, it could let two new users connect to each other. We only need to enforce that restriction if the load starts to get high.

C. Adam Stallard, [28.09.18 21:50]
And then IP addresses that are sending the low quality requests would get automatically blacklisted or throttled.

C. Adam Stallard, [28.09.18 21:50]
That should wear down a DDOS attack quickly

Titusz, [28.09.18 21:51]
new request could come in from peer nodes...

C. Adam Stallard, [28.09.18 21:51]
Sure, but each node would be equipped with the same defenses

C. Adam Stallard, [28.09.18 21:55]
I guess if there's a malicious peer node doing the spamming, that peer node could also be blacklisted

C. Adam Stallard, [28.09.18 21:56]
"good" nodes would know not to forward that many low quality requests to other nodes, so they wouldn't risk being blacklisted

@abramsymons
Copy link
Collaborator

Re captcha should be required to prove being a human. Each time when someone adds new member, both parties must complete re captcha. This way it's more costly and slower to add fake members. (But someone can still spend all day creating fake connections, and there will be incentive for it if there is UBI)

I have worked with anti-captcha services before. Their service cost $0.002 for solving each google recaptcha.
https://anti-captcha.com/
Also it's not good approach to rely on centralized services.

@adamstallard adamstallard changed the title Protect against DOS attacks that spam new connections Protect against DOS attacks that spam new connections (40-80 Subs) Apr 7, 2020
@alirezapaslar alirezapaslar changed the title Protect against DOS attacks that spam new connections (40-80 Subs) Bounty - Protect against DOS attacks that spam new connections (40-80 Subs) Apr 13, 2020
@alirezapaslar alirezapaslar changed the title Bounty - Protect against DOS attacks that spam new connections (40-80 Subs) Protect against DOS attacks that spam new connections (40-80 Subs) Apr 16, 2020
@adamstallard adamstallard added this to Backlog in Everything Jun 16, 2020
@adamstallard adamstallard changed the title Protect against DOS attacks that spam new connections (40-80 Subs) Protect against DOS attacks that spam new connections (20-40 Subs) Aug 31, 2020
@adamstallard adamstallard changed the title Protect against DOS attacks that spam new connections (20-40 Subs) Protect against DOS attacks that spam new connections Sep 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Everything
  
Backlog
Node
To Do
Development

No branches or pull requests

3 participants