The hackers were targeting Polish institutions with the aim of extorting information and conducting “de facto cyberwarfare”.