Lessons from the TREZOR Hack