Britain’s biggest-spending government department confirmed at the weekend that a cyber incident that prompted it to take its systems offline over the past couple of days was a deliberate cyberattack.