The Spanish government announced on Thursday a new official secrets bill and reforms to the National Intelligence Center (CNI) after the agency acknowledged its use of Pegasus spyware to infiltrate mobile phones belonging to pro-Catalan independence politicians and activists, including elected officials.

Prime minister Pedro Sánchez told parliament the new law would “strengthen judicial control” over the country’s secret services and respect the privacy and rights of citizens.

"We are going to continue working to redouble security and shield it as much as possible in the future,” he said, adding that the new head of Spain’s secret service would report to Congress, Spain’s lower parliament, on an annual basis.