although the protocol has open-supply code and it has undergone audits, That is in no way foolproof. Having said that, Rocket Pool also has a bug bounty system to reduce these types of challenges.
If you’re a dApp, https://dev.to/cleopatramorris_d539d19ea/rocket-pool-the-future-of-decentralized-ethereum-stakingintroduction-1m2b