PatternListener: Cracking Android Pattern Lock Using Acoustic Signals

Man Zhou, Qian Wang, Jingxiao Yang, Feng Xiao, Zhibo Wang, Xiaofeng Chen

Abstract

Pattern-based authentication remains a widely used security measure on Android devices despite the rise of biometrics. This paper introduces PatternListener, a stealthy side-channel attack that transforms a smartphone into an active sonar system to intercept user unlock patterns. By utilizing the device's built-in speakers to emit imperceptible high-frequency acoustic signals and the microphone to record reflections from the user's fingertip, PatternListener can reconstruct complex patterns with high precision. Experimental results demonstrate that the system achieves over 90% accuracy within five attempts, even in noisy environments, highlighting a significant vulnerability in current mobile security architectures.

1. Introduction

While biometric authentication methods like facial recognition and fingerprint scanning are increasingly common, the 3x3 grid "pattern lock" remains a staple for millions of Android users globally. Traditional attacks on these patterns typically rely on physical evidence, such as oily "smudge" residues on the screen, or line-of-sight video recording (shoulder surfing). However, these methods are limited by environmental factors like lighting, physical proximity, or the need for specialized equipment.

PatternListener addresses these gaps by providing a remote, scalable, and stealthy alternative. It leverages the existing hardware present in virtually every modern smartphone—the speaker and microphone—to track finger movements without the user's knowledge. This research explores whether standard audio hardware can be repurposed as a localized sonar to bypass screen security.

2. Methodology

PatternListener operates by transforming the smartphone into an active sonar platform. The attack pipeline consists of four primary stages:

2.1 Unlocking Detection

The malware monitors system broadcasts for screen-wake events or utilizes low-power motion sensors to determine when a user is likely to begin drawing an unlock pattern. This ensures the "sonar" is only active during relevant windows, preserving battery and reducing the data processing load.

2.2 Audio Capturing

Once triggered, the phone’s speakers emit a continuous, imperceptible sound wave in the 18–20 kHz range. Simultaneously, the microphone records the environment. As the user’s finger moves across the screen, it reflects these waves, creating minute frequency and phase shifts in the recorded signal.

2.3 Pre-processing

The system employs coherent detection to demodulate the recorded signal into in-phase (I) and quadrature (Q) components. To isolate the signal reflected specifically by the moving finger, the algorithm removes "static components," which include echoes from the room’s walls or the phone’s own chassis.

2.4 Pattern Reconstruction

  • Segmentation: The algorithm identifies "turning points"—moments where the finger pauses or changes direction—to break the continuous signal into individual strokes.
  • Feature Extraction: By calculating the change in the acoustic path length, the system determines the direction and distance of each stroke.
  • Pattern Tree: Since patterns are sequences of connected lines, the system constructs a "candidate tree," ranking the most likely full patterns based on a similarity score relative to the extracted features.

3. Experimental Evaluation

3.1 Dataset and Setup

The researchers evaluated PatternListener using 130 unique patterns selected from a pool of 500 anonymous questionnaires to ensure the test set reflected real-world user habits. Tests were conducted on off-the-shelf hardware, specifically the SAMSUNG C9 Pro and HUAWEI P9 Plus. Five volunteers performed the patterns under various conditions, including different holding gestures and ambient noise levels.

3.2 Performance Metrics

PatternListener achieved an average success rate of 58.1% on the first attempt, which increased to over 90% within five attempts. Notably, the system proved resilient to variations in screen size, drawing speed, and holding positions (e.g., one-handed vs. two-handed use).

4. Key Insights

4.1 Complexity as a Vulnerability

Counter-intuitively, more complex patterns (those involving more lines and nodes) are easier for PatternListener to crack. Increased complexity provides more acoustic data points, allowing the algorithm to narrow down the candidate tree more effectively than it can for simple, short patterns.

4.2 Stealth and Efficiency

The attack is designed to be nearly invisible to the user. By operating in the 18–20 kHz range, the signal remains silent to most human ears. Furthermore, the system is computationally efficient, consuming only approximately 4% of CPU resources and 2.8% of battery life during operation.

4.3 Environmental Robustness

Because most environmental noise (such as speech, traffic, or music) occurs at lower frequencies, the high-frequency sonar signal remains clear even in noisy settings like busy cafes. This frequency separation allows PatternListener to maintain high accuracy where other acoustic attacks might fail.

5. Discussion and Countermeasures

To demonstrate the real-world threat, the authors successfully submitted a version of the attack—disguised as a benign social application—to the Google Play Store. It passed automated security checks before being manually withdrawn by the researchers.

However, the attack faces emerging challenges. Modern operating systems (Android 9.0+) have introduced stricter background microphone restrictions. Furthermore, the authors suggest "Randomized Layouts"—shuffling the dots on the grid for each unlock attempt—as a robust countermeasure. This would prevent an attacker from mapping a specific acoustic movement to a fixed grid coordinate.

6. Conclusion

PatternListener demonstrates that the sensors we rely on for daily convenience can be repurposed for sophisticated surveillance. By turning a smartphone into a sonar system, attackers can bypass traditional security barriers with high accuracy and minimal resource footprints. This research serves as a critical reminder of the need for more stringent sensor access controls and the development of authentication methods that are resilient to side-channel monitoring.

Summary updated

BibTeX
@inproceedings{zhou2018patternlistener,
  author = {Man Zhou and Qian Wang and Jingxiao Yang and Qi Li and Feng Xiao and Zhibo Wang and Xiaofeng Chen},
  title = {{PatternListener: Cracking Android Pattern Lock Using Acoustic Signals}},
  booktitle = {CCS},
  year = {2018},
  doi = {10.1145/3243734.3243777},
}
Figure