A collaborative framework for intrusion detection in mobile networks