8000 Implement data access audit for Android app by clemente-xyz · Pull Request #1909 · LiskHQ/lisk-mobile · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Implement data access audit for Android app #1909

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 6, 2023

Conversation

clemente-xyz
Copy link
Member
@clemente-xyz clemente-xyz commented Jul 4, 2023

What was the problem?

This PR resolves #1901

How was it solved?

Build a monitoring system to log when user's private data is accessed by the Lisk Android application.

This was done by implementing an Android native module named AppOpsManagerModule, which makes use of Android's native AppOpsManager API (official Android data access auditing feature) to log via adb when private data has been accessed.

Here a demonstration of the monitoring system working:

android.access.to.photos.webm

where the log outputted was:

Screenshot 2023-07-06 at 11 10 08

Restrict access to resources is already being done on our Android manifest declaration (android/app/src/main/AndroidManifest.xml file), where we only list the resources Lisk needs for its use cases. Data access not required by Lisk use cases are restricted here just by not specifying them. The current data access specification we are doing is:

  • INTERNET
  • CAMERA
  • READ_EXTERNAL_STORAGE
  • WRITE_EXTERNAL_STORAGE
  • READ_PHONE_STATE
  • VIBRATE

How was it tested?

  • Android Emulator.

@clemente-xyz clemente-xyz self-assigned this Jul 4, 2023
@clemente-xyz clemente-xyz changed the base branch from development to release/3.0.0 July 4, 2023 12:50
@clemente-xyz clemente-xyz marked this pull request as ready for review July 6, 2023 10:51
@clemente-xyz clemente-xyz merged commit e813b06 into release/3.0.0 Jul 6, 2023
@clemente-xyz clemente-xyz deleted the 1901-android-data-access-audit branch July 6, 2023 12:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mobile android application: permission riding is possible
2 participants
0