a case for enforcing app-specific constraints to mobile ......more motivating examples 3 nuno santos...

14
University of Lisbon A Case for Enforcing App-Specific Constraints to Mobile Devices by Using Trust Leases Nuno Santos Nuno O. Duarte, Miguel B. Costa, and Paulo Ferreira HotOS’15

Upload: others

Post on 21-Sep-2020

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: A Case for Enforcing App-Specific Constraints to Mobile ......More Motivating Examples 3 Nuno Santos ! In business meetings, prevent info leaks by spyware ! Need to block untrusted

University of Lisbon

A Case for Enforcing App-Specific Constraints to Mobile Devices by

Using Trust Leases

Nuno Santos Nuno O. Duarte, Miguel B. Costa, and Paulo Ferreira

HotOS’15

Page 2: A Case for Enforcing App-Specific Constraints to Mobile ......More Motivating Examples 3 Nuno Santos ! In business meetings, prevent info leaks by spyware ! Need to block untrusted

Sometimes, Your Mobile Must Be Restricted

Nuno Santos 2

}  Example: in movie theaters, people forget to turn off phones

Page 3: A Case for Enforcing App-Specific Constraints to Mobile ......More Motivating Examples 3 Nuno Santos ! In business meetings, prevent info leaks by spyware ! Need to block untrusted

More Motivating Examples

Nuno Santos 3

}  In business meetings, prevent info leaks by spyware }  Need to block untrusted apps in background

}  Improve security of photo sharing apps (e.g., Snapchat) }  Need to prevent taking screenshots

}  Allow students to fill out exams on their devices }  Need to ensure that students don’t cheat

Page 4: A Case for Enforcing App-Specific Constraints to Mobile ......More Motivating Examples 3 Nuno Santos ! In business meetings, prevent info leaks by spyware ! Need to block untrusted

Typical Mobile Security Architecture

Nuno Santos 4

}  Hard to constrain the functionality of device

}  Users can: }  Install apps }  Execute apps }  Grant permissions }  Configure system

Android

App App System Service

Mobile HW Platform

Page 5: A Case for Enforcing App-Specific Constraints to Mobile ......More Motivating Examples 3 Nuno Santos ! In business meetings, prevent info leaks by spyware ! Need to block untrusted

Our Wish List

Nuno Santos 5

}  Enable apps to globally restrict access to resources

}  Find a sweet spot between user / app control

}  Able to give to third-parties guarantees of enforcement

Page 6: A Case for Enforcing App-Specific Constraints to Mobile ......More Motivating Examples 3 Nuno Santos ! In business meetings, prevent info leaks by spyware ! Need to block untrusted

Trust Lease

Nuno Santos 6

}  Novel OS primitive to let apps restrict device functionality

Android

Strapp App System Service

Mobile HW Platform

Trust Lease (e.g., “ block INTERNET ”)

Strapp: app that requests a trust lease

Page 7: A Case for Enforcing App-Specific Constraints to Mobile ......More Motivating Examples 3 Nuno Santos ! In business meetings, prevent info leaks by spyware ! Need to block untrusted

Trust Lease: Contract between Strapp and User

Nuno Santos 7

Trust Lease Spec

⇒ Restrictions

⇒ Stop conditions

Unrestricted Unrestricted Restricted

1. Strapp requests trust lease

2. User approves request

3. Trust lease stop

Time

Device Operation Mode

Page 8: A Case for Enforcing App-Specific Constraints to Mobile ......More Motivating Examples 3 Nuno Santos ! In business meetings, prevent info leaks by spyware ! Need to block untrusted

Trust Lease: Restrictions and Stop Conditions

Nuno Santos 8

}  Restrictions: }  Access to resources (e.g., network, camera, etc.) }  Changes to system configurations (e.g., enable the sound) }  Execution of applications

}  Stop conditions: }  Timeout }  Voluntary termination }  Others triggered by environment events (e.g., location based)

Page 9: A Case for Enforcing App-Specific Constraints to Mobile ......More Motivating Examples 3 Nuno Santos ! In business meetings, prevent info leaks by spyware ! Need to block untrusted

Strapp App

Trust Lease: Remotely Check Lease Enforcement

Nuno Santos 9

}  Remote attestation }  Leverage trusted computing HW (e.g., TrustZone, TPM) }  Platform has strong identity and secure boot capabilities }  Assume that the OS is correct

Android

Trusted HW

Sign(m, khw), Cert(Khw)HwManuf

m = {h(OS), n, RMODE, LeaseInfo}

n

secure channel (e.g., SSL)

h(OS), khw

Attestor

Page 10: A Case for Enforcing App-Specific Constraints to Mobile ......More Motivating Examples 3 Nuno Santos ! In business meetings, prevent info leaks by spyware ! Need to block untrusted

Use Case 1: Auto Phone Mute in Movie Theaters

Nuno Santos 10

}  eTicketing strapp that handles cinema tickets

}  Upon ingress, a trust lease is issued to mute the device

}  Stop condition: timeout = movie duration or exiting event

}  Device is attested when validating the tickets

Page 11: A Case for Enforcing App-Specific Constraints to Mobile ......More Motivating Examples 3 Nuno Santos ! In business meetings, prevent info leaks by spyware ! Need to block untrusted

Use Case 2: Private Mode in Business Meetings

Nuno Santos 11

}  eMeeting strapp to prevent info leaks (e.g., by malware)

}  Trust lease to kill all but a few trusted apps (e.g., email, calendar)

}  Trust lease finishes after timeout or coordination event

}  Meeting leader attests everyone’s devices before the meeting starts

Page 12: A Case for Enforcing App-Specific Constraints to Mobile ......More Motivating Examples 3 Nuno Santos ! In business meetings, prevent info leaks by spyware ! Need to block untrusted

Use Case 3: Exams on Students’ Mobile Devices

Nuno Santos 12

}  eExam strapp to let students fill out exams on their mobiles w/o cheating }  A trust lease blocks the device to run the eExam strapp only

}  Trust lease active for the exam duration, or until exam submission

}  The exam supervisor attests the device when entering and leaving

Page 13: A Case for Enforcing App-Specific Constraints to Mobile ......More Motivating Examples 3 Nuno Santos ! In business meetings, prevent info leaks by spyware ! Need to block untrusted

Conclusions & Current Status

Nuno Santos 13

}  In certain scenarios, mobile devices must be constrained

}  Our proposal: security architecture based on trust leases

}  Trust leases enable dynamic restriction of devices’ functionality

}  Currently extending Android and working on use cases

Page 14: A Case for Enforcing App-Specific Constraints to Mobile ......More Motivating Examples 3 Nuno Santos ! In business meetings, prevent info leaks by spyware ! Need to block untrusted

Nuno Santos 14

Thanks! Questions?

http://www.gsd.inesc-id.pt/~nsantos/