TL;DR
Think you’re safe from shoulder-surfing at the ATM just by covering your typing hand? This paper demonstrates a novel deep-learning attack that reconstructs PINs by analyzing the movements and positioning of the covering hand itself. The researchers achieved a 30% success rate for 5-digit PINs within three attempts—the standard lockout limit for most ATMs—significantly outperforming human observers.
What Problem Does This Paper Address?
Shoulder-surfing attacks, where an adversary observes a victim entering their PIN, are a classic threat to ATM and Point of Sale (PoS) security. To counter this, users are often advised to cover their typing hand with their other hand. While this feels secure, the scientific literature lacked a rigorous assessment of whether this "countermeasure" actually works against modern machine learning.
The authors set out to prove that the "covered hand" technique is a fallible defense. They argue that the position and movement of the non-typing (covering) hand, as well as the visible parts of the typing hand, constitute a "side-channel" that leaks enough information for a neural network to infer the digits being pressed.
Methods
The researchers developed a three-phase attack pipeline:
- Training (Phase A): The attacker uses a replica of the target ATM's PIN pad to collect a large dataset of videos showing users entering PINs with a covered hand. Because the attacker controls this device, they have the ground-truth labels (the actual PINs).
- Video Recording (Phase B): A hidden camera (like a pinhole camera) is placed near a real ATM to record victims.
- PIN Inference (Phase C): The recorded video is processed and fed into a deep learning model.
The Architecture: The authors used a Long-term Recurrent Convolutional Network (LRCN). This architecture combines Convolutional Neural Networks (CNNs) to extract spatial features from individual video frames with Long Short-Term Memory (LSTM) layers to capture the temporal patterns of hand movement over time.
Key Innovation: To segment the video into individual keypresses, the model leverages the ATM's audio feedback. Since ATMs emit the same "beep" for every key, the sound provides a precise timestamp for when a button is pressed without revealing which button it was.
Datasets
The study involved a substantial data collection effort:
- Hardware: Two real-world metal ATM PIN pads (DAVO LIN models).
- Participants: 58 users who recorded a total of 5,800 5-digit PIN entries.
- Human Benchmark: A survey of 78 participants was conducted to see if humans could guess the PINs from the same videos.
- Data Augmentation: To make the model robust to different camera angles and distances, the researchers used synthetic transformations (rotation, shifting, zooming).
Key Insights and Ideas
- Movement as a Side-Channel: The "aha moment" is that you don't need to see the fingers touch the keys. The way the wrist shifts and the covering hand adjusts to allow the typing hand to reach the bottom row vs. the top row is a distinct signature.
- AI vs. Human Perception: Humans are remarkably bad at this task, achieving only ~8% accuracy. Humans tend to look for direct visual cues (like a finger peeking out), whereas the LRCN model learns subtle, global patterns of motion that are invisible to the naked eye.
- The "Top-3" Metric: In the world of ATM security, a "success" isn't just a first-try guess. Since most ATMs allow three attempts before locking a card, an attacker only needs the correct PIN to be in the model's top three predictions.
- Countermeasure Ineffectiveness: The researchers tested a physical "shield" (a black patch covering parts of the pad). They found that unless the entire keypad is shielded (100% coverage), the attack remains viable because the model can still infer movement from the hand's position above the shield.
Key Results
- Single PIN Pad Scenario: When the attacker knows the exact keypad model, the model achieves 30% accuracy for 5-digit PINs and 41% for 4-digit PINs within three attempts.
- Generalization: Even in the "PIN pad independent" scenario (where the model is trained on a different but similar keypad), the Top-3 accuracy for a single digit remains high at 63.8%.
- Human Comparison: The deep learning model outperformed trained human observers by a factor of four.
Limitations and Future Work
The authors acknowledge several limitations that provide a roadmap for future research:
- Demographics: The study only included right-handed participants and was limited to Caucasians. Hand size and typing style variations across broader demographics need further study.
- Camera Placement: While the model is robust, a camera placed to the side of a right-handed user (the "Left-corner" position) significantly reduced accuracy because the typing hand was better obscured.
- Audio Dependency: Currently, the model relies on audio beeps for segmentation. Future work could involve "blind" segmentation based purely on visual motion cues.
- Keypad Variety: Testing on a wider array of keypad materials (e.g., plastic vs. metal) and layouts (touchscreens) would further validate the attack's reach.
Summary updated