whilst the protocol has open-source code and has undergone audits, This really is under no circumstances foolproof. That said, Rocket Pool also includes a bug bounty program to lower this kind of hazards.
If you want https://dev.to/cleopatramorris_d539d19ea/rocket-pool-the-future-of-decentralized-ethereum-stakingintroduction-1m2b