TAVELURE
Menu
Request pre-order

KEYS & LOCKS · · 9 MIN READ

Can keys be copied from a photo? Yes, and how to protect yours

Can keys be copied from a photo? Yes. Keys have been read from 60 metres away and TSA master keys 3D-printed from a press photo. Here is how to protect yours.

Can keys be copied from a photo? Yes. Researchers decoded house keys from photographs in 2008, one of them shot from 195 feet away, and later work turned a single snapshot into a printable 3D model. An ordinary key keeps its secret in its outline, so anyone who can see that outline clearly can start to rebuild it.

Why a key can be copied from a photo

A pin tumbler key looks like a piece of shaped brass, but it is really a short number. The cuts along the blade sit at fixed positions, and each cut is one of a small set of permitted depths. Read the depth at each position and you have the key’s bitting code. As the UC San Diego team behind the first well-known study put it, the keys used in the most common residential locks in the United States have a series of five or six cuts, and that code, together with the brand and type of key, is what you need to make a duplicate.[1]

Nothing about that code is hidden. It is stamped into the metal as shape, visible to any camera pointed at it and audible, as it turns out, to any microphone near the door. That is the thread running through every study below.

Can a key be copied without the original?

Yes. A duplicate needs the code and the brand and type of key, not the key itself.[1] Anyone who can read the code, from a photo or, as later research showed, partly from sound, never has to borrow your key at all. That is why a copy made this way leaves no trace: the original stays in your pocket the whole time.

A research timeline

Published demonstrations of key copying without the key
YearWorkWhat the attacker neededWhat it showed
2008Sneakey, UC San DiegoA photo, including one taken with a telephoto lens from a rooftopBitting codes decoded from images; one key read at 195 feet[1]
2015TSA master keysA press photo of the keysPrintable files posted publicly; a plastic print opened a TSA-approved lock[2][3]
2018DeepKeyOne everyday RGB photoA neural network inferred a printable 3D key model[4]
2021Keynergy, USENIX SecurityAudio of the key going in, plus video of it being heldFor 6 of 75 keys, fewer than ten candidates remained[5]

2008: Sneakey decodes keys from 195 feet

Stefan Savage, Benjamin Laxton and Kai Wang at UC San Diego presented their software, Sneakey, at the ACM Conference on Computer and Communications Security in October 2008. In one test they photographed house keys with a mobile phone camera and fed the images in; in another they used a telephoto lens on the roof of a campus building to capture keys sitting on a café table. The release reports one key image successfully decoded at a distance of 195 feet, roughly 60 metres.[1]

The method was simple. An operator clicked a few control points on the key, the software normalised its size and angle so each pixel corresponded to a known distance, and the depth of each cut fell out of the geometry. Savage’s point was that keys are not inherently secret: experts had copied keys by hand from good photographs for years, but cheap cameras and basic computer vision had removed the need for expertise.[1]

2015: a 3D printed key from a newspaper photo of TSA master keys

The most public demonstration involved no research lab at all. The Washington Post published a photograph that showed the master keys the US Transportation Security Administration uses to open TSA-approved luggage locks. The images were later taken down, but in September 2015 a security researcher published 3D printing files for a range of those master keys on GitHub.[2] A Montreal-based Unix administrator, Bernard Bolduc, printed one and reported that it opened one of his TSA-approved locks; lockpicker Deviant Ollam posted photos of doing the same.[2] Engadget reported that Bolduc’s key was printed in PLA plastic and took him one try.[3]

The lesson is sharper than for a house key. A master key opens every lock in its system, and its entire secret leaked through one picture that nobody thought of as sensitive.

2018: DeepKey turns one photo into a printable key

Sneakey still needed a person to mark reference points. In 2018 Rory Smith and Tilo Burghardt described DeepKey, an end-to-end neural network that takes a single ordinary colour photograph of a pin tumbler key, lying on a table or a carpet, and infers a printable 3D model. The pipeline detects the key, corrects its pose, segments the bitting and builds the model, and the paper shows an example of opening a real-world lock.[4] Its datasets, more than 5,300 images, cover only a few test keys, so it is a proof of concept rather than a tool that works on any photo.[4]

2021: can keys be copied from sound?

The Keynergy study, by researchers at the National University of Singapore with colleagues in the US, showed that the clicks a key makes as it slides past the pins carry information about its cuts. Participants inserted 75 different keys more than 3,600 times while microphones recorded from various distances.[5] Sound alone cut the number of possible keys by around 75% on average. Combined with video of the victim holding the key, the attack narrowed the field to fewer than ten candidates for 8% of the keys tested, six out of 75.[5]

The distances matter. A smartphone microphone gave useful results up to 10 feet from the door, and a parabolic microphone kept working at 25 feet.[5] For the Schlage lock they used, the manufacturer’s rules leave 75,066 valid keys in total, which shows how small the space an attacker has to search really is.[5]

What the research does and does not show

None of this means a stranger can open your door from a holiday photo by this evening. Sneakey needed the key’s make and type. Keynergy worked on its own lock model, often produced a shortlist rather than one answer, and its authors note that the attacker still needs brief physical access to try the candidates.[5] Bunches of keys jangling together also degraded its accuracy.[5]

The direction of travel is clear, though. Each study needed less from the attacker than the one before: a careful photo, then a casual one, then a recording made while walking past. A mechanical key’s secret is its shape, and a shape can be seen or heard.

Can you copy a key from a photo with an app?

Commercial services already copy keys from photos, for owners who want spares. In 2014 KSL reported that the KeyMe app required a photo of both sides of the key, laid flat on a white background, which the company said stopped thieves using the app to snap a quick picture of keys on a restaurant table or bar.[6] For the same report, a bitting code was worked out from photos of a key and locksmith Bruce Behm cut a working copy from it. Behm warned that an unethical locksmith could cut a duplicate from one quick photo, with or without an app.[6] The safeguard sits with the service, not with the key.

Should you post pictures of your keys online?

No. Savage made the comparison in 2008: people blur card numbers and licence details before sharing photos, but post sharp pictures of their keys without a thought.[1] A new-home photo with keys in hand, a key ring on a desk in a work video, or a listing photo for a rental flat can all show the blade clearly. If a picture of a key you still use is already public, treat that key as exposed and have the lock rekeyed.

How to prevent key duplication

The essentials are below; our guide on how to prevent key duplication covers key control in more depth.

  • Keep keys out of sight. Savage’s advice was to treat a key like a credit card and keep it in your pocket unless you need it.[1] That includes café tables, reception desks and valet stands.
  • Choose a restricted keyway. Patented or restricted key systems limit who can buy blanks and cut copies. They raise the bar for duplication, though a decoded code is still a decoded code.
  • Do not rely on “Do not duplicate” stamps. They are a request to the key cutter, not a technical control.
  • Add a second factor where it matters. Savage pointed to car keys with RFID immobiliser chips, which stop a mechanically copied key from starting the car.[1]
  • Remember the older attacks. The Keynergy authors note that lock picking and key bumping remain the most common attacks on pin tumbler locks.[5] A cylinder rated against picking and bumping matters as much as keeping your key private; see key bumping and lock picking explained.
  • Store valuables behind more than one lock. Our guide to digital, biometric and key lockers covers what each type defends against.

A key whose secret is not its outline

The fix the research points to is a key whose secret cannot be read off its shape. That is the idea behind Tavelure, a home safe in development that opens only with a wearable metal key, a triangular pendant. The key holds a coating sealed with millions of nanoparticles placed at random when it is made, and a laser reads them as a unique speckle pattern of light. A copied outline or a photo of the key is useless, and there is no PIN or keypad to observe. Tavelure is based on two patents and PhD research conducted at the University of Strasbourg and CNRS. You can read how it works on our technology page or in our explainer on physical unclonable functions.

Frequently asked questions

Can someone copy my key from a photo on social media?

Yes, if the photo shows the blade clearly. In 2008 UC San Diego researchers decoded keys from ordinary phone photos and from a telephoto shot taken 195 feet away, needing only the key’s code plus its brand and type.[1] If a sharp picture of a key you still use is public, have the lock rekeyed.

Can a key be copied without the original?

Yes. A duplicate can be cut from the key’s code and its brand and type, which can be read from a photo without touching the key.[1] Research has also shown that the sound of a key going into a lock can narrow down its code.[5]

Can you 3D print a key?

Yes, if you know its code and profile. In 2015, 3D printed copies of TSA master keys, built from files based on a press photo, opened TSA-approved luggage locks; one was printed in PLA plastic and worked at the first attempt.[2][3] Plastic is weaker than metal, but a key only has to turn once.

Were the TSA master keys really 3D printed from a photo?

Yes. The files were built from a photograph published by The Washington Post and posted on GitHub in September 2015, and at least two people reported opening TSA-approved locks with printed copies.[2]

Can keys be copied from sound?

Partly. The 2021 Keynergy study used the clicks of a key sliding into a lock to cut the number of possible keys by around 75% on average, and with added video it got below ten candidates for six of 75 keys.[5] It narrows the search rather than producing a perfect copy every time.

Does a “Do not duplicate” stamp stop key copying?

Not on its own. The stamp is a request to the key cutter, not a technical control, and it does nothing against someone who decodes the key from a photo. Restricted or patented key systems, which limit who can obtain blanks and cut copies, do more to control duplication.

ABOUT THE AUTHOR

Dr Saeel Momin, founder of Tavelure, is a materials scientist with a PhD in Polymer Chemistry from CNRS and the University of Strasbourg. Tavelure is based on two patents and PhD research conducted at the University of Strasbourg and CNRS. Meet the team · LinkedIn.

Related reading

More in Keys & locks

Sources

  1. Keys Can be Copied From Afar, Jacobs School Computer Scientists Show, UC San Diego Jacobs School of Engineering
  2. Lockpickers 3D-Printed Master Key for TSA Luggage Locks and Blueprint Leaked Online, The Hacker News
  3. 3D-printable files of TSA master baggage keys are out for download, Engadget
  4. DeepKey: Towards End-to-End Physical Key Replication From a Single Photograph, arXiv (Smith and Burghardt)
  5. Acoustics to the Rescue: Physical Key Inference Attack Revisited, USENIX Security Symposium 2021
  6. Are key apps a convenience or invitation to thieves?, KSL.com

PRIVATE WAITLIST

Be among the first to own a Tavelure.

Early access is limited. No deposit, no obligation. Customer verification comes before payment.

Join the waitlist ↗