The OP is making an assumption that such a thing exists as rules of war. I have placed this reference into another thread but I think it may be more appropriate here;
As part of its war, ISIS has created a "computer hackers" division whose job is to investigate the uses of the new technologies in its current war against the coalition of the ...... of which we are part.
They have located and published the names, addresses, phone numbers and photographs of people in the American Air Force and N