The federal privacy watchdog has opened an investigation into cyberattacks on the Canada Revenue Agency that led to more than 30,000 privacy breaches dating back to 2020.