Kinds of cyberattacks are morally justified

Once a war (cyber- or conventional) has begun what kinds of cyberattacks are morally justified?