Ministers only learned late last week of the breach.