shoulder surfing
noun
Surreptitiously watching someone use a device (a laptop, an ATM, etc.) in order to gain valuable information, usually some credential (a PIN, a password, etc.).