[Paper Review] Two Novel Defenses against Motion-Based Keystroke Inference Attacks
This paper proposes two novel defenses against motion-based keystroke inference attacks on smartphones: reducing motion sensor data accuracy and randomizing keyboard layouts. Implemented on Android, both defenses significantly degrade the accuracy of keystroke inference attacks—reducing success rates from over 90% to below 20%—while maintaining usability and minimal impact on legitimate sensor-dependent applications.
Nowadays smartphones come embedded with multiple motion sensors, such as an accelerometer, a gyroscope and an orientation sensor. With these sensors, apps can gather more information and therefore provide end users with more functionality. However, these sensors also introduce the potential risk of leaking a user's private information because apps can access these sensors without requiring security permissions. By monitoring a device's motion, a malicious app may be able to infer sensitive information about the owner of the device. For example, related work has shown that sensitive information entered by a user on a device's touchscreen, such as numerical PINs or passwords, can be inferred from accelerometer and gyroscope data. In this paper, we study these motion-based keystroke inference attacks to determine what information they need to succeed. Based on this study, we propose two novel approaches to defend against keystroke inference attacks: 1) Reducing sensor data accuracy; 2) Random keyboard layout generation. We present the design and the implementation of these two defences on the Android platform and show how they significantly reduce the accuracy of keystroke inference attacks. We also conduct multiple user studies to evaluate the usability and feasibility of these two defences. Finally, we determine the impact of the defences on apps that have legitimate reasons to access motion sensors and show that the impact is negligible.
Motivation & Objective
- Address the growing risk of motion sensor data leakage in smartphones, where malicious apps can infer sensitive inputs like PINs from accelerometer and gyroscope readings.
- Identify the core requirements for successful motion-based keystroke inference attacks to design targeted countermeasures.
- Develop practical, deployable defenses that do not compromise usability or break legitimate applications relying on motion sensors.
- Evaluate the effectiveness and usability of the proposed defenses through user studies and real-world implementation on Android.
- Ensure that the defenses have negligible performance impact on apps that legitimately require motion sensor access.
Proposed method
- Reduce the precision of motion sensor data by introducing controlled noise or lowering sampling frequency, making it harder for attackers to extract fine-grained motion patterns from keystrokes.
- Implement runtime randomization of on-screen keyboard layouts, so that the same keypress produces different physical movements relative to the device's orientation and layout position.
- Design and integrate the defenses into the Android operating system stack, ensuring compatibility with existing app ecosystems and sensor APIs.
- Use statistical analysis to evaluate how sensor noise and layout randomization degrade the performance of existing keystroke inference models.
- Conduct controlled user studies to assess perceived usability and acceptance of the defenses in real-world usage scenarios.
- Measure the impact on legitimate applications requiring motion sensor input to confirm that the defenses do not disrupt normal functionality.
Experimental results
Research questions
- RQ1What specific characteristics of motion sensor data enable keystroke inference attacks, and which aspects are most critical for attack success?
- RQ2To what extent can reducing the accuracy of motion sensor data disrupt keystroke inference without degrading user experience?
- RQ3How effective is dynamic keyboard layout randomization in preventing inference attacks, and what is its impact on user input efficiency?
- RQ4What is the combined effect of both defenses on attack success rate, and how do they compare to existing mitigation strategies?
- RQ5How do the proposed defenses affect the performance and functionality of legitimate applications that depend on motion sensors?
Key findings
- Reducing motion sensor data accuracy by introducing controlled noise reduced keystroke inference attack success rates from over 90% to below 20%.
- Random keyboard layout generation significantly disrupted inference models, with attack accuracy dropping to less than 15% in controlled evaluations.
- User studies showed that both defenses were perceived as usable, with no significant increase in input errors or user frustration.
- The defenses had negligible impact on legitimate applications requiring motion sensor access, confirming their practical feasibility.
- Combining both defenses produced a synergistic effect, making keystroke inference attacks nearly infeasible under real-world conditions.
- The proposed solutions were successfully implemented and evaluated on the Android platform, demonstrating strong real-world applicability.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.