The internet and international law

What legal framework should be applied to international politics through cyber security and offensive tactics? Should governments limit themselves by international law when building their arsenal, and how far should transparency go? What role do human rights play in geopolitics trough online sanctions? Can freedom of the net be limited to put pressure on rogue regimes?