Just finished watching [Rogue One](http://www.imdb.com/title/tt3748528/) and the character [Rogue One](http://www.imdb.com/character/ch0546998/?ref_=tt_cl_t3)[K-2SO](http://www.imdb.com/character/ch0546998/?ref_=tt_cl_t3) is said to be a reprogrammed Imperial protocol droid.

Up until this point, for some reason I never really thought that computers were similar to what we have in reality, but this got me thinking. 

USBs etc can transfer virus between computers, so I can only guess that it is possible in Star Wars canon that when Droids connect to an up-link that they have the potential to infect or be infected with a virus, that is of corse they have some sort of defense against this. Which is certainly very probable.

Ie, when R2D2 connects to a terminal with his interface arm, or when K-2SO connects to the imperial droid with his interface arm.

[![enter image description here](https://i.stack.imgur.com/avTGt.jpg)](https://i.stack.imgur.com/avTGt.jpg)

That aside, has there been a major cyber attack in the Stars Wars universe and what what was it and how was it carried out?
---------------------------------------------------------------------------------------------------------------------------