Your Key is My Key - Breaking key controls
Adam Jon Foster (Senior Penetration Tester · OneStep Group)
BSides Canberra VIII (2025) · Day 2 · Off-Main Track
Overview
In his compelling BSides Canberra talk, "Your Key is My Key - Breaking key controls," Adam Jon Foster, a Senior Penetration Tester at OneStep Group, meticulously dissects the often-overlooked vulnerabilities inherent in physical lock and key systems. Foster reveals how ubiquitous practices like mass manufacturing, common keying, and hierarchical master keying schemes inadvertently create significant security gaps, making it surprisingly easy for attackers to gain unauthorized access to buildings and sensitive areas. Far from requiring sophisticated tools or highly specialized skills, Foster demonstrates that exploiting these weaknesses is often a low-cost, low-effort endeavor, leveraging readily available equipment and publicly accessible information.

Key moments
- 0:00 Introduction: Your Key is My Key
- 3:40 The infamous CH751 key vulnerability
- 5:30 Brava 'Key to Like' locks in Australia
- 8:20 Understanding cross-keying with master wafers
- 11:30 Automated tools for deriving master keys
- 15:00 Sourcing restricted and high-security key blanks
- 16:30 Practicality: Field stripping a lock in minutes
- 22:00 3D printing high-security keys (Q&A)
Your Key is My Key - Breaking key controls
Speakers: Adam Jon Foster, Senior Penetration Tester, OneStep Group
Conference: BSides Canberra
YouTube: https://www.youtube.com/watch?v=qGCmdPvnEYM
Overview
In his compelling BSides Canberra talk, "Your Key is My Key - Breaking key controls," Adam Jon Foster, a Senior Penetration Tester at OneStep Group, meticulously dissects the often-overlooked vulnerabilities inherent in physical lock and key systems. Foster reveals how ubiquitous practices like mass manufacturing, common keying, and hierarchical master keying schemes inadvertently create significant security gaps, making it surprisingly easy for attackers to gain unauthorized access to buildings and sensitive areas. Far from requiring sophisticated tools or highly specialized skills, Foster demonstrates that exploiting these weaknesses is often a low-cost, low-effort endeavor, leveraging readily available equipment and publicly accessible information.
The talk serves as a stark reminder that physical security, despite its foundational role, is frequently undermined by convenience and cost-saving measures in commercial and industrial settings. Foster challenges the common assumption that physical locks offer robust protection, illustrating how an attacker with minimal resources can effectively bypass key controls by understanding the underlying mechanics and systemic design flaws. His presentation is a critical call to action for organizations to re-evaluate their physical security postures, urging them to consider practical threat models that extend beyond digital defenses.
Foster’s insights are particularly relevant for anyone involved in securing physical infrastructure, from facility managers and security architects to penetration testers and red teamers. By demystifying the process of key derivation and replication, he exposes how easily a "restricted" or "high-security" key can become compromised. The talk emphasizes that neglecting these physical vectors can render even the most advanced cybersecurity measures moot, as an attacker who can walk through the front door has already bypassed numerous layers of digital defense.
Background
▶ Watch: Introduction: Your Key is My Key (0:00)
The foundation of understanding physical lock vulnerabilities begins with a basic primer on how traditional pin tumbler locks function. As Foster explains, a key is a physical object designed for repeatable action: fitting into a lock to align internal components. Key terminology is crucial here: warding refers to the physical shape of the keyway, dictating which keys can even enter the lock. This is often the differentiator between restricted and non-restricted keyways. The profile describes the cross-sectional shape of the key blank itself, with common Australian examples being LW4 and LW5.
Inside the lock, key pins (also called bottom pins) and driver pins (or top pins) rest in chambers. When a key is inserted, its bidding – the specific cuts along its blade – lifts the key pins to varying heights. The goal is to align the shear line, the point where the key pins meet the driver pins, perfectly with the cylinder's rotation point. If the correct key is inserted, a straight line is formed across all pin stacks, allowing the cylinder to turn and the lock to open. An incorrect key will leave pins misaligned, preventing rotation.
The problem, as Foster highlights, stems from mass manufacturing and the pursuit of convenience, which leads to a significant lack of uniqueness in keys. This isn't always accidental; sometimes, common keying is intentionally implemented for specific operational reasons, such as utility access. However, this convenience inherently creates vulnerabilities. Prior work and common knowledge in physical security have long pointed to the existence of "universal" keys, but Foster's talk brings a practical, penetration testing perspective to how these issues manifest and are exploited in real-world scenarios, moving beyond theoretical discussions to demonstrate tangible attack paths.
Key Findings
▶ Watch: Brava 'Key to Like' locks in Australia (5:30)
Adam Foster's talk unveils several critical findings regarding the inherent weaknesses in physical key systems, demonstrating that the notion of secure key control is often an illusion.
Firstly, widespread common keying is a pervasive and easily exploitable vulnerability. Foster illustrates this with several examples:
- The CH751 key is an astonishingly common key in US manufacturing, capable of opening numerous cabinets, desks, and even server enclosures. Foster shares an anecdote of a friend's trailer opening with a CH751 and a Reddit image showing a cabinet containing three CH751-keyed locks, all opened by a single CH751 key.
- In Australia, many modern commercial buildings utilize locks with specific stampings, such as "KA5" by Bravo. This "Key to Like" system means that a single key can open multiple locks across different buildings, an intentional design choice for ease of installation that directly sacrifices security. Foster confirms this has worked "multiple times" in his experience.
- Utility boxes often feature standardized keys, like the Western Australian Standard Key (W). While intended for restricted utility access, Foster demonstrates these keys are easily obtainable from locksmiths for around $150 or even cheaper from suppliers ($40), or can be derived by simply opening a box and measuring the pins.
Secondly, Foster demonstrates the practical exploitability of cross-keying and master keying systems. He explains how master wafers (small pins inserted into the pin stack) allow a single lock to be opened by multiple different keys. This principle is extended in master key systems, where a hierarchical structure (Grand Master Key, Master Key, Operator Key) means all locks share a common underlying keying system. Foster's crucial finding is that by disassembling just one lock core from such a system, an attacker can reverse-engineer the master key for an entire facility.
Finally, a significant finding is the low barrier to entry for attackers. Foster debunks common client misconceptions about the difficulty and cost of these attacks:
- Tools are cheap and accessible: A key nibber for cutting keys costs $15-20, calipers for measuring pins are $4-25, and decoder cards are available. Simple household items like cardboard (for a pinning tray) or a plastic milk jug (as a plug follower) can replace specialized locksmith tools.
- Key blanks are readily available: Despite claims that only locksmiths can obtain blanks, common blanks are easily purchased on eBay. Even "high security" or restricted blanks can be found on platforms like AliExpress, often due to supply chain quirks or mistranslations ("embryo keys").
- Attack execution is fast and practical: Field stripping a lock can be done in 5-10 minutes with practice. Deriving key cuts and cutting a new key can be done in the field in about 20 minutes, or the core can be photographed, analyzed off-site, and a key cut later.
These findings collectively highlight a significant disconnect between perceived and actual physical security, revealing that many conventional lock systems are vulnerable to straightforward, low-tech attacks.
Technical Deep Dive
▶ Watch: Automated tools for deriving master keys (11:30)
The technical core of Foster's presentation lies in demystifying how common keying, cross-keying, and master keying work, and crucially, how they can be exploited.
Understanding Common Keying Vulnerabilities
Common keying refers to the widespread use of identical keys across numerous locks, often due to mass production or intentional standardization. Foster provides concrete examples:
- CH751: This key, prevalent in US manufacturing, is a prime example. Its widespread adoption means a single CH751 key can open a vast array of filing cabinets, desk drawers, and utility panels. The vulnerability isn't in a design flaw of the lock itself, but in the non-unique keying adopted by manufacturers for convenience, assuming these locks protect low-value assets or that the risk of a universal key is negligible.
- Bravo "KA5" (Key to Like): In Australia, many commercial buildings use Bravo locks with a "KA5" stamp. This indicates a "Key to Like" system, where multiple locks are intentionally keyed alike. This simplifies installation for builders who don't want to design a master key system but still want some level of common access. An attacker finding one such key or purchasing a "KA5" blank can potentially access numerous doors across different client sites. Foster notes there are at least "five of them" (meaning five common KA series) that can open multiple locks.
- Western Australian Standard Key (W): This key is standardized for utility access (e.g., meter boxes, water areas). While intended to restrict access to utility companies, the key's specifications are known, and blanks can be purchased. Crucially, as Foster points out, these utility boxes often represent the initial access point into a building's perimeter, allowing an attacker to bypass fences or external gates. Deriving the key simply involves opening a box (if already accessible) and measuring the internal pin depths.
Exploiting Cross-Keying
Cross-keying is a technique where two different keys are designed to open the same lock. This is achieved through the ingenious use of master wafers. Instead of a single key pin in a chamber, a master wafer splits a key pin into two smaller pins.
Consider a chamber that normally requires a "7" cut on a key. With master wafers, this "7" could be split into a "3" pin and a "4" master wafer.
- Key A with a "3" cut would push the "3" pin up, and the "4" master wafer would then align with the shear line, allowing the lock to open.
- Key B with a "7" cut would push both the "3" pin and the "4" master wafer up together, and their combined height would align with the shear line, also opening the lock.
This mechanism creates multiple shear lines within a single pin stack. Foster illustrates this by showing how, in an example lock, with the master wafers present, both a specific operator key and a master key can achieve perfect alignment across all pins, making them "flush."
Abusing Master Keying Systems
Master keying is a hierarchical system designed for convenience in large buildings or complexes. A Grand Master Key (GMK) can open all locks, Master Keys (MKs) open specific groups of locks (e.g., a floor or department), and Operator Keys open individual doors. The critical technical detail, as Foster explains, is that all locks within a master-keyed system share the same underlying key material and incorporate master wafers.
The exploitation process for master keying involves:
- Obtain a lock core: This can be from any lock within the master-keyed system.
- Disassemble the core: This reveals the key pins and master wafers inside each chamber.
- Measure the pins and wafers: Using calipers, the exact depths of the key pins and the thicknesses of the master wafers are measured.
- Derive the master key: Based on these measurements and the principles of master wafer operation, an attacker can calculate the bitting (cuts) required for the master key. Foster references a tool by Braden (from a talk on exploiting key space vulnerabilities) that simplifies this process. By inputting the known cuts of an operator key and the measured pin/wafer values, the tool can output the bitting for potential master keys. The example given is "6 minus what equals question mark" to illustrate how the master wafer value is derived from the difference between the operator key cut and the master key cut.
This technical understanding reveals that the security of an entire master-keyed system is only as strong as the weakest link – any single lock that can be disassembled.
Demo / Proof of Concept
▶ Watch: Sourcing restricted and high-security key blanks (15:00)
While Adam Foster's talk doesn't feature a live, on-stage "demo" in the traditional sense, it provides extensive practical proof of concept through real-world anecdotes, demonstrations of tools, and detailed explanations of field operations. The core of his "demo" is to illustrate the sheer practicality and low barrier to entry for these attacks.
Foster cites an example from fellow physical security expert Joss, who demonstrated impressioning – creating a working key from a blank by carefully inserting and turning it in a lock, leaving faint marks that indicate where to file – in just 1 minute and 43 seconds. This highlights the speed with which a key can be created from scratch.
More broadly, Foster details the tools and techniques that make these attacks feasible in the field:
- Low-cost tools: He showcases a key nibber, a simple tool costing $15-20, which can cut a key blank with precision. Combined with 3D-printed guides (requiring about 30 minutes on a 3D printer), this allows for accurate key cutting without expensive machinery.
- Measurement devices: Calipers, readily available for $4-25, are sufficient for measuring pin depths. Alternatively, decoder cards can be used to directly read the bidding of an existing key.
- Improvised locksmith tools: Foster explains how common items can substitute specialized locksmith equipment: cardboard for a pinning tray and a rolled-up plastic milk jug body as a plug follower (to prevent springs from flying out during core disassembly).
- Accessibility of blanks: He debunks the myth that key blanks are restricted to locksmiths. Common blanks are easily found on eBay, and even "high security" or restricted blanks can be sourced from platforms like AliExpress, sometimes due to mistranslations or unusual supply chains. Foster humorously refers to restricted blanks being called "embryo keys" on AliExpress.
The true "proof of concept" is Foster's assertion, based on his own experience as a penetration tester, that these attacks are not theoretical but routinely executed in the field. He states that an experienced individual can field strip a lock (disassemble it to access the core) in approximately 5 to 10 minutes. The process of calculating key permutations, cutting a new key, and reassembling the lock can be done entirely in the field in about 20 minutes. Alternatively, an attacker can take a photo of the disassembled core, leave the site, perform calculations and key cutting in an office, and return to test the newly created key. This practical workflow underscores that bypassing physical key controls is a realistic and efficient attack vector.
Defensive Implications
▶ Watch: 3D printing high-security keys (Q&A) (22:00)
Adam Foster’s talk provides crucial insights for defenders looking to strengthen their physical security posture, directly challenging common misconceptions held by clients and organizations.
Debunking Myths:
- "Advanced attack, highly motivated attackers only": Foster emphatically refutes this, demonstrating that the tools and knowledge required are cheap, accessible, and easily learned. The attack surface is broad, ranging from "dummy uni students" seeking roof access to "herbexes" (urban explorers) and actual physical threats. Defenders must consider a wider range of threat actors.
- "Blanks can only be bought by locksmiths": This is a critical misconception. As Foster shows, common key blanks are readily available on eBay, and even "high security" or "restricted" blanks can be sourced from international online retailers like AliExpress. The control over key blank distribution is significantly weaker than often assumed.
- "We use high security keys; only the Master Locksmiths Association (MLA) can get those": While high-security keys offer better protection, their blanks are not entirely impervious to illicit procurement, as demonstrated by the AliExpress example. Furthermore, even high-security systems can be vulnerable if master keying principles are poorly implemented or if a core is compromised.
Actionable Defensive Strategies:
- Understand Your Threat Model: The most important takeaway. Defenders must move beyond generic security assumptions and realistically assess who might want access to their physical spaces, what their motivations are, and what resources they possess. A $20 lock from a hardware store for a critical server room door is a clear miscalculation of the threat model.
- Avoid Common Keying: Actively identify and replace locks that use widely known common keys (e.g., CH751, Bravo "Key to Like," utility standards). These keys are essentially public knowledge and offer no real security.
- Scrutinize Master Key Systems: If master key systems are necessary for operational efficiency, ensure they are designed with security in mind. Regular audits should check for potential vulnerabilities where a single lock core could be easily removed or disassembled. Consider using systems that make key derivation extremely difficult, such as those with complex pin geometries or proprietary components.
- Implement Restricted Keyways with Strong Controls: While blanks for "restricted" keyways can sometimes be found, using them still increases the barrier to entry significantly compared to non-restricted options. Crucially, strict key control policies are needed, including tracking, auditing, and immediate reporting of lost or stolen keys.
- Consider Advanced Lock Technologies: Foster mentions options like Abloy Protec (known for its rotating disc mechanism and tight blank control) and Cyberlock (which integrates physical keys with digital certificates and access control, potentially bridging physical and digital security). These systems offer higher resistance to picking, impressioning, and unauthorized key duplication, but also come with their own set of considerations (e.g., potential IoT vulnerabilities for smart locks).
- Physical Security Audits: Conduct regular physical penetration tests or "red team" exercises specifically targeting key controls. This includes attempting to derive master keys, duplicate restricted keys, and exploit common keying. This practical testing will reveal vulnerabilities that theoretical assessments might miss.
- Secure Lock Cores: Ensure that lock cores themselves cannot be easily removed or disassembled without authorization. This might involve using specialized screws, anti-tamper mechanisms, or physically securing the lock body.
Ultimately, defenders must acknowledge that physical access often precedes digital compromise. By understanding the practicalities of key control bypasses, organizations can invest in appropriate physical security measures that align with their true risk profile.
Key Takeaways
- Common Keying is a Widespread Vulnerability: Many commercial and utility locks utilize easily obtainable or widely known common keys (e.g., CH751, Bravo "KA5," WA Standard Key), offering minimal security and acting as de facto universal keys.
- Master Keys Can Be Derived from a Single Lock: Hierarchical master key systems, while convenient, are vulnerable. By disassembling just one lock core from a system, an attacker can measure internal pins and master wafers to calculate and reproduce the master key for an entire facility.
- Attack Tools and Key Blanks Are Cheap and Accessible: Debunking common myths, Foster demonstrates that key nibblers ($15-20), calipers ($4-25), and key blanks (eBay, AliExpress) are readily available and affordable, significantly lowering the barrier to entry for attackers.
- Physical Key Bypasses are Practical and Efficient: With practice, an attacker can field strip a lock in 5-10 minutes and cut a working key in under 20 minutes, either on-site or by analyzing components off-site, making these attacks a realistic and time-efficient threat.
- Physical Security Threat Models Are Often Underestimated: Organizations frequently overlook the practicalities of physical access attacks, focusing solely on digital threats. A comprehensive security strategy must acknowledge and mitigate physical vulnerabilities, considering diverse threat actors from curious students to malicious actors.
- Invest in Threat Model-Appropriate Security: Simple, cheap locks are inappropriate for securing sensitive assets. Organizations should evaluate their specific threat models and consider higher-security keying systems (e.g., Abloy Protec) or integrated physical-digital solutions (e.g., Cyberlock) that offer greater resistance to key duplication and manipulation.
About the Speaker(s)
Adam Jon Foster is a Senior Penetration Tester at OneStep Group, specializing in a broad range of security assessments including internal, external, and physical penetration testing. He is known for his expertise in physical security, often seen at conferences performing "physex stuff" and meticulously photographing locks. Foster's practical approach to security is evident in his use of "unlicensed tools" and his ability to demonstrate how seemingly complex attacks can be executed with readily available resources.