Amazon has received a patent that covers technology to give its drones extra anti-hacking protections.