Hackers have stolen over $2.5 billion through vulnerabilities on cross-chain bridges in the past two years.