Embedded cybersecurity for connected, medical, industrial, and IoT products