Mitigation of Classes of Attacks using a Probabilistic Discrete Event System Framework