ipshield: a framework for enforcing context-aware privacy · sensor subsystem in android and data...

80
Supriyo Chakraborty, Chenguang Shen, Kasturi Rangan Raghavan, Yasser Shoukry, Matt Millar, Mani Srivastava ipShield: A Framework For Enforcing Context-Aware Privacy

Upload: others

Post on 28-Sep-2020

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: ipShield: A Framework For Enforcing Context-Aware Privacy · Sensor subsystem in android and data interception 19 Third Party Apps System Server LocationManager Service Sensor Manager

Supriyo Chakraborty, Chenguang Shen, Kasturi Rangan Raghavan, Yasser Shoukry, Matt Millar, Mani Srivastava

ipShield: A Framework For EnforcingContext-Aware Privacy

Page 2: ipShield: A Framework For Enforcing Context-Aware Privacy · Sensor subsystem in android and data interception 19 Third Party Apps System Server LocationManager Service Sensor Manager

From sensor data to inferences

2

Sensor Data

Page 3: ipShield: A Framework For Enforcing Context-Aware Privacy · Sensor subsystem in android and data interception 19 Third Party Apps System Server LocationManager Service Sensor Manager

From sensor data to inferences

2

Sensor Data

Apps

Page 4: ipShield: A Framework For Enforcing Context-Aware Privacy · Sensor subsystem in android and data interception 19 Third Party Apps System Server LocationManager Service Sensor Manager

From sensor data to inferences

2

Sensor Data

Apps Inferences

mHealth

Phone operation

Utility ProvidingFitness

Lifelogging

Page 5: ipShield: A Framework For Enforcing Context-Aware Privacy · Sensor subsystem in android and data interception 19 Third Party Apps System Server LocationManager Service Sensor Manager

From sensor data to inferences

2

Sensor Data

Apps

Sensitive

LocationPassword

Media habitsPhysiological habits

Inferences

mHealth

Phone operation

Utility ProvidingFitness

Lifelogging

Page 6: ipShield: A Framework For Enforcing Context-Aware Privacy · Sensor subsystem in android and data interception 19 Third Party Apps System Server LocationManager Service Sensor Manager

Location

Media habitsPhysiological habits

Sensitive

Password

Utility Providing

mHealth

Phone operationLifelogging

From sensor data to inferences

3

Sensor Data

Apps Inferences

Fitness

Page 7: ipShield: A Framework For Enforcing Context-Aware Privacy · Sensor subsystem in android and data interception 19 Third Party Apps System Server LocationManager Service Sensor Manager

Location

Media habitsPhysiological habits

Sensitive

Password

Utility Providing

mHealth

Phone operationLifelogging

From sensor data to inferences

3

Sensor Data

Apps Inferences

Fitness

Page 8: ipShield: A Framework For Enforcing Context-Aware Privacy · Sensor subsystem in android and data interception 19 Third Party Apps System Server LocationManager Service Sensor Manager

Location

Media habitsPhysiological habits

Sensitive

Password

Utility Providing

mHealth

Phone operationLifelogging

From sensor data to inferences

3

Sensor Data

Apps Inferences

Fitness

Page 9: ipShield: A Framework For Enforcing Context-Aware Privacy · Sensor subsystem in android and data interception 19 Third Party Apps System Server LocationManager Service Sensor Manager

Location

Media habitsPhysiological habits

Sensitive

Password

Utility Providing

mHealth

Phone operationLifelogging

From sensor data to inferences

3

Sensor Data

Apps Inferences

Fitness

Page 10: ipShield: A Framework For Enforcing Context-Aware Privacy · Sensor subsystem in android and data interception 19 Third Party Apps System Server LocationManager Service Sensor Manager

Protecting inference privacy while providing utility

4

Sensor Data

Apps

Sensitive

LocationPassword

Media habitsPhysiological habits

Inferences

mHealth

Phone operation

Utility ProvidingFitness

Lifelogging Whi

telis

tBl

ackl

ist

Page 11: ipShield: A Framework For Enforcing Context-Aware Privacy · Sensor subsystem in android and data interception 19 Third Party Apps System Server LocationManager Service Sensor Manager

Protecting inference privacy while providing utility

4

Sensor Data

Apps

Sensitive

LocationPassword

Media habitsPhysiological habits

Inferences

mHealth

Phone operation

Utility ProvidingFitness

Lifelogging

Inference firewall

Whi

telis

tBl

ackl

ist

Page 12: ipShield: A Framework For Enforcing Context-Aware Privacy · Sensor subsystem in android and data interception 19 Third Party Apps System Server LocationManager Service Sensor Manager

Protecting inference privacy while providing utility

4

Sensor Data

Apps

Sensitive

LocationPassword

Media habitsPhysiological habits

Inferences

mHealth

Phone operation

Utility ProvidingFitness

Lifelogging

Inference firewall ✖

Whi

telis

tBl

ackl

ist

Page 13: ipShield: A Framework For Enforcing Context-Aware Privacy · Sensor subsystem in android and data interception 19 Third Party Apps System Server LocationManager Service Sensor Manager

Prior notions of privacy in databases

5

Sensor DataCapture

Sensor DataCapture

Sensor DataCapture

Data Processing

Data Processing

Data Processing

Population Scale Database

D := {P = personal identifiers, (name, ID)Q = quasi identifiers, (age, zip code)V = measurement values (sensor data)}

Page 14: ipShield: A Framework For Enforcing Context-Aware Privacy · Sensor subsystem in android and data interception 19 Third Party Apps System Server LocationManager Service Sensor Manager

Prior notions of privacy in databases

5

Sensor DataCapture

Sensor DataCapture

Sensor DataCapture

Data Processing

Data Processing

Data Processing

InformationRecipient

1. K-anonymity2. L-Diversity3. t-closeness

Population Scale Database

Privacy

M=<P’,Q’,V

>

inference = identity

D := {P = personal identifiers, (name, ID)Q = quasi identifiers, (age, zip code)V = measurement values (sensor data)}

Page 15: ipShield: A Framework For Enforcing Context-Aware Privacy · Sensor subsystem in android and data interception 19 Third Party Apps System Server LocationManager Service Sensor Manager

Prior notions of privacy in databases

5

Sensor DataCapture

Sensor DataCapture

Sensor DataCapture

Data Processing

Data Processing

Data Processing

InformationRecipient

1. K-anonymity2. L-Diversity3. t-closeness

InformationRecipient

Differential Privacy

Population Scale Database

Privacy

M=<P’,Q’,V

>

Privacy

M=R(<P,Q,V>)+noise

inference = identity

inference = membershipD := {P = personal identifiers, (name, ID)Q = quasi identifiers, (age, zip code)V = measurement values (sensor data)}

Page 16: ipShield: A Framework For Enforcing Context-Aware Privacy · Sensor subsystem in android and data interception 19 Third Party Apps System Server LocationManager Service Sensor Manager

Prior notions of privacy in databases

6

Sensor DataCapture

Sensor DataCapture

Data Processing

Data Processing

InformationRecipient

InformationRecipient

Aggregate Queries

Sharing anIndividual’s data

M:=<P, Q, V’>

Page 17: ipShield: A Framework For Enforcing Context-Aware Privacy · Sensor subsystem in android and data interception 19 Third Party Apps System Server LocationManager Service Sensor Manager

Prior notions of privacy in databases

6

Sensor DataCapture

Sensor DataCapture

Data Processing

Data Processing

InformationRecipient

InformationRecipient

Aggregate Queries

Sharing anIndividual’s data

Privacy of Data(secrecy)

Privacy of Identity(anonymity)

Traditional

Privacy of Behavior

M:=<P, Q, V’>

Page 18: ipShield: A Framework For Enforcing Context-Aware Privacy · Sensor subsystem in android and data interception 19 Third Party Apps System Server LocationManager Service Sensor Manager

7

Controls provided by current systems are insufficientAndroid Manifest

Binary Policies

Page 19: ipShield: A Framework For Enforcing Context-Aware Privacy · Sensor subsystem in android and data interception 19 Third Party Apps System Server LocationManager Service Sensor Manager

7

Controls provided by current systems are insufficientpDroid

Static Policies

Page 20: ipShield: A Framework For Enforcing Context-Aware Privacy · Sensor subsystem in android and data interception 19 Third Party Apps System Server LocationManager Service Sensor Manager

7

Controls provided by current systems are insufficientProtectMyPrivacy

Share Random Data

Page 21: ipShield: A Framework For Enforcing Context-Aware Privacy · Sensor subsystem in android and data interception 19 Third Party Apps System Server LocationManager Service Sensor Manager

Design requirements of ipShield

8Protected

APIs

Unre

stric

ted

Acce

ss

Page 22: ipShield: A Framework For Enforcing Context-Aware Privacy · Sensor subsystem in android and data interception 19 Third Party Apps System Server LocationManager Service Sensor Manager

Design requirements of ipShield

8

Sensor Monitoring

Protected

APIs

Unre

stric

ted

Acce

ss

Combination of benign sensors can be used for privacy attack

Page 23: ipShield: A Framework For Enforcing Context-Aware Privacy · Sensor subsystem in android and data interception 19 Third Party Apps System Server LocationManager Service Sensor Manager

Design requirements of ipShield

9

Sensor Monitoring

GPS

Network

Accelerometer

Microphone

Light

Page 24: ipShield: A Framework For Enforcing Context-Aware Privacy · Sensor subsystem in android and data interception 19 Third Party Apps System Server LocationManager Service Sensor Manager

Design requirements of ipShield

9

Sensor Monitoring

GPS

Network

Accelerometer

Microphone

Light

Location

Transportation Mode

Password/PIN

Stress

Media Watching

Privacy Abstraction

Page 25: ipShield: A Framework For Enforcing Context-Aware Privacy · Sensor subsystem in android and data interception 19 Third Party Apps System Server LocationManager Service Sensor Manager

Design requirements of ipShield

10

Sensor Monitoring

Privacy Abstraction

TranslationAlgorithms

Privacy Rules on Sensors

Whitelist/Blacklist

User Privacy Preferences

Rule Enforcement

Page 26: ipShield: A Framework For Enforcing Context-Aware Privacy · Sensor subsystem in android and data interception 19 Third Party Apps System Server LocationManager Service Sensor Manager

Design requirements of ipShield

10

Sensor Monitoring

Privacy Abstraction

TranslationAlgorithms

Privacy Rules on Sensors

Whitelist/Blacklist

User Privacy Preferences

Rule Enforcement

Rule Recommender

Page 27: ipShield: A Framework For Enforcing Context-Aware Privacy · Sensor subsystem in android and data interception 19 Third Party Apps System Server LocationManager Service Sensor Manager

Design requirements of ipShield

10

Sensor Monitoring

Privacy Abstraction

TranslationAlgorithms

Privacy Rules on Sensors

Whitelist/Blacklist

User Privacy Preferences

Rule Enforcement

Rule Recommender

Manual Override (Rules)

Page 28: ipShield: A Framework For Enforcing Context-Aware Privacy · Sensor subsystem in android and data interception 19 Third Party Apps System Server LocationManager Service Sensor Manager

Design requirements of ipShield

10

Sensor Monitoring

Privacy Abstraction

TranslationAlgorithms

Privacy Rules on Sensors

Whitelist/Blacklist

User Privacy Preferences

Rule Enforcement

Rule Recommender

Manual Override (Rules)

Rule Enforcement

ipSh

ield

Page 29: ipShield: A Framework For Enforcing Context-Aware Privacy · Sensor subsystem in android and data interception 19 Third Party Apps System Server LocationManager Service Sensor Manager

Rule Recommender

Whitelist/Blacklist

Privacy rules on sensors

Page 30: ipShield: A Framework For Enforcing Context-Aware Privacy · Sensor subsystem in android and data interception 19 Third Party Apps System Server LocationManager Service Sensor Manager

Recommender objective

12

Generate a plan for context-aware obfuscation of sensor data

depending on the prioritized whitelist and blacklist

such that accuracy of whitelist is maximized and accuracy of blacklist is minimized.

Page 31: ipShield: A Framework For Enforcing Context-Aware Privacy · Sensor subsystem in android and data interception 19 Third Party Apps System Server LocationManager Service Sensor Manager

Divide-and-conquer strategy

13

Recommend a plan containing allow/deny rules for sensors

depending on the prioritized whitelist and blacklist

such that accuracy of whitelist is maximized and accuracy of blacklist is minimized.

Page 32: ipShield: A Framework For Enforcing Context-Aware Privacy · Sensor subsystem in android and data interception 19 Third Party Apps System Server LocationManager Service Sensor Manager

+

Divide-and-conquer strategy

13

Recommend a plan containing allow/deny rules for sensors

depending on the prioritized whitelist and blacklist

such that accuracy of whitelist is maximized and accuracy of blacklist is minimized.

Support manual override/configuration of fine-grained context-aware rules

Page 33: ipShield: A Framework For Enforcing Context-Aware Privacy · Sensor subsystem in android and data interception 19 Third Party Apps System Server LocationManager Service Sensor Manager

Elements of the problem: accuracy

14

Page 34: ipShield: A Framework For Enforcing Context-Aware Privacy · Sensor subsystem in android and data interception 19 Third Party Apps System Server LocationManager Service Sensor Manager

Activity Location OnScreen Taps

GPS+Acc+Gyro 95% 97% 80%

GPS+WiFi 83.1% 97% 0%

GPS+GSM 81.7% 98.2% 0%

GSM+WiFi 72.9% 94.03% 0%

Elements of the problem: accuracy

14

Infe

renc

e D

atab

ase

(A)

Page 35: ipShield: A Framework For Enforcing Context-Aware Privacy · Sensor subsystem in android and data interception 19 Third Party Apps System Server LocationManager Service Sensor Manager

Activity Location OnScreen Taps

GPS+Acc+Gyro 95% 97% 80%

GPS+WiFi 83.1% 97% 0%

GPS+GSM 81.7% 98.2% 0%

GSM+WiFi 72.9% 94.03% 0%

Elements of the problem: accuracy

14

SensorCombination

Infe

renc

e D

atab

ase

(A)

Page 36: ipShield: A Framework For Enforcing Context-Aware Privacy · Sensor subsystem in android and data interception 19 Third Party Apps System Server LocationManager Service Sensor Manager

Activity Location OnScreen Taps

GPS+Acc+Gyro 95% 97% 80%

GPS+WiFi 83.1% 97% 0%

GPS+GSM 81.7% 98.2% 0%

GSM+WiFi 72.9% 94.03% 0%

Elements of the problem: accuracy

14

SensorCombination

InferenceType

Infe

renc

e D

atab

ase

(A)

Page 37: ipShield: A Framework For Enforcing Context-Aware Privacy · Sensor subsystem in android and data interception 19 Third Party Apps System Server LocationManager Service Sensor Manager

Activity Location OnScreen Taps

GPS+Acc+Gyro 95% 97% 80%

GPS+WiFi 83.1% 97% 0%

GPS+GSM 81.7% 98.2% 0%

GSM+WiFi 72.9% 94.03% 0%

Elements of the problem: accuracy

14

SensorCombination

InferenceType

Accuracy of Prediction

Infe

renc

e D

atab

ase

(A)

Page 38: ipShield: A Framework For Enforcing Context-Aware Privacy · Sensor subsystem in android and data interception 19 Third Party Apps System Server LocationManager Service Sensor Manager

Elements of the problem: priority

15

Priority = (pactivity

, p

location

, p

tap

)

↓ ↓ ↓{10, 4, 10}priority = Prio

rity

(p)

Page 39: ipShield: A Framework For Enforcing Context-Aware Privacy · Sensor subsystem in android and data interception 19 Third Party Apps System Server LocationManager Service Sensor Manager

Elements of the problem: priority

15

Priority = (pactivity

, p

location

, p

tap

)

↓ ↓ ↓{10, 4, 10}priority = Prio

rity

(p)

priorityWhitelisted inferences

↑ ⇒ allow whitelisted inferences

Blacklisted inferencespriority↑ ⇒ block blacklisted inferences

Page 40: ipShield: A Framework For Enforcing Context-Aware Privacy · Sensor subsystem in android and data interception 19 Third Party Apps System Server LocationManager Service Sensor Manager

max

�22N

X

l2WA(�, l)2pl �

X

l2BA(�, l)2pl

s.t.X

l2B,pl

=pmax

A( , l) = 0

� = Sensor combination

W = whitelist, B = blacklist, pl = priority, and

Rule recommender in ipShield

16

Page 41: ipShield: A Framework For Enforcing Context-Aware Privacy · Sensor subsystem in android and data interception 19 Third Party Apps System Server LocationManager Service Sensor Manager

max

�22N

X

l2WA(�, l)2pl �

X

l2BA(�, l)2pl

s.t.X

l2B,pl

=pmax

A( , l) = 0

⇓� = Sensor combination

W = whitelist, B = blacklist, pl = priority, and

Rule recommender in ipShield

16

Over all sensor combinations

Page 42: ipShield: A Framework For Enforcing Context-Aware Privacy · Sensor subsystem in android and data interception 19 Third Party Apps System Server LocationManager Service Sensor Manager

max

�22N

X

l2WA(�, l)2pl �

X

l2BA(�, l)2pl

s.t.X

l2B,pl

=pmax

A( , l) = 0

⇓� = Sensor combination

W = whitelist, B = blacklist, pl = priority, and

Rule recommender in ipShield

16

Over all sensor combinations maximize accuracy of prioritized whitelist and

Page 43: ipShield: A Framework For Enforcing Context-Aware Privacy · Sensor subsystem in android and data interception 19 Third Party Apps System Server LocationManager Service Sensor Manager

max

�22N

X

l2WA(�, l)2pl �

X

l2BA(�, l)2pl

s.t.X

l2B,pl

=pmax

A( , l) = 0

⇓� = Sensor combination

W = whitelist, B = blacklist, pl = priority, and

Rule recommender in ipShield

16

Over all sensor combinations maximize accuracy of prioritized whitelist and minimize accuracy of prioritized blacklist

Page 44: ipShield: A Framework For Enforcing Context-Aware Privacy · Sensor subsystem in android and data interception 19 Third Party Apps System Server LocationManager Service Sensor Manager

max

�22N

X

l2WA(�, l)2pl �

X

l2BA(�, l)2pl

s.t.X

l2B,pl

=pmax

A( , l) = 0

⇓� = Sensor combination

W = whitelist, B = blacklist, pl = priority, and

Rule recommender in ipShield

16

Over all sensor combinations maximize accuracy of prioritized whitelist and minimize accuracy of prioritized blacklist

such that highest priority blacklists are always blocked.

Page 45: ipShield: A Framework For Enforcing Context-Aware Privacy · Sensor subsystem in android and data interception 19 Third Party Apps System Server LocationManager Service Sensor Manager

Rule recommender at work

17

Activity Location OnScreen Taps

GPS+Acc+Gyro 95% 97% 80%

GPS+WiFi 83.1% 97% 0%

GPS+GSM 81.7% 98.2% 0%

GSM+WiFi 72.9% 94.03% 0%

Page 46: ipShield: A Framework For Enforcing Context-Aware Privacy · Sensor subsystem in android and data interception 19 Third Party Apps System Server LocationManager Service Sensor Manager

Rule recommender at work

17

Activity Location OnScreen Taps

GPS+Acc+Gyro 95% 97% 80%

GPS+WiFi 83.1% 97% 0%

GPS+GSM 81.7% 98.2% 0%

GSM+WiFi 72.9% 94.03% 0%

Page 47: ipShield: A Framework For Enforcing Context-Aware Privacy · Sensor subsystem in android and data interception 19 Third Party Apps System Server LocationManager Service Sensor Manager

Rule recommender at work

17

Priority1{10, 4, 10}

0

835.4

820.0

731.45

Activity Location OnScreen Taps

GPS+Acc+Gyro 95% 97% 80%

GPS+WiFi 83.1% 97% 0%

GPS+GSM 81.7% 98.2% 0%

GSM+WiFi 72.9% 94.03% 0%

Page 48: ipShield: A Framework For Enforcing Context-Aware Privacy · Sensor subsystem in android and data interception 19 Third Party Apps System Server LocationManager Service Sensor Manager

Rule recommender at work

17

Priority1{10, 4, 10}

0

835.4

820.0

731.45

Allow

Activity Location OnScreen Taps

GPS+Acc+Gyro 95% 97% 80%

GPS+WiFi 83.1% 97% 0%

GPS+GSM 81.7% 98.2% 0%

GSM+WiFi 72.9% 94.03% 0%

Page 49: ipShield: A Framework For Enforcing Context-Aware Privacy · Sensor subsystem in android and data interception 19 Third Party Apps System Server LocationManager Service Sensor Manager

ipShield

Monitoring

Privacy Abstraction

Rule Recommender

Fine-grained Rules

Enforcement

Prototype implementation on Android

Page 50: ipShield: A Framework For Enforcing Context-Aware Privacy · Sensor subsystem in android and data interception 19 Third Party Apps System Server LocationManager Service Sensor Manager

Sensor subsystem in android and data interception

19

Third Party Apps

System Server

LocationManagerService

Sensor Manager

Location Manager

Sensor DataSensor Data

Hardware

Android Native/Linux Kernel

System Processes User Processes

Android Framework

SensorService

Page 51: ipShield: A Framework For Enforcing Context-Aware Privacy · Sensor subsystem in android and data interception 19 Third Party Apps System Server LocationManager Service Sensor Manager

Sensor subsystem in android and data interception

19

Third Party Apps

System Server

LocationManagerService

Sensor Manager

Location Manager

Sensor DataSensor Data

Hardware

Android Native/Linux Kernel

System Processes User Processes

Android Framework

SensorService

Page 52: ipShield: A Framework For Enforcing Context-Aware Privacy · Sensor subsystem in android and data interception 19 Third Party Apps System Server LocationManager Service Sensor Manager

Sensor subsystem in android and data interception

19

Third Party Apps

System Server

LocationManagerService

Sensor Manager

Location Manager

Sensor DataSensor Data

Hardware

Android Native/Linux Kernel

System Processes User Processes

Android Framework

SensorService

Page 53: ipShield: A Framework For Enforcing Context-Aware Privacy · Sensor subsystem in android and data interception 19 Third Party Apps System Server LocationManager Service Sensor Manager

Sensor subsystem in android and data interception

19

Third Party Apps

System Server

LocationManagerService

Sensor Manager

Location Manager

Sensor DataSensor Data

Hardware

Android Native/Linux Kernel

System Processes User Processes

Android Framework

SensorService

Page 54: ipShield: A Framework For Enforcing Context-Aware Privacy · Sensor subsystem in android and data interception 19 Third Party Apps System Server LocationManager Service Sensor Manager

Sensor subsystem in android and data interception

19

Third Party Apps

System Server

LocationManagerService

Sensor Manager

Location Manager

Sensor DataSensor Data

Hardware

Android Native/Linux Kernel

System Processes User Processes

Android Framework

}App and Managers run as part of the same process

SensorService

Page 55: ipShield: A Framework For Enforcing Context-Aware Privacy · Sensor subsystem in android and data interception 19 Third Party Apps System Server LocationManager Service Sensor Manager

Sensor subsystem in android and data interception

19

Third Party Apps

System Server

LocationManagerService

Sensor Manager

Location Manager

Sensor DataSensor Data

Hardware

Android Native/Linux Kernel

System Processes User Processes

Android Framework

}App and Managers run as part of the same process

} Services run in separatesystem owned processes

SensorService

Page 56: ipShield: A Framework For Enforcing Context-Aware Privacy · Sensor subsystem in android and data interception 19 Third Party Apps System Server LocationManager Service Sensor Manager

Implementing ipShield

20

Sensor Manager

Location Manager

Hardware

Native Runtime

System Processes User Processes

Trusted App part of ipShield

Trusted App (User Process)

Whitelist and Blacklist of inference ipShield

Monitoring

Privacy Abstraction

Rule Recommender

Fine-grained Rules

Enforcement

LocationManagerService

SensorService

System Server

Page 57: ipShield: A Framework For Enforcing Context-Aware Privacy · Sensor subsystem in android and data interception 19 Third Party Apps System Server LocationManager Service Sensor Manager

Implementing ipShield

20

Sensor Manager

Location Manager

Hardware

Native Runtime

System Processes User Processes

Trusted App part of ipShield

Semantic Firewall Configurator

FirewallConfigManager

FirewallConfigService

Trusted App (User Process)

Whitelist and Blacklist of inference ipShield

Monitoring

Privacy Abstraction

Rule Recommender

Fine-grained Rules

Enforcement

LocationManagerService

SensorService

System Server

Page 58: ipShield: A Framework For Enforcing Context-Aware Privacy · Sensor subsystem in android and data interception 19 Third Party Apps System Server LocationManager Service Sensor Manager

Implementing ipShield

20

Sensor Manager

Location Manager

Hardware

Native Runtime

System Processes User Processes

Trusted App part of ipShield

Semantic Firewall Configurator

FirewallConfigManager

FirewallConfigService

Trusted App (User Process)

Whitelist and Blacklist of inference ipShield

Monitoring

Privacy Abstraction

Rule Recommender

Fine-grained Rules

Enforcement

LocationManagerService

SensorService

System Server

InferenceDatabase

Page 59: ipShield: A Framework For Enforcing Context-Aware Privacy · Sensor subsystem in android and data interception 19 Third Party Apps System Server LocationManager Service Sensor Manager

Implementing ipShield

20

Sensor Manager

Location Manager

Hardware

Native Runtime

System Processes User Processes

Trusted App part of ipShield

Semantic Firewall Configurator

FirewallConfigManager

FirewallConfigService

Trusted App (User Process)

Whitelist and Blacklist of inference

RuleRecommender

ipShield

Monitoring

Privacy Abstraction

Rule Recommender

Fine-grained Rules

Enforcement

LocationManagerService

SensorService

System Server

InferenceDatabase

Page 60: ipShield: A Framework For Enforcing Context-Aware Privacy · Sensor subsystem in android and data interception 19 Third Party Apps System Server LocationManager Service Sensor Manager

Implementing ipShield

20

Sensor Manager

Location Manager

Hardware

Native Runtime

System Processes User Processes

Trusted App part of ipShield

Semantic Firewall Configurator

FirewallConfigManager

FirewallConfigService

Trusted App (User Process)

Whitelist and Blacklist of inference

ContextEngine Rule

Recommender

DirectConfigurator

ipShield

Monitoring

Privacy Abstraction

Rule Recommender

Fine-grained Rules

Enforcement

LocationManagerService

SensorService

System Server

InferenceDatabase

Page 61: ipShield: A Framework For Enforcing Context-Aware Privacy · Sensor subsystem in android and data interception 19 Third Party Apps System Server LocationManager Service Sensor Manager

Implementing ipShield

20

Sensor Manager

Location Manager

Hardware

Native Runtime

System Processes User Processes

Trusted App part of ipShield

Semantic Firewall Configurator

FirewallConfigManager

FirewallConfigService

Trusted App (User Process)

Whitelist and Blacklist of inference

ContextEngine Rule

Recommender

DirectConfigurator

ipShield

Monitoring

Privacy Abstraction

Rule Recommender

Fine-grained Rules

Enforcement

LocationManagerService

SensorService

System ServerObfuscatorObfuscator

InferenceDatabase

Page 62: ipShield: A Framework For Enforcing Context-Aware Privacy · Sensor subsystem in android and data interception 19 Third Party Apps System Server LocationManager Service Sensor Manager

User interaction with ipShield

21

ipShield

Monitoring

Privacy Abstraction

Rule Recommender

Fine-grained Rules

Page 63: ipShield: A Framework For Enforcing Context-Aware Privacy · Sensor subsystem in android and data interception 19 Third Party Apps System Server LocationManager Service Sensor Manager

User interaction with ipShield

21

ipShield

Monitoring

Privacy Abstraction

Rule Recommender

Fine-grained Rules

Page 64: ipShield: A Framework For Enforcing Context-Aware Privacy · Sensor subsystem in android and data interception 19 Third Party Apps System Server LocationManager Service Sensor Manager

User interaction with ipShield

21

ipShield

Monitoring

Privacy Abstraction

Rule Recommender

Fine-grained RulesSuppress

Page 65: ipShield: A Framework For Enforcing Context-Aware Privacy · Sensor subsystem in android and data interception 19 Third Party Apps System Server LocationManager Service Sensor Manager

User interaction with ipShield

21

ipShield

Monitoring

Privacy Abstraction

Rule Recommender

Fine-grained Rules

Page 66: ipShield: A Framework For Enforcing Context-Aware Privacy · Sensor subsystem in android and data interception 19 Third Party Apps System Server LocationManager Service Sensor Manager

Feasibility of running ipShield on mobile platforms

22

0

0.015

0.03

0.045

0.06

1 50 100 150 200

Tim

e (in

sec

s)

# rules

time to load rules into memorytime for the rules to take effect

Page 67: ipShield: A Framework For Enforcing Context-Aware Privacy · Sensor subsystem in android and data interception 19 Third Party Apps System Server LocationManager Service Sensor Manager

Feasibility of running ipShield on mobile platforms

22

0

0.015

0.03

0.045

0.06

1 50 100 150 200

Tim

e (in

sec

s)

# rules

time to load rules into memorytime for the rules to take effect

0.1SENSOR_DELAY_NORMAL, SENSOR_DELAY_UI

Page 68: ipShield: A Framework For Enforcing Context-Aware Privacy · Sensor subsystem in android and data interception 19 Third Party Apps System Server LocationManager Service Sensor Manager

Feasibility of running ipShield on mobile platforms

22

0

0.015

0.03

0.045

0.06

1 50 100 150 200

Tim

e (in

sec

s)

# rules

time to load rules into memorytime for the rules to take effect

0.1SENSOR_DELAY_NORMAL, SENSOR_DELAY_UI

0.02

SENSOR_DELAY_GAME

Page 69: ipShield: A Framework For Enforcing Context-Aware Privacy · Sensor subsystem in android and data interception 19 Third Party Apps System Server LocationManager Service Sensor Manager

Feasibility of running ipShield on mobile platforms

22

0

0.015

0.03

0.045

0.06

1 50 100 150 200

Tim

e (in

sec

s)

# rules

time to load rules into memorytime for the rules to take effect

0.1SENSOR_DELAY_NORMAL, SENSOR_DELAY_UI

0.02

SENSOR_DELAY_GAME

0.006

SENSOR_DELAY_FASTEST

Page 70: ipShield: A Framework For Enforcing Context-Aware Privacy · Sensor subsystem in android and data interception 19 Third Party Apps System Server LocationManager Service Sensor Manager

Feasibility of running ipShield on mobile platforms

23

26.2

26.325

26.45

26.575

26.7

AOSP Passthrough Constant Perturb Suppress

Mem

ory

(in M

B)

Page 71: ipShield: A Framework For Enforcing Context-Aware Privacy · Sensor subsystem in android and data interception 19 Third Party Apps System Server LocationManager Service Sensor Manager

Feasibility of running ipShield on mobile platforms

23

26.2

26.325

26.45

26.575

26.7

AOSP Passthrough Constant Perturb Suppress

Mem

ory

(in M

B)

Page 72: ipShield: A Framework For Enforcing Context-Aware Privacy · Sensor subsystem in android and data interception 19 Third Party Apps System Server LocationManager Service Sensor Manager

Concluding Remarks

•We designed and implemented ipShield which- proposes the use of inferences as the currency for privacy and utility

specification.- advocates that the burden of configuring fine-grained privacy rules

should be shifted from the user to the system.- provides insight into how and what data is being used by apps and better

visibility into potential risks and consequences of sharing data.

• Going forward we want to...- develop the rule recommender to generate rules for obfuscating data.- augment ipShield with ability to perform static analysis of app code to

better understand the risks presented by the apps.- allow crowd-sourcing for bootstrapping of rules.

ipShield can be downloaded at http://tinyurl.com/ipshieldgit

24

Page 73: ipShield: A Framework For Enforcing Context-Aware Privacy · Sensor subsystem in android and data interception 19 Third Party Apps System Server LocationManager Service Sensor Manager

25

Thank You

Page 74: ipShield: A Framework For Enforcing Context-Aware Privacy · Sensor subsystem in android and data interception 19 Third Party Apps System Server LocationManager Service Sensor Manager

Rules supported

26

Contexts Action

Built-In External

TimeOfDay

Place

SensorType

AppName

DayOfWeek

Rule

Walking Running ...

Suppress Perturb Play-back

DistributionName

DistributionParam

SensorSource

Constant

Scalar Vector

SensorType

Normal

SensorSource

ipShield

Monitoring

Privacy Abstraction

Rule Recommender

Fine-grained Rules

Enforcement

Page 75: ipShield: A Framework For Enforcing Context-Aware Privacy · Sensor subsystem in android and data interception 19 Third Party Apps System Server LocationManager Service Sensor Manager

Rules supported

26

Contexts Action

Built-In External

TimeOfDay

Place

SensorType

AppName

DayOfWeek

Rule

Walking Running ...

Suppress Perturb Play-back

DistributionName

DistributionParam

SensorSource

Constant

Scalar Vector

SensorType

Normal

SensorSource

ipShield

Monitoring

Privacy Abstraction

Rule Recommender

Fine-grained Rules

Enforcement

Page 76: ipShield: A Framework For Enforcing Context-Aware Privacy · Sensor subsystem in android and data interception 19 Third Party Apps System Server LocationManager Service Sensor Manager

Rules supported

26

Contexts Action

Built-In External

TimeOfDay

Place

SensorType

AppName

DayOfWeek

Rule

Walking Running ...

Suppress Perturb Play-back

DistributionName

DistributionParam

SensorSource

Constant

Scalar Vector

SensorType

Normal

SensorSource

ipShield

Monitoring

Privacy Abstraction

Rule Recommender

Fine-grained Rules

Enforcement

Page 77: ipShield: A Framework For Enforcing Context-Aware Privacy · Sensor subsystem in android and data interception 19 Third Party Apps System Server LocationManager Service Sensor Manager

Rules supported

26

Contexts Action

Built-In External

TimeOfDay

Place

SensorType

AppName

DayOfWeek

Rule

Walking Running ...

Suppress Perturb Play-back

DistributionName

DistributionParam

SensorSource

Constant

Scalar Vector

SensorType

Normal

SensorSource

ipShield

Monitoring

Privacy Abstraction

Rule Recommender

Fine-grained Rules

Enforcement

Page 78: ipShield: A Framework For Enforcing Context-Aware Privacy · Sensor subsystem in android and data interception 19 Third Party Apps System Server LocationManager Service Sensor Manager

Rules supported

26

Rule: If ((TimeOfDay in [12am-11:59pm]) and (Place=Bar) and (AppName=Saga) then apply action = Constant and Value = Restaurant on SensorType = GPS;

Contexts Action

Built-In External

TimeOfDay

Place

SensorType

AppName

DayOfWeek

Rule

Walking Running ...

Suppress Perturb Play-back

DistributionName

DistributionParam

SensorSource

Constant

Scalar Vector

SensorType

Normal

SensorSource

Classroom

My Home

Friend’sHome

StarbucksBar

Restaurant

Actual traceSpoofed trace

My Home

Friend’sHome

Classroom

Bar

ipShield

Monitoring

Privacy Abstraction

Rule Recommender

Fine-grained Rules

Enforcement

Page 79: ipShield: A Framework For Enforcing Context-Aware Privacy · Sensor subsystem in android and data interception 19 Third Party Apps System Server LocationManager Service Sensor Manager

Sensor usage for apps

27

0

12.5

25

37.5

50

1 2 3 4 5 6

% o

f app

s

# sensors

Page 80: ipShield: A Framework For Enforcing Context-Aware Privacy · Sensor subsystem in android and data interception 19 Third Party Apps System Server LocationManager Service Sensor Manager

Distribution of sensors by type

28

Accelerometer

GPS

Microphone

WiFi

Soft Sensors

Bluetooth

Gyroscope

Cellular

Camera

Others

0 5 10 15 20

% of apps