Threat Analysis and Detection in Critical Infrastructure Security