29
50 Ways to Leak Your Data: An Exploration of Apps’ Circumvention of the Android Permissions System Serge Egelman, U.C. Berkeley / ICSI / AppCensus Jointly with: Joel Reardon, University of Calgary Álvaro Feal, IMDEA Networks / Universidad Carlos III Primal Wijesekera, U.C. Berkeley / ICSI Amit Elazari Bar On, U.C. Berkeley Narseo Vallina-Rodriguez, IMDEA Networks / ICSI / AppCensus

50 Ways to Leak Your Data: An Exploration of Apps' … · Narseo Vallina-Rodriguez, IMDEA Networks / ICSI / AppCensus. Apps and Permissions • Governs access to: • Location data

  • Upload
    others

  • View
    0

  • Download
    0

Embed Size (px)

Citation preview

Page 1: 50 Ways to Leak Your Data: An Exploration of Apps' … · Narseo Vallina-Rodriguez, IMDEA Networks / ICSI / AppCensus. Apps and Permissions • Governs access to: • Location data

50 Ways to Leak Your Data:An Exploration of Apps’ Circumvention of the Android Permissions System

Serge Egelman, U.C. Berkeley / ICSI / AppCensus

Jointly with:Joel Reardon, University of CalgaryÁlvaro Feal, IMDEA Networks / Universidad Carlos IIIPrimal Wijesekera, U.C. Berkeley / ICSIAmit Elazari Bar On, U.C. BerkeleyNarseo Vallina-Rodriguez, IMDEA Networks / ICSI / AppCensus

Page 2: 50 Ways to Leak Your Data: An Exploration of Apps' … · Narseo Vallina-Rodriguez, IMDEA Networks / ICSI / AppCensus. Apps and Permissions • Governs access to: • Location data
Page 3: 50 Ways to Leak Your Data: An Exploration of Apps' … · Narseo Vallina-Rodriguez, IMDEA Networks / ICSI / AppCensus. Apps and Permissions • Governs access to: • Location data

Apps and Permissions• Governs access to:

• Location data• Address book• Photo library• Persistent identifiers

• Supports notice and choice:• Apps show requests for data• Users allow or deny access

Page 4: 50 Ways to Leak Your Data: An Exploration of Apps' … · Narseo Vallina-Rodriguez, IMDEA Networks / ICSI / AppCensus. Apps and Permissions • Governs access to: • Location data

Does this work in practice?

Page 5: 50 Ways to Leak Your Data: An Exploration of Apps' … · Narseo Vallina-Rodriguez, IMDEA Networks / ICSI / AppCensus. Apps and Permissions • Governs access to: • Location data

Monitoring Data Flows

Instrumented Android: Access to sensitive resources (e.g., location, call logs, network state, various identifiers, etc.)

Lumen: Network traffic, remote servers, HTTP/HTTPS payloads

Page 6: 50 Ways to Leak Your Data: An Exploration of Apps' … · Narseo Vallina-Rodriguez, IMDEA Networks / ICSI / AppCensus. Apps and Permissions • Governs access to: • Location data

AndroidApp

Repository

Testbedfor

Dynamic Analysis

Simulated User

Interactions

Results Database

Website

API

Page 7: 50 Ways to Leak Your Data: An Exploration of Apps' … · Narseo Vallina-Rodriguez, IMDEA Networks / ICSI / AppCensus. Apps and Permissions • Governs access to: • Location data

https://search.appcensus.io

Page 8: 50 Ways to Leak Your Data: An Exploration of Apps' … · Narseo Vallina-Rodriguez, IMDEA Networks / ICSI / AppCensus. Apps and Permissions • Governs access to: • Location data

UncoveringDeceptive Practices

Page 9: 50 Ways to Leak Your Data: An Exploration of Apps' … · Narseo Vallina-Rodriguez, IMDEA Networks / ICSI / AppCensus. Apps and Permissions • Governs access to: • Location data
Page 10: 50 Ways to Leak Your Data: An Exploration of Apps' … · Narseo Vallina-Rodriguez, IMDEA Networks / ICSI / AppCensus. Apps and Permissions • Governs access to: • Location data

Covert Channels

Page 11: 50 Ways to Leak Your Data: An Exploration of Apps' … · Narseo Vallina-Rodriguez, IMDEA Networks / ICSI / AppCensus. Apps and Permissions • Governs access to: • Location data

Side Channels

Page 12: 50 Ways to Leak Your Data: An Exploration of Apps' … · Narseo Vallina-Rodriguez, IMDEA Networks / ICSI / AppCensus. Apps and Permissions • Governs access to: • Location data
Page 13: 50 Ways to Leak Your Data: An Exploration of Apps' … · Narseo Vallina-Rodriguez, IMDEA Networks / ICSI / AppCensus. Apps and Permissions • Governs access to: • Location data

apps without location

permissions

apps transmitting location data

Page 14: 50 Ways to Leak Your Data: An Exploration of Apps' … · Narseo Vallina-Rodriguez, IMDEA Networks / ICSI / AppCensus. Apps and Permissions • Governs access to: • Location data

apps apps transmitting

location data

without location

permissions

1,325 apps

Page 15: 50 Ways to Leak Your Data: An Exploration of Apps' … · Narseo Vallina-Rodriguez, IMDEA Networks / ICSI / AppCensus. Apps and Permissions • Governs access to: • Location data

Findings

Page 16: 50 Ways to Leak Your Data: An Exploration of Apps' … · Narseo Vallina-Rodriguez, IMDEA Networks / ICSI / AppCensus. Apps and Permissions • Governs access to: • Location data
Page 17: 50 Ways to Leak Your Data: An Exploration of Apps' … · Narseo Vallina-Rodriguez, IMDEA Networks / ICSI / AppCensus. Apps and Permissions • Governs access to: • Location data

Look in /proc/, Brock• /proc/ is a virtual filesystem

• Hardware information• Information on running processes• System state• Networking information (e.g., ARP table)

• /proc/net/arp is readable by any app

Page 18: 50 Ways to Leak Your Data: An Exploration of Apps' … · Narseo Vallina-Rodriguez, IMDEA Networks / ICSI / AppCensus. Apps and Permissions • Governs access to: • Location data
Page 19: 50 Ways to Leak Your Data: An Exploration of Apps' … · Narseo Vallina-Rodriguez, IMDEA Networks / ICSI / AppCensus. Apps and Permissions • Governs access to: • Location data
Page 20: 50 Ways to Leak Your Data: An Exploration of Apps' … · Narseo Vallina-Rodriguez, IMDEA Networks / ICSI / AppCensus. Apps and Permissions • Governs access to: • Location data
Page 21: 50 Ways to Leak Your Data: An Exploration of Apps' … · Narseo Vallina-Rodriguez, IMDEA Networks / ICSI / AppCensus. Apps and Permissions • Governs access to: • Location data
Page 22: 50 Ways to Leak Your Data: An Exploration of Apps' … · Narseo Vallina-Rodriguez, IMDEA Networks / ICSI / AppCensus. Apps and Permissions • Governs access to: • Location data

Ask the Router, Piotr• UPnP

• Protocol to get configuration data from WiFi routers• Peel smart remote apps use this to collect BSSID

Page 23: 50 Ways to Leak Your Data: An Exploration of Apps' … · Narseo Vallina-Rodriguez, IMDEA Networks / ICSI / AppCensus. Apps and Permissions • Governs access to: • Location data

Check the IMEI, Guy• Protected by the “Phone State and Identity” permission

• Apps that have the permission write it to the filesystem• Salmonads: /sdcard/.googlex9/.xamdecoq0962

– 6 apps (~18M installs)• Baidu: /sdcard/backups/.SystemConfig/.cuid2

– 153 apps– Samsung Health (>500M installs)– Samsung Browser (>500M installs)

Page 24: 50 Ways to Leak Your Data: An Exploration of Apps' … · Narseo Vallina-Rodriguez, IMDEA Networks / ICSI / AppCensus. Apps and Permissions • Governs access to: • Location data

Grab the MAC, Jack• Another hardware-based identifier

• Every device connected to the Internet has one

• Unity• Native C++ libraries• Outside of Android permissions system• Impact: >12,000 apps

Page 25: 50 Ways to Leak Your Data: An Exploration of Apps' … · Narseo Vallina-Rodriguez, IMDEA Networks / ICSI / AppCensus. Apps and Permissions • Governs access to: • Location data

Look at a Picture, Victor• Photos contain metadata (EXIF)

• Often contains GPS coordinates

• Shutterfly app reads geolocation from photos

Page 26: 50 Ways to Leak Your Data: An Exploration of Apps' … · Narseo Vallina-Rodriguez, IMDEA Networks / ICSI / AppCensus. Apps and Permissions • Governs access to: • Location data

Conclusions• Android permissions protect certain personal data

• Often, same data is unprotected on the filesystem

• Google gave us a bug bounty• Fixed in Android Q (fall 2020?)

Page 27: 50 Ways to Leak Your Data: An Exploration of Apps' … · Narseo Vallina-Rodriguez, IMDEA Networks / ICSI / AppCensus. Apps and Permissions • Governs access to: • Location data
Page 28: 50 Ways to Leak Your Data: An Exploration of Apps' … · Narseo Vallina-Rodriguez, IMDEA Networks / ICSI / AppCensus. Apps and Permissions • Governs access to: • Location data
Page 29: 50 Ways to Leak Your Data: An Exploration of Apps' … · Narseo Vallina-Rodriguez, IMDEA Networks / ICSI / AppCensus. Apps and Permissions • Governs access to: • Location data

Serge EgelmanU.C. Berkeley / ICSI / AppCensus, Inc.

[email protected]@v0max

Sponsors: DHS, NSF, NSA, the Rose Foundation, the E.U. Horizon 2020 Innovation Action program, the Data Transparency Lab, and the Center for Long-Term Cybersecurity at U.C. Berkeley.