I don't see why it wouldn't be. We live in high tech times. Cyber warfare is nothing different then physical violence.
So you wouldn't mind then if I secretly install a program that makes your computer attempt to hack some US military network? Because that's a huge difference between physical violence and cyber "violence": in meat space, I can't hijack your body to commit crimes.
In fact, that's the whole point of war: all other viable options for self-preservation (personal and national) have been exhausted, leaving only killing people and breaking things until the threat stops.
This whole argument can get philosophical, but I see your point.