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

Limit flooding of Community Owner's nodes #163

Open
D4nte opened this issue Jan 9, 2022 · 5 comments
Open

Limit flooding of Community Owner's nodes #163

D4nte opened this issue Jan 9, 2022 · 5 comments

Comments

@D4nte
Copy link
Contributor

D4nte commented Jan 9, 2022

Problem

Currently, the Waku (v2) network does not implement anti-spam solutions. Work is currently in progress with RLN waku-org/nwaku#394 https://rfc.vac.dev/spec/17/.

In the following Community type:

  • restricted with auto-approval
  • restricted with manual approval
  • Token gated with auto-approval
  • Token gated with manual approval

Community Owner's nodes have to process and, for manual approval community types, request the Community owner to take action for incoming join requests.

With the current design, the Community Owner and their node can be subject of flooding attacks:

  1. In the case of a restricted community, an attacker could create new keys for each message
  2. In the case of a token gated community, if the token requirement is low (e.g 1 token to participate, token cost a few cents), the user could setup several accounts and flood using them

Proposed solution

  1. Investigate the use of centralized service hCaptcha (not preferred)
  2. Design a decentralized captcha system
@D4nte
Copy link
Contributor Author

D4nte commented Jan 9, 2022

@cammellos @John-44 I tried to summarize the problem we are trying to solve, please let me know if I am correct.

@D4nte
Copy link
Contributor Author

D4nte commented Jan 9, 2022

Regarding 2, I am not convinced it can be an issue. If a community is token gated then the Community Owner should set the minimal number of tokens to a significant amount (e.g. $5) to stop this kind of flooding.

Can you please clarify what is the possible spamming scenario with token gated communities?

@D4nte
Copy link
Contributor Author

D4nte commented Jan 9, 2022

@D4nte
Copy link
Contributor Author

D4nte commented Jan 14, 2022

The project plebbit is still designing their decentralized captcha. I am not totally convinced at this stage that we can apply their design to an application level as their design rely on nodes being aware of the captcha protocol and being able to block out spammer that sends captcha challenge requests without captcha challenge solutions.

It means that such design would sit better at Waku protocol level. I haven't researched whether an application level protocol could work.

@D4nte
Copy link
Contributor Author

D4nte commented Jan 18, 2022

After further review, please note that it should be possible to use RLN in this scenario.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant