Archive for september, 2023

3D printing keys for Protec2

zaterdag, september 23rd, 2023

This story is based on the work from Reinder Stegen, in which the Protec2 was reverse engineered and scripts for parametric key generation are written. Reinder worked with James Wah for the parametric webblification. As in, a free to use online webgenerator for all your Protec2 key needs. To get the keys to the real world, one just needs a good 3D printer.

3D printing keys has been around for at least a decade, from 3D printing scrips like AutoKey3D by Christian Holler to printing many high security keys. Modeling and printing keys gives unique understanding of the underlying principles of the locking mechanisms. I, myself, wouldn’t have understood Kromer protector, Bowley Rorasera, and Fichet F3D as well without modeling the keys.

While 3D printing keys can be a strong attack, the bitting of the key needs to become known to an attacker beforehand. If this attack is within your threat model, please invest into key control. I.e. to keep track of the locks and keys in your system.

The challenge

A set of nine Abloy PL340 locks caught my attention as it was sold as a lockpicking challenge. As in, the seller didn’t have the correct keys, but included keys from the same series. Where the challenge is to open the locks. I chose to work with Reinder to decode one, and 3D print the keys for the rest of the set.

The PL340 are beefy padlocks of around 55*50*25mm, very much excess for any normal consumer applications. While we like them for securing Peli cases, they’ll work fine on your motorcycle or shipping container as well.

The key making process started by decoding the several non-working keys in the package keys. While five cuts were shared between the keys, it wasn’t enough to determine what the keys should be. One lock was disassembled and the disks were decoded according to the pictures in the Protec2 white paper by Han Fey. (Reinder has published a better chart on 22nd of September 2023)

The Protec2 has eleven disks, of which the fourth and eleven are zero disks. All code disks have two true gates, except for a six with one true gate. We see four disks with more than two true gates, which means they are mastered and accept a key with either cuts on it.

I’ve opted to use Python to create a list of all possible keys in this system instead of using pen and paper. After I had a working solution with many nested loops, I found the function product in the itertools package to generate a list of solutions in fewer lines of code. The code below generates and prints the valid keys from a list of lists with possible bittings.

# bitting_mks.py
# Quick script to get all possible keys from a single master keyed lock.
# 20230730 Jan-Willem CCBY4.0 Toool NL

import itertools

# The key codes is a list of list of ascii characters. 
key_code = [['0'],['5'],['4'],['6'],['3','5'],['1','6'],['1','3'],['0'],['5','6'],['6'],['1']]
keys = list(itertools.product(*key_code))

for key in keys:
	print("".join(key))

This script should work for most key systems. For me, it generated the sixteen valid keys of this master keyed system. With Reinder’s online generator, I’ve generated the files. As I lack a printer capable of printing these, I used the 3D printing service from JLCPCB. Reinder had good experience with Imagine Black, so that was my starting point as well.

Reinder’s tool for generating the keys isn’t widely shared, yet. He has shared a video in which several more 3D printed keys are showcased, including a few which work better than the online generated keys. Several other scripts (By NVX, and bgrydon) are available online, but they don’t work as well as this work.

Uploading the models it to the service was quite tedious. Not only does the material, finish, and customs description need to be filled in for each print, QA was quite picky, and rejected the files several times. After some touch ups in Meshmixer, the keys are ordered. 3D printing keys was very affordable.

The prints came in after a couple of weeks and look great. As the print doesn’t have a captive ball bearing, I’ve removed one from a non-functioning key. Sadly, none of the keys worked of the first print run. After double-checking the data, I’ve found a translation mistake. One disk was flipped in the picture, where a disk five becomes a three.

After going through the process a second time, the keys opened the lock I decoded. Possibly a bit more surprising, two keys worked on all other locks as well. So these are the master keys of a system bigger than these nine locks.

While it’s a great success, and defeating this system with 3D printing, I think we can do much more with this locking system. I’ll likely revisit the work of Matt Smith, to attempt to pick it, or at least try to find a better way of decoding the locks.

To settle one curiosity, I’ve commissioned new prints generated by Reinder in several materials. These have a captive ball. From left to right, we have: Imagine black, 9000R Resin, 8228 Resin, 8001 Resin, 3201PA-F Nylon, 316L Stainless.

All the plastic keys were dimensionally correct and opened the lock. Of course, the engineering resins work much smoother and are generally stronger. The 8228 seems to be very good, except for the ugly color 🙂

So, what about the metal key? While it is amazing we can have these parts fabricated for €8 per key, the dimensions aren’t there yet. The key is slightly oversized and doesn’t fit the keyway. Of course, you can order keys with several different scaling factors, but it’ll be expensive, whereas the resin prints work well and are relatively cheap. In the end the resin keys are around €2 each, and I’ve spent about €200 on the whole project.

While it’s exciting to ‘defeat’ Protec2 locks with this attack, it’s more a showcase of skill and dedication of people in the locksport community. Thanks, Reinder and James, for allowing me to use this work.

This text and the pictures are CCBY4.0 Jan-Willem Markus, Toool Blackbag.
The copyright of the key generator is with Reinder Stegen and James Wah.

Dutch Open Competition 2023

zondag, september 17th, 2023

In an effort to bring people up to speed on the Dutch Open Competitions at LockCon, we are publishing the competition rules. The PDF below are rules for the Lockpicking, Impressioning and Lever lockpicking competition, exported from the ‘How to run LockCon’ document written by Walter in 2016.

We have a lockpicking, impressioning, disk detainer, and Lockpicking Pentathlon. The Pentathlon has five opening techniques which includes picking, lever lockpicking, car locks and much more.

The organizers will put up flip overs, on which you can register yourself for the competition.
Please be on time when the competition starts. We aim to have Impressioning on Friday afternoon, Lockpicking on Saturday afternoon, and the Pentathlon on Sunday.

Lockpicking

For LockCon 2023 we will run the lockpicking competition with locks commonly found in the Netherlands, in addition to locks kindly sponsored by Zeefeene and Nigel from Toool UK.

  • The locks are pickable with normal lockpicks, of which we do not have a restriction for custom or commercial.
  • We aim to have locks without a secondary locking system, I.e. sidebar.
  • Applying torque on the tailpiece instead of using a tension wrench is allowed.

The time per round is adjusted for the difficulty of the lock, usually 5/10/15 minutes per round.

Impressioning

The Impressioning competition will be on Abus C83 locks, kindly sponsored by Abus. The first round will be an hour, and the A and B finals are planned to be six rounds of 15 minutes each.

In addition to the rules below, we added several small nuances to the rules:

  • The tailpiece of the lock needs to be unobstructed. As in, no torque can be applied from the tailpiece. Please take care to mount the lock properly, and not pinch the tailpiece.
  • Any newly invented tool or technique can only be used in the competition after explicit permission of the Judges.

Please see the Dutch Open Impressioning Championship 2022 report for more information on the competition. https://blackbag.lockcon.nl/?p=4222

Disk detainer competition

We will have a disk detainer lockpicking competition for the first time. For which, Sparrows kindly sponsored five of their disk detainer lockpicks. The competition will run throughout the event as a self timed competition.

  • There will be three to five locks, from easy to fairly difficult.
  • The supplied Sparrows DD tools are augmented with a 3D printed spacer designed by Thice. https://www.thingiverse.com/thing:5246593/files
  • Locks are not guaranteed to be front tensioning, but can all be opened with the tools provided.
  • Please keep the combinations a secret for others competing.
  • The tools are not fragile, but shouldn’t be abused either. We have some spares, and come to the organizers if the tools are defective.

For people that are either new to disk detainers or don’t like competing, there will be tools and locks available to learn the technique, as well as workshops in picking high security disk detainers. We will also bring locks with much higher difficulty, starting at Abus plus with butterfly disks, to Tokoz Pro. Picking these high-end locks is left as an exercise to the attendees. (Maybe bring your own tools for these.)

Pentathlon

Our friends from Parmakey in Italy will host a pentathlon competition this year. It will include five lock opening techniques of the following list:

  • Lockpicking pin tumbler: Bring your own tools
  • Lockpicking dimple: Bring your own tools
  • Impressioning: Bring your own tools
  • Lockpicking lever locks: Tools are supplied
  • Lockpicking car locks: Tools are supplied

The competition can only host a small group of participants, and will be fun to watch for everyone else.

Appendix from ‘How to run LockCon’ by Walter, 2016

Report: Dutch Open Impressioning Championship 2022

zondag, september 17th, 2023

Jan-Willem wrote a report in the Dutch Open championship in Impressioning, held at LockCon 2022.
The report talks about the parts of the competition which are rarely discussed, like the bitting of the locks and the opening count of each lock. Hopefully this report is of use for anyone into competitive impressioning.

Our appreciation go to Abus for their generosity of sponsoring the competition locks and blanks.
Abus has sent us the locks for LockCon 2023, as well. Which is on Friday 13th of October.

Cutaways, and lever locks

maandag, september 11th, 2023

When we teach lockpicking we usually revert to schematics of locks, and different models for demonstrating the functionality of locks. Usually required as the core functionality is well hidden, and not often observable in action. Multiple skilled machinists have made cutaway locks for the purpose of demonstrating the inner workings of real locks.

At one cutaway themed evening, we had over 50 unique cutaways on the table. From all brands and mechanisms. Some of which even the pins themselves were cutaway.

On an evening with impressioning, a member asked for some blanks to practice with. The call was answered by the keys below. Sadly, it’ll be very hard to find a corresponding lock for the key blanks, as in Europe we have thousands of unique keyways. Even though they all look a-like.

On another evening, we delved deep in lever locks, from your classic Chubb locks to high-end safes. A boroscope was brought as to try to decode some locks by belly reading the levers. E.g. to observe the scratches on the levers and determining the length of the butting making the scratches.

The WE30C also made its appearance, one night. The lock was used on pay phones, and is remarkably hard to lockpick due to the lever blocking system, shown in the top right. As torque is applied, the blocking system engages with the levers, making all levers bind up before the lever tests the gate.