A survey on the (in)security of trusted execution environments