149

I live in a city where CCTV camera coverage is comprehensive and increasing. Cameras are getting cheaper and higher resolution. Everyone has a video camera in their pocket already, and we are starting to see trends which indicate always-on cameras may become commonplace in other devices like glasses.

It has occurred to me, when out in public and entering my username/password into apps on my phone and laptop, that if a camera could capture both my screen and my keyboard, it could be fairly straightforward for a viewer to grab or guess my credentials from the footage assuming a high enough resolution image and the view not being (too) obscured.

Without going too much into the details of how it would be implemented, the accuracy and cost etc, I have a background in image processing and so am also aware that this would likely be automatable to at least some degree.

So I thought I would ask the community here if this is actually a viable risk? Have there been any known instances of it happening already? Are people thinking about this with respect to the viability of plaintext credential entry into apps in the long run?

davnicwil
  • 1,231
  • 2
  • 8
  • 8
  • 33
    Entering credentials in public is always a risk. – stackzebra Nov 09 '18 at 08:12
  • 20
    Related: [Snowden's Blanket](https://security.stackexchange.com/q/82362/44336) - He wouldn't use the blanket if there was no risk of seeing him type. – Mindwin Nov 09 '18 at 14:31
  • 4
    Take a look at TOTP - Time-based One Time Passwords. Typically used for 2FA, you can use them as the only factor as well. I have a few servers set up that accept either for SSH. – Dessa Simpson Nov 10 '18 at 04:28
  • 2
    Well, my bank will (against my explicit consent) pay up to 50€ per transaction without my card ever being inserted in a reader, only using some wireless transponder shit, and without any security token whatsoever being provided. So, seeing how my south Korean phone unlocks on my fingerprint and keeps my _super important_ Instagram password hardware encrypted, I see password skimming as the smaller of two problems. – Damon Nov 12 '18 at 11:49
  • 3
    Who is your adversary in the threat model? Government has such plenties of cameras, but doesn't need you to disclose your password to spy on you. – usr-local-ΕΨΗΕΛΩΝ Nov 12 '18 at 16:22
  • 1
    `Who is your adversary?` - anyone who has access to the camera footage – davnicwil Nov 12 '18 at 16:29
  • Use 2FA. Then it doesn't matter. OTOH, that's really only protection from shoulder surfers and skimmers (real and virtual) it does nothing to stop governments or people with resources who could compromise things on the server side making whatever you do irrelevant. Also, it's really only a concern if a camera is setup specifically to watch people do a particular thing like enter ATM PINs. A normal surveillance camera 30' up a pole 100' away isn't going to be a lot of help in guessing your PIN – PushfPopf Nov 12 '18 at 18:18
  • I'm starting to think that Android's random "you can't use fingerprint, must enter password now" was implemented specifically for those CCTVs to catch your password. – Agent_L Nov 13 '18 at 08:36
  • 2
    *anyone who has access to the camera footage* Sorry, but that is overthinking stuff. I doubt that a random employee from a company managing city CCTV, is interested in random you. So, again **define your threat model**. You are currently getting answers that are all over the place because you did not do so. –  Nov 14 '18 at 15:29

6 Answers6

175

Lots of examples. A high-profile and recent example is when Kanye was caught on camera entering his "00000" password to unlock his device.

Shoulder-surfing is one reason why applications do not display the password text on the screen, but show ****** instead.

And this is one reason why multi-factor authentication is so important; even if you know the password, you cannot use it without another factor.

I have even seen viable research into capturing the sound of the keyboard when a user types the password, even over the computer's microphone.

So, yes, you describe a viable risk that the industry has been addressing for a long time. The specifics of high-res cameras is just not a significant enough of a new factor to consider. Shoulder-surfing and keyloggers are a current risk.

The industry knows that it needs to develop something better than passwords, and there are many active attempts to do so, but nothing is mature or stable enough yet.

Mr. C
  • 103
  • 3
schroeder
  • 123,438
  • 55
  • 284
  • 319
  • 68
    I would also add that there has been a case where a high-res photo was taken of a finger and used to create a replica fingerprint and used to open the biometrics of a phone. So, yes, cameras are a threat. – schroeder Nov 08 '18 at 15:58
  • 11
    I think the new factor with cameras is the potential for scale through both wider passive capture and automation – davnicwil Nov 08 '18 at 16:10
  • 4
    @davnicwil yep, that's a good point too. When designing the camera placement in an office building, we had to perform a number of calculations on the risks of capturing people typing. What I'm saying is that the problem space is far from new. – schroeder Nov 08 '18 at 16:38
  • 4
    @schroeder Why are you putting cameras in an office building? In Italy it's a crime to record employees in their workplace. You can put cameras *at the entrance*, but just recording an office room is illegal without any special motivation and the approval of the "Privacy regulator" for the city. This fixes the problem at the source. Obviously somebody else could try to put an hidden camera but that's true everywhere at anytime. – Bakuriu Nov 08 '18 at 19:50
  • 10
    @Bakuriu I might humbly suggest that not everyone lives in Italy. Especially in cases where a company has sensitive info to protect, or high-value goods, further video surveillance may be warranted to minimize liability and risk. – Doktor J Nov 08 '18 at 20:30
  • 3
    @DoktorJ That was an example. The point is: the number of situations when installing cameras to record employees at their computers **in an office** are extremely rare, since the office itself should be a physically controlled place. If you have outsiders/clients etc coming and going all the time that's not really "just an office" in my mind and poses different security requirements. – Bakuriu Nov 08 '18 at 21:01
  • 5
    @bakuriu the answer is simply that there was a business need and there were no barriers to doing it the way we did – schroeder Nov 08 '18 at 21:27
  • 1
    @schroeder High-res photos of fingerprints is why biometric identities should always be considered a _username_, not a password. After all, they are not secret. – forest Nov 09 '18 at 02:17
  • 2
    Somehow I doubt that Kanye's passcode would have actually been a barrier to an attacker capable of obtaining access to the phone... =) – jpmc26 Nov 09 '18 at 05:35
  • 1
    @Bakuriu but consider a retail situation: staff enter supervisor passwords (which CCTV operators shouldn't know), customers unlock devices to pay by NFC, etc. An office is only one environment – Chris H Nov 09 '18 at 09:22
  • *Shoulder-surfing is **one** reason why applications do not display the password text on the screen* (emphasis mine) - out of curiosity, do you know others? (maybe screenscating, as a afterthought) – WoJ Nov 09 '18 at 10:57
  • @WoJ I was thinking of screenscraping – schroeder Nov 09 '18 at 11:06
  • Yes, that was my thought as well - which would have been clearer if I could actually write correctly ("screenscating" in my comment was intended to be "screencasting" :)) – WoJ Nov 09 '18 at 11:28
  • @schroeder wooow do you have a source easily accessible for that fingerprint-replica case? Googling found a few cases of someone making a mold with help of the phone's owner, but not from a photograph. – Lord Farquaad Nov 09 '18 at 13:36
  • I recall seeing a white paper about using a mobile device's accelerometer to collect data sufficient to recover keystrokes (on the same or another device sitting on a table, iirc). [Here's an article I could find easily](https://www.techradar.com/news/scientists-find-a-way-to-crack-your-phones-password-using-just-the-accelerometer). – Draco18s no longer trusts SE Nov 09 '18 at 15:00
  • I recall reading something about video taken from a window of a shiny object (like a teapot) being used to see what was typed and shown on a user's screen. I think this theoretically possible using the reflections from glasses and possibly even eyes. The point being that the camera may not need to be behind you. – JimmyJames Nov 09 '18 at 18:32
  • 1
    @LordFarquaad I think this is the case he was referring to: https://www.theguardian.com/technology/2014/dec/30/hacker-fakes-german-ministers-fingerprints-using-photos-of-her-hands – JimmyJames Nov 09 '18 at 20:37
55

As another example, here are some images from KrebsOnSecurity on ATM Skimmers (devices used to steal ATM credentials)


Camera 1 Hidden camera behind ATM faceplate (source)

Camera 2 Hidden camera glued to corner of ATM (source)

Camera 3 Hidden camera on fake panel of ATM (source)


So yes, it is a very real-world concern.

  • I'd like to point out that the two ATM images are different in other ways too. For example, the card slot on the right in the ATM machine seems to have changed between the two images. There seems to be some sort of protruding card slot in the second image. What is this? – Box Box Box Box Nov 10 '18 at 13:44
  • 7
    @fortunate_man It's the actual skimmer that records the data on the magnetic stripe on the card. It's what you actually want to be looking for when using an ATM, since your PIN is useless without it, but the reverse isn't necessarily true. – Ross Ridge Nov 10 '18 at 16:28
  • 1
    I'm surprised you didn't include https://krebsonsecurity.com/2012/09/a-handy-way-to-foil-atm-skimmer-scams/, which much more directly answers the question. – Wildcard Nov 12 '18 at 18:39
17

Also, there have been cases reported where thermal imagers were used to extract a PIN or password from a keyboard just used to enter it - the hotter a key, if time of finger contact is about equal (heat soaks in...), the more recently it has been pressed. This might not present the password on a silver platter due to duplicate keys, different finger dwell times, but can extremely narrow the possible passwords.

rackandboneman
  • 975
  • 4
  • 9
  • 28
    My relatively cheap chinese door lock have a (I don't know if this is intentionaly or it just happened) way off deterring shoulder-surfers: Only the first and the last n digits matters. So, if the code is 1234, if you are suspicious somebody is watching, you could enter 124579413245430234, and most snoopers would have lost track of your keys by then. All keys would have the same temperature and greasiness also. – Lenne Nov 09 '18 at 11:02
  • 2
    @Lenne but if someone can (secretly?) record you two or more times, instead of just shoulder-surfing, can't they figure out actual code by comparing few inputs? :) – Ivan Kolmychek Nov 09 '18 at 19:24
  • 2
    Sure, but even if something isn't 100% protection, everything which makes it harder will stop some, and delay the rest – Lenne Nov 09 '18 at 19:46
  • 2
    @Lenne that lock could be much improved by not accepting an EXACT entered number combination for several attempts.... – rackandboneman Nov 09 '18 at 21:22
  • [Thermal camera and PIN](https://youtu.be/8Vc-69M-UWk?t=21) (you can edit your A, include the link and flag my comment as obsolete) – user Nov 10 '18 at 09:56
  • 4
    I think, smear traces on smart phone screens also fall in this category – Hagen von Eitzen Nov 10 '18 at 10:15
  • 1
    If we are talking about physical keypads rather than touchscreens, should be possible to thwart a thermal imager by gently touching (for a few seconds) some or all of the other keys after entering the PIN, obscuring any revealing temperature differences. – Zenilogix Nov 11 '18 at 23:18
  • @Lenne I'm curious what brand of door lock you have. Most available in the US seem to take only 4 digits. – topshot Nov 14 '18 at 19:35
  • @Lenne Fun fact: you can do a similar thing with ATMs (at least in Germany). Only the first 4 digits count. So if my PIN is 1234, I can enter 123485769 and will still get my money – JFB Mar 06 '19 at 11:06
14

Something that may help: Get into the habbit of "pressing" a few buttons in addition to your password.

Say, your password is 1234. You could hit the 1 and 2, pretend to press, say, 9, and then continue your password.

It discourages any cameras, key-wear down, or onlookers. It's certainly low grade, yes, but it deters people who have 1000 other clips of footage to go through.

Kyle
  • 141
  • 2
  • 1
    I do this often. Being a touch typist helps. Just put your fingers in position, and press the actual pin numbers amongst the faux key presses as you wish. The only key press that stands out is pressing the enter key. – ouflak Nov 14 '18 at 11:48
9

Yes, and this is one of many reasons that you should not be entering passwords, and for the most part should not even know your passwords, except for a password manager master password and device unlock codes/FDE passphrases. For FDE passphrases, you should enter them only when powering on the device, and only in private locations where there are no cameras or observers present.

  • Comments are not for extended discussion; this conversation has been [moved to chat](https://chat.stackexchange.com/rooms/85594/discussion-on-answer-by-r-is-password-entry-being-recorded-on-camera-a-realist). – Rory Alsop Nov 10 '18 at 19:59
8

I would say yes, and high resolution imagery is not necessary. Speaking as a statistician, I don't even need to know the exact letter or numeral you touched (on a screen keyboard or regular keyboard), reducing each choice to 2 or 3 possible characters, based on the position of your fingers, makes an electronic guess of your password a tractable problem. Especially I would try likely combinations of letters that form word fragments; e.g. ([FR][EW][DE])="FEE", "FED", or "RED".

Or if numbers, I'd look for combinations that appear in numbers related to you: birthdays, anniversaries, for you, spouse, kids. Your phone number or house address.

On a screen or a real keyboard, I can see when you shift for special characters and guess what they are. And sometimes it is clear which key you hit, depending on the angle of the camera, narrowing some position to exactly one key. The camera can narrow the field of possible passwords considerably, and often in analysis that scores how well passwords match words and dates, the "right" password can be at the top of the scoring list.

For this reason, acronymic phrases can help defeat this. The idea is to memorize a phrase that means something to you, like "If the Seahawks win the championship I'll get drunk and dance a jig." Then make an Acronym: "ITSWTCIGDADAJ". You can teach yourself to replace some of these letters with numerals or special characters.

Without knowing the phrase in your mind, the password letters are random and uncorrelated, so unless the camera can tell which keys you hit exactly, it still won't be able to guess at the correct sequence by looking for matches to real words or dates.

Amadeus
  • 181
  • 1