Is Your Update Process Secure? Best Practices for Local or Over-the-Air Firmware and File System Updates