libp2p / py-libp2p

The Python implementation of the libp2p networking stack 🐍 [under development]
https://libp2p.io
Other
470 stars 101 forks source link

[Stretch] Network attack simulation #57

Open robzajac opened 5 years ago

robzajac commented 5 years ago

The Ethereum networking layer has been attacked several times. Py-libp2p and more generally libp2p would benefit from protection against common attacks on peer to peer networks. Py-libp2p should simulate attacks on topologies constructed through this library and assess security against these attacks.

lanzafame commented 5 years ago

/cc @mgoelzer it would be great to get github.com/libp2p/interop up-to-date and include these kinds of tests/simulations

zixuanzh commented 5 years ago

We can start from eclipse attack simulation as described in this paper. It is done through poisoning the DHT which is the primary source of structure in the network.

ghost commented 5 years ago

@lanzafame Yes, I agree. We are building a test cluster project this quarter (reminder to self: insert issue link here once spec issue is available), then we will definite interop tests for common modules like DHT, PubSub, etc. I made https://github.com/libp2p/interop/issues/3 to track the need to bring github.com/libp2p/interop up to date or move that content into another repo.