This research presents a behavior-based security system for mobile devices utilizing machine learning techniques to enhance security and detect anomalies in user behavior. An Android application was developed to gather data on mobile usage, and various machine learning algorithms were employed to analyze this data, yielding high accuracy in distinguishing between users. The study emphasizes the significance of feature selection and highlights the potential for future applications in identity-based services.