In today's modern technology issues, it is a really widespread questions. I suggests reading https://agilie.com/en/blog/how-we-used-data-analysis-to-detect-fraudulent-transaction which is a wonderful tool if you want to know all the basic features and solutions how to protect your data. It can be a special tool if you want to know how to avoid such a problems while you are developing an app like this.