Intrusion Detection and Prevention for Mobile Ecosystems