react-native-sensitive-info icon indicating copy to clipboard operation
react-native-sensitive-info copied to clipboard

[Question] How to check my data is secured ?

Open zedtux opened this issue 8 years ago • 6 comments

I'm using this lib and I'd like to check that the data are stored securely on my iOS and Android devices.

What is the easiest way to do this?

zedtux avatar Aug 09 '18 13:08 zedtux

I was very surprised when I discovered that the data is not really protected

you can check it for android:

$ adb shell $ run-as <app-package-name> $ cd shared_prefs/ $ cat shared_preferences.xml

data is stored in unencrypted representation

dtmp avatar Jan 31 '20 05:01 dtmp

I guess you need a rooted phone to do that ?

phyzalis avatar Jan 31 '20 06:01 phyzalis

I guess you need a rooted phone to do that ?

I tested it on an emulator. only with remote debugging enabled.

maybe I don’t understand something, but having implemented my own module inspired by this post, I saw encrypted data in the storage.

I look at the RNSensitiveInfoModule.java module and don’t understand how encryption is called without passing touchID = true in the options. Without passing this parameter from the setItem method, we get to the putExtra method, from which we write the value to shared_prefs without any encryption.

maybe I'm doing something wrong

dtmp avatar Jan 31 '20 20:01 dtmp

Hopefully @mCodex gives us an input about this topic?

zedtux avatar Feb 03 '20 09:02 zedtux

This may be a little bit late, but I would recommend checking out the following resources for local storage security testing

Marvedog avatar May 02 '20 10:05 Marvedog

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jun 11 '20 12:06 stale[bot]