Threat Adaptive Byzantine Fault Tolerant State-Machine Replication