Home > Projects > Security – Safety Projects > Cracking an electronic safe using brute force

Cracking an electronic safe using brute force

Summary of Cracking an electronic safe using brute force


The author recounts losing access to a fire safe due to forgotten codes and opting for a non-destructive brute-force solution. By exploiting a lockout reset vulnerability via battery removal, they automated the keypad entry using an Arduino, relay boards, and photosensors to detect LED status, enabling them to crack the five-digit code in under six days without damaging the safe.

Parts used in Electronic Safe Brute Force Project:

  • Arduino
  • Relay boards
  • Photosensors
  • Jumper wires
  • Blade (for cutting hot glue)

Preface

There’s nothing nefarious here, nor is the information contained herein particularly helpful to thieves or the dishonest. A thief would just cut the dang thing open and be done with it.

Cracking an electronic safe using brute force

The story

So I bought a fire safe to protect some documents that I wanted protected in the unlikely event of a house fire. When I got the safe, I promptly emailed myself the manufacturer’s code, set up an easily remembered user code, and stored the manual with the manufacturer’s code in a “safe place.”

Fast forward two years. I need to get to one of the documents in the safe. I can’t seem to remember the user code. No problem, I say, I’ll just look up the manufacturer’s code in my email. So, what keywords did I use to make it searchable? Apparently not safe, combo, password, combination, or any combination or related word thereof. Ok, no problem, I’ll just go get my manual from… umm, nope, not in my drawer with user manuals, nor in my filing system. WTF. The combos are both lost for good.

So I start considering my options. I could send a notarized letter to the safe company, but where’s the fun in that? I could open it destructively, but I didn’t really want to do that either. The lock is an electronic combination with a five digit password, so brute forcing seems plausible, but there’s a two minute lockout on 3 wrong combinations, taking the brute force time to 140 days. That won’t work. Unless…

I open up the battery compartment, enter three wrong combos, it goes into lockout mode, I remove the battery for a couple seconds and put it back. Yep, it “forgot” it was in lockout mode, and I can now enter 3 more passwords. Only 99,994 more to go. I estimate the safe could be opened in less than 6 days using brute force. I’m not in a real hurry for the documents, don’t want to break the safe, and love the challenge of getting my safecracking on, so I commit to cracking this sucker via brute force.

At first I considered a mechanical dialer that would punch the buttons for me, but the mechanics of doing that with acceptable speed seemed somewhat difficult – not an afternoon’s kind of project.

However, by cutting away a couple globs of hot glue with a blade, i could access the keypad contacts directly. Conveniently, there are access holes for connecting wires to the contact array. So I started sketching up where I need jumper wires and placing them.

Then it was a simple matter of using some relay boards I had laying around to start dialing the keypad using an arduino I also had laying around. I used a couple of photosensors to read the LED status indicators so that I could know if the combo failed or succeeded. Finally, I used an additional relay to power cycle the keypad after 3 failed combinations to defeat the lockout feature.

Read More:   Cracking an electronic safe using brute force

Quick Solutions to Questions related to Electronic Safe Brute Force:

  • How can I bypass the two-minute lockout on an electronic safe?
    Enter three wrong combinations to trigger lockout mode, then remove the battery for a couple of seconds and reinsert it to reset the state.
  • What is the estimated time to brute force a five-digit password with this method?
    The safe could be opened in less than 6 days using the described brute force technique.
  • Can I use a mechanical dialer for this project?
    No, the mechanics required for a mechanical dialer to achieve acceptable speed were considered too difficult for an afternoon project.
  • How did the author read the success or failure of a combination attempt?
    The author used photosensors to read the LED status indicators on the keypad.
  • What hardware was used to automate the keypad dialing?
    An Arduino and relay boards were used to start dialing the keypad contacts directly.
  • Why did the author choose not to send a notarized letter to the safe company?
    The author felt there was no fun in sending a notarized letter compared to the challenge of cracking the safe themselves.
  • How did the author access the keypad contacts internally?
    They cut away globs of hot glue with a blade to access the contact array through existing holes designed for connecting wires.

About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:
LinkedinTwitter
Scroll to Top