Total war against the threat.
Your neighborhood threat won’t be a nation-state or some group in a cave on the other side of the world. The machine coming into your house to steal your stuff if you’re lucky, or to dismember your family if you’re not lucky, will have been built from a Chinese kit bought through Amazon and then modified in terms of software and probably hardware as well, in the garage or workshop of a local nut or for money by a “guy who doesn’t ask questions”. It won’t be fully autonomous in our lifetimes, but it will be remote-controlled by a thief, kidnapper or thrill killer wearing VR goggles.
Opportunists will build these things and then sell them or rent out time on them to unseen and unknowable operators anywhere in the world over the dark net, who’ll anonymously pay with Monero and operate the machines over 5G and the Internet while getting feeds of 3D video and audio.
What the unseen operators may choose to do with the machines is a matter of imagining what a twisted demon would do if it had no fear of apprehension. Defenses will be essential.