Security Framework for Attack Detection in Computer Networks