by UnoriginalGuy · 10y ago · 0 comments
When I watched this at Google's conference and read the subsequent thread I was extremely surprised to see no real discussion of the security headaches.
Google has added pop-up permissions for particularly sensitive information, but this feature allows a malicious developer to run arbitrary app code on a device without prior user consent so we have to think about security differently.
Or to phase it another way, if app code gets more "free" access then HTML/JS/CSS then it has already been utilised to escalate local access. So people could use it in adverts (e.g. unique IDs, local storage, etc), to try and bypass your proxy/VPN (via the default internet access permissions, resource links, etc), to exploit new bugs in the system/Dalvik/libs, etc.
This reminds me of Flash/Java Applets all over again. Even if you trust Google to do a better job, it is undeniable that this substantially expands the number of attack vectors on Android as a platform.
While true in general for Android apps - Android apps can get i.e. a low privileged Linux shell and general internet access without explicit permissions - Google would be quite stupid indeed to allow this for instant apps as well. It would be too obvious a security hole.
It's also surprising to me that this hasn't been discussed at greater length, but I really don't expect instant apps to have the same freedoms regular apps have.
I think we've gotten a bit better since the Flash days at writing VMs that don't leak like a sieve. Would be nice if someone could go in and write the entire Android VM in dart or something though...