There is an easier way though... change all the fucking passwords from "password" and stop buying compromised equipment from China because it's cheap!
Military intelligence.
Military intelligence.
In all seriousness though, security is not that simple. Yeah, what you're suggesting would mitigate risk, but it wouldn't come remotely close to eliminating it. You can end/save lives through hacking, and if you're costing the opposition lives, you should be treated as anyone else would be.
Why does Three Mile Island need a REST API?