Skip to content
This repository has been archived by the owner on Sep 6, 2019. It is now read-only.

[suggestion] preconfigured whitelists for IPC/binder and indentification/proc #2349

Open
MartinS84 opened this issue May 10, 2016 · 3 comments

Comments

@MartinS84
Copy link
Contributor

As far as i understand IPC/binder and identification/proc can be used to circumvent restrictions.
I currently restrict the categories and then add entries to my whitelist if they dont look suspicious to me.
For example "/proc/meminfo" looks like asking for the amount of memory. And if theres was something like "proc/blabla_IMEI" i would deny it.

But of course i dont know what all the different requests mean.
If we knew how someone can request the IMEI or Serial via indentification/proc or IPC/binder, then we could make a category to check that blocks these attempts, without any claim to completeness of course.
Maybe by creating a whitelist of the most common harmless requests.

@MartinS84
Copy link
Contributor Author

I got another idea.
In the log files i often see "original:0123456789" when a request by an app was restricted.
So that means Xprivacy can see the data that would have been returned, had there not been a restriction.
I think the most sensitive data that users want to protect are probably the IMEI, Serial, android id, etc. these numbers.
Maybe it would be an option to just scan all of the data that is returned to the app through /proc and /binder for that number, and then intercept the data and replace the number?
That way you wouldnt even have to know what is possible with /proc and /binder.

Of course it could also be that some app crashes because some number returned by chance is identical to your IMEI. Or it could be that the data is returned in some obscure way.

@Gitoffthelawn
Copy link
Contributor

I agree that having a way to automatically allow certain items that don't have any real privacy issues would improve XPrivacy.

As another example, almost every app with internet access will make a query to check for IPv6. This results in an extra item that has to be approved the first time most apps makes an internet connection; there is currently no way to automatically whitelist these types of items in expert mode.

@woyaojizhu8
Copy link

@MartinS84 Could you share more experience about using IPC/binder and identification/proc restriction?
e.g. I have some questions:

  1. /proc/{pid}/cmdline , some apps ask for this. I need to whitelist the app's own pid and deny others, but as the pid often changes, I can only allow it for 15s every time. How to solve this ?
  2. What does IPC IPackageManager:getPackageInfo mean? Why does every app need this? If I allow this , will the app have the ability to access packageinfo of all installed apps?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants