I'm thinking about improving data protection in my iOS app and first of all I want to determine steps that I need to do first.
Our app doesn't have any explicit protection for locally stored data - we use NSUserDefaults for simple configs & settings and codable objects for user data stored in files in documents directory.
User data is coming from API over HTTPs and we just cache it in way described above. I thought that the first thing that I need to improve will be implementing best practices for keeping my local storage secure, however I started to doubt about it.
Please advise - are my thoughts сorrect?
- Since all locally stored data is a reflection of API responses - is it worth to worry about local data protection when any user can just install Charles and sniff data without trying to hack local storage?
- Are there any pros to have local storage protected but still vulnerable to man-in-the-middle attack if local data == API data?
Thanks in advance for help!