A Fraud-Prevention Framework for Mobile Devices