Introduction
Shoulder-surfing attacks—where an adversary observes a victim entering their PIN—remain a persistent threat to ATM and Point of Sale (PoS) security. To mitigate this risk, users are universally advised to cover their typing hand with their free hand. While this simple physical barrier provides a sense of security, recent research suggests that the "covered hand" technique may be a fallible defense against modern machine learning. This paper presents a deep-learning-based attack that reconstructs PINs by analyzing the subtle movements and positioning of the covering hand, which acts as an informative side-channel.
The Attack Pipeline
The researchers developed a sophisticated three-phase pipeline to demonstrate the feasibility of this attack:
- Training Phase: The attacker utilizes a replica of the target ATM's PIN pad to gather a large dataset of videos. Because the attacker controls the hardware, they can precisely label each video with the ground-truth PIN.
- Video Recording Phase: A hidden camera is positioned near a real-world ATM to capture footage of victims entering their PINs.
- PIN Inference Phase: The recorded video is processed through a deep learning model to predict the most likely PIN sequences.
The core of the inference engine is a Long-term Recurrent Convolutional Network (LRCN). This architecture is uniquely suited for the task as it combines Convolutional Neural Networks (CNNs) to extract spatial features from individual frames with Long Short-Term Memory (LSTM) layers to capture the temporal dynamics of hand movement. To segment the video into discrete keypresses, the model utilizes the ATM's audio feedback—the uniform "beep" emitted for every key—as a precise timestamp.
Experimental Setup and Data
To evaluate the attack, the authors conducted an extensive data collection effort involving 58 participants and two real-world metal ATM PIN pads. A total of 5,800 5-digit PIN entries were recorded. To ensure the model's robustness, the researchers applied data augmentation techniques, such as synthetic rotations and shifts, simulating various camera angles and distances.
A human benchmark was also established through a survey of 78 participants. These individuals were asked to guess PINs from the same videos provided to the AI, allowing for a direct comparison between machine and human perception.
Key Results and Insights
The study revealed that the way a user's wrist shifts and the covering hand adjusts to reach different rows on the keypad constitutes a distinct signature. While humans struggled with this task, achieving only ~8% accuracy, the LRCN model excelled by learning global patterns of motion invisible to the naked eye.
In a scenario where the attacker knows the specific keypad model, the system achieved a 30% accuracy for 5-digit PINs and 41% for 4-digit PINs within three attempts. This "Top-3" metric is particularly relevant for ATM security, as most banks allow three incorrect attempts before locking a card. Even when the model was tested on a different but similar keypad model (generalization), it maintained a high Top-3 accuracy of 63.8% for individual digits.
Conclusion and Future Work
This research demonstrates that covering one's hand is not a foolproof defense against sophisticated AI-driven attacks. The movement of the covering hand itself leaks significant information. While the current model relies on audio cues for segmentation and was tested on a specific demographic, it highlights a critical vulnerability in current ATM security practices. Future work will explore "blind" segmentation based purely on visual motion and test the attack's efficacy across a wider variety of keypad materials and user demographics.
Summary updated