Hardware-based Intrusion Detection for Critical Embedded Systems.