CPS: Medium: Secure Computing and Cross-Layer Anomaly Detection in the Internet of Things