A framework for adaptive, cost-sensitive intrusion detection and response system