Former defence minister Esperanza Casteleiro has been given a tricky assignment. In May, she was appointed head of the Centro Nacional de Inteligencia (CNI), with the task of restoring its reputation and regaining public confidence. Paz Esteban, the previous director of the agency that handles both domestic and external intelligence, was eventually dismissed after years of controversy over the use of NSO Group's Pegasus spyware for the surveillance of Catalan separatists.

No sooner had she taken up