Alkemist: Harden vulnerable embedded systems and devices