Regulating Access to System Sensors in Cooperating Programs Giuseppe Petracca Jens Grossklags Patrick McDaniel Trent Jaeger Penn State University, US Technical University of Munich, DE Penn State University, US Penn State University, US
[email protected] [email protected] [email protected] [email protected] Abstract—Modern operating systems such as Android, iOS, by Gizmodo [8]. Whenever users asked their voice assistants Windows Phone, and Chrome OS support a cooperating program “Siri, I need a ride”, the assistant launched the ride-sharing abstraction. Instead of placing all functionality into a single app. Leveraging the entitlement provided by the service, the program, programs cooperate to complete tasks requested by users. However, untrusted programs may exploit interactions app requested recording of users’ screens, even while running with other programs to obtain unauthorized access to system in the background. The ride-sharing app abused this service sensors either directly or through privileged services. Researchers to spy on users, while they were taking a ride. have proposed that programs should only be authorized to access However, voice assistants are just one type of application system sensors on a user-approved input event, but these methods that may be exploited by such types of attacks. Several do not account for possible delegation done by the program receiving the user input event. Furthermore, proposed delegation real-world incidents have been reported to the public, where methods do not enable users to control the use of their input malicious apps, able to track and spy on users by stealthily events accurately. In this paper, we propose ENTRUST, a system opening smartphones’ cameras, microphones, and GPS re- that enables users to authorize sensor operations that follow their ceivers, made their way through official stores such as the input events, even if the sensor operation is performed by a Apple App Store and the Google Play Store, after bypassing program different from the program receiving the input event.