A hacking group it had maintained access to the firm's systems for several months and had destroyed parts of the company’s infrastructure.