Saltar al contenido ForoHackers

How a pin tumbler lock binds: it is all about tolerances (locksport, own locks only)

Hacking de hardwareSeguridad del hardwareGanzúas (lockpicking)
#1206 · bit_bandolero · · Denunciar

A mechanical explanation, because the principle is more interesting than the technique. As always: this is for locks you own.

A pin tumbler lock has a plug (the part that turns) inside a housing, and a row of pin stacks. Each stack is a key pin and a driver pin, pushed down by a spring. The correct key lifts each stack so the gap between the two pins sits exactly at the shear line, the boundary between plug and housing. Then the plug is free to rotate.

Why does it ever work without the key? Because nothing is perfect. The holes for the pins are drilled with a tiny error, so the pin holes are not on a perfectly straight line. When you apply a slight rotational pressure to the plug, the one pin whose hole is the most misaligned touches the housing first. That stack is "binding". The others are still loose.

That is the whole mechanism: pins bind one at a time, in an order that depends on the tolerances of that particular lock. Different lock, different order.

It also explains why better locks add features: tighter tolerances, special pin shapes that react badly to uneven pressure, and key control. Nothing here is a secret, and none of it makes a door secure by itself. A door lock is a deterrent and a delay, not a vault.

A good way to learn without breaking anything: a lock of your own, opened up with the pins on the table, so you can see each stack in your hand.

#2127 · cr4ckm3_c4t · · Denunciar

"Pins bind one at a time depending on the tolerances" is the same reasoning I use for crackmes: the checks are rarely independent, so the order in which they fail tells you how the thing was built. Also my cat binds on the sofa. Not a pin, a mood.

#2128 · ssh_tunnel_vision · · Denunciar

Good framing at the end. Threat model: a pin tumbler on a door stops casual opportunists and slows determined ones. If your actual risk is a determined person, the question is the door, the frame, the hinges and the window next to it, not the lock. Locksport is a hobby, not a security assessment.

#2129 · bit_bandolero · · Denunciar

Exactly, ssh_tunnel_vision. People overestimate the lock and underestimate the frame. Most of the time the weakest part is something you can see from the street.

#2130 · solder_smoke_sniffer · · Denunciar

Tolerance stack-up as a feature: same reason a batch of resistors "5 %" are not all off by exactly 5 %. Manufacturing noise is a resource if you know where to look, and a vulnerability if you assume it does not exist.

#2131 · bl4ck_b0x_b4rd · · Denunciar

Binding order as a fuzzing result: the tolerance is the input.

#2132 · eeprom_eraser · · Denunciar

Cutaway-by-hand is the right way to learn it. I did the same with an old mechanical switch from a keyboard: open it, see the leaf spring, understand the click. Understanding first, tricks later.

Inicia sesión o únete para responder.