Shoulder Surfing, Explained
If you are reading this, you have probably typed a PIN or a password in a public place and wondered whether someone could see it.
By the end you will be able to define shoulder surfing, describe where it happens and the methods used, and apply practical defences for ATMs, phones, laptops and offices.
1. What it is
Shoulder surfing is "a social engineering technique used to obtain a user's authentication information without their permission", usually by watching someone type a PIN, password or other secret (Wikipedia: Shoulder surfing).
It needs no hacking at all. The "attack" is observation. It belongs with the in-person techniques in the social engineering post.
Where it happens
The same source notes it is more likely in crowded places "because it is easier to observe the information without attracting the victim's attention." Typical settings:
- Cash machines (ATMs) and payment terminals
- Trains, buses, planes and waiting areas
- Cafés, libraries and co-working spaces
- Open-plan offices and shared desks
- Video calls and screen shares where a screen or whiteboard is visible
What can be stolen
PINs, passwords, unlock patterns, one-time codes on a screen, and the content of messages, documents and screens. Consequences range from account takeover to "financial losses or identity theft."
2. Methods
| Method | How it works |
|---|---|
| Direct observation | Looking over the shoulder or from across the room |
| Optical aids | "Binoculars, hidden cameras, and hidden microphones" for observation from a distance |
| Recording | Capturing the screen or keyboard on video to analyze later, so the attacker need not be close or leave a trace of interest |
| Thermal traces | Wikipedia notes attackers can exploit "heat fingerprints remaining on keys" with thermal cameras after a PIN is typed |
| Hidden microphones | Recording audio near the person (Wikipedia names hidden microphones among the aids) |
Shoulder surfing is often the first step. The observer gets the secret, then needs only the card, device or account to use it. For a cash machine, that means a stolen or skimmed card. For a laptop, access to the machine.
3. Defence
Habits that stop most of it
- Shield the keypad. Cover the PIN pad with your other hand or body at cash machines and payment terminals.
- Be aware of who is near and behind you, especially before typing a secret. Move, wait, or ask people to step back.
- Sit with your back to a wall in public places when you work, so no one can stand behind you.
- Avoid showing sensitive screens in public: banking, work documents, one-time codes.
- Do not read out secrets aloud, and avoid entering them while on a call that others can hear.
- Lock the screen every time you step away.
Controls
| Control | Why it helps |
|---|---|
| Privacy screens (filters) | Narrow the viewing angle so only the person directly in front can read the screen |
| Privacy shields on PIN pads | Block side views. Some devices also use design features against thermal-camera attacks |
| Biometrics | A fingerprint or face unlock cannot be learned just by watching you |
| Passkeys and password managers | Autofill means there is nothing to watch you type |
| Multi-factor authentication | A watched password alone is not enough |
| Short auto-lock times | Limit exposure if you are interrupted |
| Screen-sharing hygiene | Close sensitive windows and notifications before sharing |
| Office layout and policies | Position screens away from windows and walkways. A clean-desk policy limits exposure |
Biometrics have their own trade-offs, but for this specific attack, Wikipedia notes they "cannot be replicated by a shoulder surfer."
If you think someone saw your PIN or password
- Change it now.
- For a card PIN, contact your bank and ask for the PIN to be changed or the card replaced.
- Check your accounts for unfamiliar activity.
4. Common mistakes
| Myth | The facts |
|---|---|
| "Only someone standing right behind you can do it" | Cameras and optics allow it from a distance |
| "It only happens at cash machines" | Anywhere a secret is typed or displayed in view of others |
| "I would notice someone watching" | Hidden cameras and distant observers are not noticeable |
| "My password is too complex to copy" | Watching someone type it a single time can be enough |
| "It is only a physical issue, not a cyber one" | It is a social engineering technique that leads straight to digital compromise |
Closing
Shoulder surfing is stealing a secret by watching you use it. Defending against it is mostly about awareness and small habits, backed by privacy screens and authentication that does not depend on a secret that can be watched.
Keep these points:
- Shield what you type and notice who is nearby.
- Use privacy screens in public and avoid showing sensitive content.
- Prefer biometrics or passkeys, and add multi-factor authentication.
- Lock your screen whenever you leave it.
- Change a secret immediately if you think it was seen.