The Ministry of Justice said it was aware of a data breach after reports that detailed layouts had been shared online in the past two weeks.