It'll come down to the software they're running. Hopefully it'll not be Windows for Submarines;) http://www.independent.co.uk/news/uk/home-news/nuclear-submarines-windows-xp-ransomware-wannacry-wanna-defender-michael-fallon-defence-secretary-a7734966.html
RE: Fear of robots, threat of robots