Is there a way to deter cyber attacks?
Yes. Two ways. One takes a moral high ground.
I won't waste any time discussing that option.
Why? After flame/stuxnet, and the unilateral escalation of the cyberweapons arms race by the US, that option is now closed.
The only option that's left is down and dirty open source warfare.
More @ Global Guerrilla