Research libp2p DDoS attack mitigation
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 30/100
- Issue 类型
- 文档
- 描述清晰度
- 描述清楚
- 活跃度
- 停滞
- 技术栈
- go
调研方向
首先审查 libp2p 的 connmgr.ConnManager 和 network.ResourceManager,然后比较 rateconn 与自定义消息和大小限制器。记录可用的缓解方案、它们对于 Charon 连接和协议的权衡,以及建议;无需实现。
由索引模型根据 Issue 内容生成。
描述
Problem to be solved
Charon nodes in a cluster communicate via libp2p. There are multiple libp2p protocols inside charon (dkg/qbft/ping/parsigex). A Byzantine node can DDoS other nodes by spamming them with valid (or invalid) connections and messages, causing OOM and or CPU problems.
DDoS can happen on the following resources:
- Number of libp2p connections
- Number of messages per connection
- Size of messages
This is however a common problem, so there might be existing solutions to the problem.
Proposed solution
- Research different ways to mitigate DDoS attacks (by Byzantine cluster peers).
- Look at libp2p
connmgr.ConnManagerto limit connections - Look at libp2p
network.ResourceManagerto limit memory, streams, connections, and file descriptors - Look at something like for bandwith throttling: https://github.com/corverroos/rateconn
- Look at custom message rate limiters and custom message size rate limiters (both detecting and then throttling)
Write a document with findings and recommendations.
Out of Scope
Nothing needs to be implemented yet.
- 主要语言
- Go
- 星标
- 223
- 派生
- 139
- 平均合并
- 1 天 10 小时
- 30 天内合并 PR
- 74
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
ObolNetwork/charon 的其他 Issue
-
protocol
难度 3/5 1-2 天 新手友好度 35/100
ObolNetwork/charon#4766 · 3 条评论 ·
维护者通常 1 天内回复
-
core/infosync: remove dead proposal topic可能已有人在做 @KaloyanTanev 于 27 天前认领。 未关闭enhancement protocol
ObolNetwork/charon#4728 · 已指派 1 人 ·
维护者通常 1 天内回复
-
core: gloas builder preferences duty (SignedBuilderRequestAuth aggregation)可能重新可做 @KaloyanTanev 于 31 天前认领,目前没有进行中的 PR。 未关闭protocol
ObolNetwork/charon#4724 · 1 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
bug protocol
难度 3/5 1-2 天 新手友好度 55/100
ObolNetwork/charon#4711 ·
维护者通常 1 天内回复
-
protocol
难度 4/5 3-5 天 新手友好度 55/100
ObolNetwork/charon#4710 ·
维护者通常 1 天内回复
查看 ObolNetwork/charon 的全部 Issue
相似的 Issue
-
consensus feature I2 S4 U2
难度 1/5 1 小时以内 新手友好度 85/100
维护者通常 1 天内回复
-
[Bug] [Go] Ack returns nil when the server answers with a non-OK status可能已有人在做 @leizhiyuan 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 84/100
apache/rocketmq-clients#1465 ·
维护者通常 2 天内回复
-
Priority/Low Type/Improvement
难度 2/5 1-3 小时 新手友好度 72/100
OpenNSW/nsw-srilanka#906 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
praetorianer777/Dynamo#57 ·
维护者通常 1 天内回复
-
fix(handlers): explicitly set Content-Type header in static Index handler可能已有人在做 @kage-zero 今天认领。 未关闭
难度 1/5 1 小时以内 新手友好度 85/100
维护者通常 1 天内回复