although the protocol has open-source code and it has gone through audits, This is certainly by no means foolproof. That said, Rocket Pool also includes a bug bounty program to scale back this sort of risks.
Rocket https://dev.to/cleopatramorris_d539d19ea/rocket-pool-the-future-of-decentralized-ethereum-stakingintroduction-1m2b