start	end	text
0	3000	Mark and James are here to amaze you.
3380	8660	With their safe cracking skills with cash drugs and guns.
13980	16080	Oh, welcome everybody to our talk.
16080	17360	Cash drugs and guns.
17360	19320	Why your safes aren't safe.
19900	21640	So we'll start off here with a little introduction.
21640	22840	So my name is Mark.
22840	24940	I lead an awesome engineering team.
24940	26720	We build embedded products.
26720	28200	We secure embedded products.
28200	31900	We usually work on stuff where our hack- our attackers have physical access.
32080	39080	So I have a background in highly regulated design, industrial, aerospace, military, IOT, that kind of stuff.
40060	41000	And I'm James.
41000	45220	I work with Mark, although this work is not part of our professional work.
45220	46940	I do a lot of the same stuff.
47160	56180	Product design, sometimes cyber security design, sometimes cyber security analysis and reverse engineering, which is what I find really fun and a lot of what I contributed to this.
57140	61520	Like James said, the views and opinions here are not of any organization we talk about.
61520	62840	They're not of our employer.
62840	64860	This work was conducted independently by us.
64860	67980	This has been our nights and weekends for the last two years.
68480	71600	So, who remembers this incident with Liberty Safe?
71600	79080	Where the Liberty Safe handed over a code to the FBI responsive to a search warrant for a user's home.
79240	83520	And so the main question to us is, you know, how is that even work?
83520	85040	How is that even possible?
87700	95540	That is a new third party that lets them open a security product that's not connected, that's installed inside their home.
95940	97500	So we did some research.
97500	101220	Turns out Liberty Safe uses a brand of lock called SecureRAM.
101220	106340	So SecureRAM locks are UL certified high security electronic locks.
106360	109760	And of course the first stop in any reverse engineering, we go to eBay.
109760	110920	We buy one.
110920	113020	So we bought a Liberty Safe top lid.
113020	115860	Turns out these are actually OEMed by SecureRAM.
116220	121100	And so we want to take a little side note, talk about the terminology we use.
121100	123760	So we call the outside part of the safe the keypad.
123760	125140	This is where you type in the codes.
125140	126320	It's got a little screen.
126320	127880	Shows you some nice information.
127880	130380	That's connected via cable to the latch.
130380	132160	The latch is the inside part of the safe.
132160	137720	That's the part that keeps you from turning the handle to open the safe when you haven't entered the right code.
139400	147500	So we've got a SecureRAM top lid latch and keypad and we set about reverse engineering it so we could figure out how this stuff worked.
147740	155180	And the safe logic series which includes the top lid, all the smarts are in the latch inside the safe.
155180	160160	The keypad does have a microcontroller but the only function it has is turning an LED on and off.
160160	163460	So we're really just interested in what's inside the latch.
163460	166000	And the hardware is pretty simple.
166000	172300	It's just a microcontroller and a little motor driver that opens and closes the latch or allows it to open and close.
172420	177280	So what we really need to reverse engineer is the firmware on that microcontroller.
177340	179080	And it's kind of a weird old processor.
179080	182100	This renaissance 78K0SKX1 series.
182480	186100	So it doesn't actually have a mechanism to read out the firmware.
186240	187460	They didn't disable it.
187460	190360	It's just not part of that microcontroller's boot ROM.
190360	196060	But we figured out a way to get it to spill its guts and read out all the data in the flash.
196060	199040	We gave a talk on that at Hard Wario last year if you want to know more about that.
199040	201660	But it's a new exploit we came up with against that part.
201980	205460	So with the firmware out, we reverse engineered it.
205460	207420	This was a mostly manual process.
207420	209380	It's a bit of a weirder , older architecture.
209440	214740	There was no support in Ghidra, no support in IDA, no support in any reverse engineering tools that I could find.
214740	217480	So we wrote our own disassembler, which was pretty fun.
217700	224520	And from the disassembly, we manually translated that back into a sort of pseudo C.
224520	228540	We worked through all the byte code in the device so that we weren't missing anything.
229000	232700	And we figured out at a high level, how does everything work?
233180	237900	So this lets us answer the question, are there any super secret backdoor codes?
237900	240560	Is that how LibertySafe is able to do this thing?
241360	242220	No.
242340	243320	There's not.
243420	245680	In the safe logic, there's two codes.
245680	247560	Manager code and the user code.
247560	249240	Both of these unlock the safe.
249240	253380	The manager code is a little special because it can disable or change the user code.
253380	256600	But those are the only ways programmed in that let you open the lock.
256600	260360	There's no secret backdoor in the code.
260700	265960	But as an end user, you might not necessarily know about the manager code.
266040	272220	So LibertySafe, as an example, when we bought our locks from LibertySafe, we got two sets of documentation.
272220	276260	One intended for the person installing the lock and one intended for the end user.
276260	279540	The end user manual does not say anything about the manager code.
279540	280820	It only describes one code.
280820	282180	And that's the user code.
282180	292100	So in LibertySafe's practice, which is not necessarily unique to LibertySafe, they set the manager code and they keep a record of that with the serial number of the safe.
292600	298840	The well intentioned version of this is that they can use that to help you out if you get locked out of your safe.
299220	301360	Perhaps they hand it out responsive to a warrant.
301360	303440	They did change their policy around this .
303720	306900	So responsive to the kind of controversy that emerged.
306900	309580	I think they're more strict about when they'll give that out .
309580	311200	You can request that they delete it.
311200	312560	And you can also reset it yourself.
312560	317820	There's just a little pinhole in the lock that lets you clear both those codes back to default.
318500	320440	But this isn't a problem with the lock.
320440	322520	The lock is doing exactly what it says it does.
322520	325860	Both those codes are in the operating manuals from SecureRAM.
325860	327660	They're easily found online.
327660	330180	There's no secret backdoor here.
330180	334680	This is really just a management practice employed by LibertySafe, for example.
334680	347400	But it's also a management practice recommended by SecureRAM in certain documents that you get with the locks, like the printed manual that comes with some of their locks intended for an audience of like safe integrators or OEMs.
348120	351420	So this management practice is just that.
351420	358020	It's not indicative of any technical backdoor or failure in the lock itself.
358020	363160	And really after looking through everything, what we realized is that these locks are fine.
363160	367020	We didn't find any clear exploitable security vulnerabilities in the lock at all.
367020	375180	The only thing we found, which is not a best practice, they use a non-constant time compare on the unlock code when they're comparing that to what you entered.
375180	379720	But we weren't able to exploit this to actually get an advantage in opening the lock.
379720	383400	And even if we could, there's like a five-minute timeout every three wrong codes.
383400	386420	It would be very difficult to exploit this in the field anyways.
386800	389840	So we think it's pretty secure.
390120	394920	In safe logic mode, in analog mode, where is he?
394920	396740	All right.
396740	401020	So talking about analog mode, turns out there's also a digital mode.
401020	407360	In analog mode, the way the lock works, when you hit a keypad button, it transmits that as an analog voltage down to the lock.
407360	409500	But of course, there's actually a digital code.
409500	416400	For the eagle-eyed among you, I know you're all out there, the struct that James showed had an enum that said lock type.
416400	418380	It said analog lock type.
418380	423060	Turns out there's a digital lock type with a whole bunch more interesting code in the latch.
423380	426620	So it turns out Securum actually has a whole digital line of locks.
426620	430440	These are called the ProLogic and ScanLogic series of locks.
430700	433600	So we've dug into the ProLogic series first.
433600	438260	So we looked at the ProLogic L02 as kind of our main example.
438260	441740	So this is the most popular lock in their digital series of locks.
441740	445940	This is another UL certified high security electronic lock.
446340	448320	So of course we expanded the scope.
448320	450360	Now we've kind of gotten this curse.
450360	452600	We have dozens and dozens of locks.
452600	453940	We have debug tools.
453940	454980	We have interfaces.
454980	456020	We have cables.
456020	457920	It's gotten way out of hand.
457920	460760	I have too many boxes of stuff in my office now.
461260	463400	So some interesting facts that we've got.
463400	470980	When you reset the latch on this lock, we actually found it doesn't reset the codes that you use to open the safe.
470980	475920	If you recall in the safe logic, when you reset the latch it does reset all the codes.
475920	477700	We found this really interesting.
477700	479720	It also has this recovery mode.
479720	486520	This lets you call the factory, you get a magic code and this code re- does reset all the codes on the lock.
486520	492160	And of course we read the manual and it talks all about the encryption and the security in these locks.
492160	496060	So, first step, we've got to figure out what's inside this lock.
496540	501000	So it turns out it's a renaissance RL78G13 lock.
501000	504260	Luckily this was a processor in the PS4.
504260	507240	So the hackers, they already took care of it for us.
507240	511400	No need to exploit anything, no need to make any new research.
511500	516540	Failover flow has a really nice blog post that talks about the work that they did.
516540	521120	And of course the more widely used this processor is, the bigger the attack surface.
521120	524660	And the PS4 is a huge attack surface for locks.
526960	535480	So with that in mind, we're going to look at the code now on the pro logic keypad and we've actually got to get it out first.
535480	538500	Like Mark said, failover flow is going to make that pretty easy for us.
539140	546460	So on this processor, there's a combined flash and programming, flash programming and debug pin which is called the tool pin.
546460	548500	It's basically a bidirectional UART .
548620	556660	And the flash programming mode on that pin doesn't have any code , doesn't have any command that lets you read out the flash memory.
556720	562000	It has a debug mode that has some commands like write to RAM and execute from RAM.
562000	573140	So we can just upload a little piece of code that takes over the tool pin and sends out every byte of memory over the tool pin as a UART including all the firmware, all the data, all the RAM, everything.
573620	577260	So flash programming mode is publicly documented by renaissance.
577260	578640	It's very cleanly documented.
578640	580140	It's pretty easy to use.
580240	587380	Debugging mode is, you know, they tell you all about what it is and what it does but the actual line protocol is not documented by renaissance.
587740	590720	Fortunately it is documented by failover flow.
590820	597400	So we were able to leverage their work to a huge extent and they actually even had a reference implementation of this protocol.
597540	603920	But there's still a little bit of work we have to do because there's a couple security measures that we have to bypass.
604080	605520	Basically two things.
605520	614080	You can disable debugging on the processor and you can set a password that you have to supply the correct value of in order to access debugging.
614080	622500	So failover flow documented that you can glitch patch past these and had some good info about how but not an actual reference implementation.
622760	627200	So we've got to set that up ourselves and figure out the glitch parameters in order to bypass that.
628080	632180	The first step of the first step is, of course, actually getting connected to the pins.
632300	635400	That's pretty easy on this lock because it's also the programming port.
635400	638520	So secure M has brought it out as this nice labeled header here.
638940	641380	You can also see it through the battery door.
641460	643320	We're going to take advantage of that later.
644420	649080	So aside from those four pins, the only thing we've got to do is set up for some voltage glitching.
649080	659980	So we take off the core voltage regulator capacitor and we replace it with a little MOSFET that we're going to control so that we can get the processor into a weird state and make it not do some of these security checks correctly.
660160	661280	So we're set up.
661280	663600	We're ready to start figuring out our glitch parameters.
663740	665380	It's all running on a Raspberry Pi Pico.
665380	666900	We reimplemented this stuff.
667340	670920	And, you know, I think I'm pretty good at this stuff.
670940	674440	But I don't expect a new to me glitch on a processor .
674440	676620	I don't really know much about the internals of.
676620	678900	I don't have any idea what the glitch parameters are supposed to be.
678900	681120	I don't expect it to work on the first try.
681420	682460	But it did.
682880	687460	And it turns out the reason that it did is because they didn't disable debugging.
687600	689480	So we didn't have to glitch past that.
689480	690000	That's easy.
690000	690820	That's nice.
690820	692100	Makes my life easier.
692400	697340	But we still need to figure out the unlock code or renaissance calls it debugging ID.
697820	700460	That's a ten byte code we have to figure out.
700460	704400	And fail overflow also documented how you can glitch past this and kind of dump it anyways.
704400	705820	And once you dump it, then you know it.
705820	707480	So that makes it easy.
707720	711740	But, you know, I mean, I like to try some of the easy things first.
711740	716260	Let's try a few basic pass codes like all zeroes.
718100	719820	It's all zeroes.
719860	723100	So we actually didn't have to glitch past anything.
723100	726140	We didn't violate any of the security guarantees of this microcontroller.
726140	727660	We didn't exploit anything.
727740	730740	We just read the code out through the debug port.
731520	732660	So we've got it.
732760	736580	We're going to bring it into Ghidra and we're going to start looking at it.
736580	741400	Thank you to XYZZ on GitHub for their Ghidra RL78 plugin.
741600	742620	I'm pretty good at Ghidra.
742620	745600	Still haven't quite figured out how to implement a new architecture.
745880	747480	So this was a huge help.
747480	748520	It does struggle a bit.
748520	752200	It's got a weird 16, 20 bit address space on this part.
752380	755240	It's 20 bits but sometimes you only know 16.
755440	757340	Makes it very nice to reverse engineer.
757560	759580	Anyways, we fixed it up.
759580	760600	We worked through it.
760600	767700	We didn't look at every single byte of code but we looked at everything that, you know, we found everything that's in the manual.
767740	769720	We found how that stuff gets accessed.
769720	772940	We checked to see if there was anything else you could access that wasn't in the manual.
773280	775500	That's the level of checking we did with this.
775620	780240	And we at least got to the level of understanding how everything critical works.
780240	781800	How does it check unlock codes?
781800	783280	How does the recovery process work?
783280	785720	How does it talk to the latch inside of the safe?
786020	791940	And when we fully understood that, we realized there were some interesting design decisions in this lock.
791940	796000	So one kind of paradigm we have to establish is where do the codes go?
796000	799740	Do they go inside the safe or outside the safe?
799740	805360	Because outside the safe is also where the people who you don't want to be inside of the safe also are.
805420	810120	And inside the safe is protected by steel and concrete and whatever else goes into a safe .
810120	810400	I don't know.
810400	811620	I'm not a safe engineer.
811760	817900	But it should be at least as secure, you know, as the valuables you're trying to protect or the guns or whatever.
818840	821480	So what do you ‑‑ oh, go.
821480	822640	What do you think they did?
822640	831880	In the case of this product that we analyzed from SecureM, what they actually did is they put the codes in the keypad outside of the safe.
831880	841420	So if we read out the data flash the same way that we did reading out the firmware and everything, data flash is, as the name implies, it's flash used for storing data.
841600	842080	Yeah.
842080	844940	The super code is just right there.
844940	847040	It does look a little funny, though.
848640	853020	So for those of you remember, this OEM, we talked all about the encryption.
853580	857040	So it turns out that this super code is stored encrypted.
857200	862140	You might notice it's really long for just storing a six or eight digit code.
862220	865500	And the super code on this processor, this is kind of like the root password.
865500	867400	Let's you bypass things like time delay.
867400	870420	Let's you manage and change the codes of all the users.
870520	873460	It lets you manage all the settings on the lock.
873460	878720	It's encrypted with a protocol called XXTEA with a 128 bit long key.
878720	886280	This protocol, this key length is considered secure against things like brute forcing, GPUs, that kind of stuff.
886280	890140	There's no reasonable sized GPU cluster you could use to brute force this.
890140	893360	So how do we actually decode this?
893360	895920	If we can't brute force it, we can't do that.
895920	899000	Luckily, Secura made a great decision for us.
899000	900820	They put it right in the flash.
900820	902940	Right next to the super code.
903060	912620	Luckily all we got to do, read it out, decrypt the super code, add the 96 bits of static key, key bits that don't change, and then we can just decrypt the codes.
913980	917020	So there's another lock that's part of their digital line up.
917020	919060	So we looked at the scan logic basic.
919240	922560	Unfortunately, this one is not as advanced as the LO2.
922560	924540	It doesn't feature any encryption.
924620	926900	It just stored it right in the flash.
926900	928480	You can just read it right out.
928480	929620	Plain text.
931540	934760	So now let's talk about how do we actually attack this processor?
934900	936320	So we made this great tool.
936460	938600	It started out, I designed this beautiful board.
938600	939740	It was the right shape.
939740	942860	And as we started working on it, we needed to bend it a little bit.
942860	944820	We needed to run some wires because we broke it.
944820	946140	We got to glue it in place.
946220	948940	So now it's acquired a little bit more of a hackery look.
949160	952780	So all we got to do, we take it, it reaches way up in there.
953140	954980	Right up to that debug port.
955500	956760	Connects right in.
957580	959840	And we go through this long complicated process.
959840	961340	This complicated exploit.
961540	963440	First thing, we enter debug mode.
963440	964360	Not disabled.
964360	965380	Enter debug key.
965380	966340	All zeros.
966900	968520	Then we inject a blob of code.
968520	970320	We patch that debug RAM.
970380	973580	And then we dump all the codes in .8 seconds.
973900	976020	We actually were to optimize it a little better.
976020	977920	It's slightly better than this now.
978640	981580	So this is an exploit we call code snatch.
981740	985640	And so now James is going to give us a short demo on the safe here.
993140	993740	All right.
993740	997640	So first we got to take out the battery door and then go and put this tool in.
997640	999100	It's a little bit awkward to get in there.
999100	1000540	We're not mechanical engineers.
1000540	1002380	We're electrical and firmware engineers.
1002580	1006400	But after we get it in, he's going to turn it on and it's going to read out the code.
1006400	1009900	So you can see the code here is 001337.
1010520	1012380	So now we got to put the battery back in.
1012380	1017200	Wait for our safe lock to boot up which takes a surprisingly long amount of time.
1018040	1018660	Keep going.
1018660	1019720	Keep waiting here.
1021140	1021860	There we go.
1021860	1022920	Now we're all booted.
1022920	1024400	Now we can try out that code.
1024400	1026660	See if it was the right code for us.
1027800	1029500	And boom, there we go.
1029500	1033380	Of course with the GSA container, we always got to indicate what state it's in.
1033380	1037200	So we got to leave it in the open state at all times for the safe.
1050250	1050910	All right.
1050910	1052250	So who actually uses these things?
1052250	1053450	I mean, anybody serious?
1053450	1054110	Right?
1054110	1058430	So it turns out they're used by these OEMs for consumer safes.
1058510	1067810	Uh, Securram in a 20, 2021 interview claims that they have 70 percent of the smart lock system market in the U.S.
1067810	1071830	and that they sold to approximately 3 million customers in North America.
1071930	1075710	We're not sure what the split is between the vulnerable and non-vulnerable locks.
1075710	1078830	But as far as we can tell, they have high penetration in the market.
1078870	1087010	So they're used by companies like Liberty Safe, Fort Knox, Rhino Metals, Fire King, Pro Steel, Tracker Safe, High Noble, Sun Noble, those kinds of companies.
1087110	1089770	We didn't actually buy locks from all these companies.
1089770	1096390	What we did is our exploits work on locks manufactured between May 2014 and March 2025.
1096630	1104050	So we look to see if these vendors sold at least one of the vulnerable models during the overlapping with those manufacturing dates.
1104170	1110890	So these companies sell safes that are designed to protect things like firearms and personal documents, things like that.
1111150	1113430	So besides firearms, you know, what are they used for?
1113430	1115430	Anything, anything actually serious?
1115650	1119490	So we took a look, turns out these are big and pharmaceutical safes.
1119490	1126630	Safes used to store and protect narcotics for manufacturers, distributors, pharmacies, hospitals.
1126630	1134230	The L0 tier appears to be the safe lock of choice for pharmaceutical locks, especially in the low end market.
1134230	1142890	It's the cheapest safe lock that actually supports the required features like time delay and multiple access users.
1142890	1148950	So it's the default choice as far as we can tell on Senox pharmaceutical safes and Narc safe pharmaceutical safes.
1148950	1151670	Narc safe luckily they list a couple of their users.
1151670	1158290	They're used by some of the largest pharmacies in Canada, like Pharma Choice which has over 800 locations.
1158290	1162710	And other people like the government of Canada is listed as a user for them.
1163310	1165830	So we wanted to go see are these actually out in the world.
1165830	1180370	So on the right hand here you can see a screenshot from a news story a couple of years ago where CVS updated their whole fleet of locks to add time delay as part of the opioid epidemic.
1180930	1184910	And on the left here it's actually one of my favorite pictures of CVS locks in the wild.
1184910	1187530	You can see there's a pro logic right on the front here.
1187530	1192650	Turns out in the background, two more bonus pro logics in this image as well.
1193250	1199310	So as far as we can tell all the coverage we showed for CVS, they all use these L02 locks at that time.
1200130	1201990	So they're also using cash drop safes.
1201990	1204470	So we found this, there's this brand, CSS.
1204470	1208190	They are a managed safe provider, later acquired by Senox.
1208190	1210590	So here's a picture of a cash drop safe in Subway.
1210590	1212270	Here's one in Papa Murphy's.
1212270	1213770	Here's one at Taco Del Mar.
1213770	1215010	Here's one at T-Mobile.
1215010	1219270	It was quite easy to find a number of pictures of these being installed in places.
1219810	1222090	So what can we actually do about this?
1222190	1234570	So as far as we can tell there are no mitigations for code snatch that don't involve updating the firmware on both the latch and the keypad to move those codes from the outside to the inside of the safe.
1234570	1240890	When we went back and forth to Securium they sent us a safe with a lock and a latch installed with updated firmware.
1240890	1244190	It looks like it moved the codes from the inside to the outside.
1244190	1246290	We never actually got a code for that safe.
1246290	1248330	We never opened it to see if it was functional.
1248330	1251570	We weren't really able to tell if the whole system worked.
1251590	1256450	But a month ago we bought a lock from distribution to see if anything had been updated.
1256510	1260450	And we, that lock was made in March of this year.
1260550	1266690	And that lock did not mitigate the error where the codes are in the keypad.
1266690	1270330	They set the debug code on this to something that's not all zeros.
1270550	1272350	This doesn't really mitigate it.
1272350	1274930	We just added the new value to our tool.
1277250	1280630	So we can't actually do a field firmware update on these parts.
1280630	1285910	The tool we made here, it connects to the debug port, it speaks to debug protocol.
1285910	1293930	You can absolutely use this or a low cost tool like it to update both the latch and the keypad for these devices.
1293930	1297930	We didn't actually implement this functionality because we didn't go rewrite the firmware for them.
1297930	1300570	But it's something that you absolutely could do.
1302790	1307090	So that requires specialized hardware that we made.
1307090	1308570	That cool little tool.
1308710	1313190	And it only works on a subset of their locks as we'll explain in a minute.
1313190	1316050	So is there an easier and more effective way in?
1316050	1317890	Is there something different we can do?
1318070	1320690	Remember the lock recovery feature.
1320830	1333010	So to quote the manual, system recovery is used to delete all the codes on the pro logic or scan logic and set the entry pad, keypad, and it's linked lock, latched back to a factory default state.
1333310	1341690	And this kind of works by, you have to be a locksmith to do this with them, but you call them, they do something on their end and that lets you reset the safe.
1341690	1344150	So what does that process actually look like?
1344330	1348150	You get into the menu and you can get into some of the menus even if you don't know the codes.
1348150	1349110	This is one of them.
1349110	1350830	You try to recover the system.
1350830	1352190	You put in your code.
1352190	1354230	That's 999999 by default.
1354230	1356550	It's a special code used for accessing this mode.
1356930	1361810	It shows a recovery challenge on the screen which is what you're seeing there.
1361990	1364430	You call secure M as a locksmith .
1364430	1365790	Tell them what it says.
1365790	1371530	They give you another code to type in and all the codes on the lock are reset including the super code .
1371710	1372510	So now you know that.
1372510	1373350	Now you own the lock.
1373350	1374330	You can change any settings.
1374330	1375630	You can do whatever you want.
1375750	1378210	So how does it actually work from a technical perspective?
1378650	1383970	We feed a few pieces of data into an algorithm and we get the response code.
1384370	1388470	So the data that goes in includes the recovery challenge which is a random number.
1388470	1390330	It's part of what was shown on the screen.
1390570	1394230	The recovery code which you had to know to access this mode.
1394410	1398330	The encryption code which is a different special code on the lock.
1398330	1402150	Secure M doesn't mention it as much in the context of the recovery procedure.
1402150	1404450	It is part of the computation.
1404550	1406270	You can also change that.
1406590	1412850	And the other things that go in are either constants or not secret like information about the configuration of the lock.
1412870	1416470	That all goes into something to make the response code that you have to type in.
1416470	1419790	And that something is also XXTEA.
1419870	1423170	And what's important about that is that is a symmetric cipher.
1423250	1428530	So there is no secret piece of data in this operation that isn't in the lock.
1428530	1431230	There's no secret that only secure M has.
1431370	1439150	And there's also no hardware security module on this lock that they could use to hide part of that computation or hide part of the secrets.
1439310	1441090	So it's all in the firmware.
1441390	1448690	And when we reverse engineer that, we learn exactly how to do this computation and produce the correct response code.
1448690	1452790	So Mark is going to show you that now we're the OEM.
1452790	1454310	We can do this.
1454830	1458830	And where is that?
1458990	1460450	There we are.
1460870	1462130	Whole thing, please.
1463770	1471510	So he's going to start by putting the lock into recovery mode, typing in that default code of all nines.
1472990	1475750	And that's going to show him the challenge code on the screen there.
1475750	1478170	He's going to type that into this little web app we made.
1478170	1480510	It's just a single page thing running some JavaScript.
1481390	1485450	And it's going to run the computation that we pulled out of the firmware.
1486190	1489270	And it's going to produce that response code.
1489370	1491150	He's going to type it in.
1498580	1500320	User code verified.
1500820	1503820	And now it's saying it's going to reset everything to the default if you'd like.
1503820	1504920	We would like.
1504920	1507380	So now everything is back to normal.
1507680	1510500	Super code 111111.
1510500	1511820	You can do whatever you want.
1511820	1515980	And Mark is going to show you that by typing in 111111.
1516680	1518080	One more one, please.
1519720	1521280	And we're in again.
1524060	1528580	So, yeah, we've got to make sure we keep track of whether it's open or not.
1529460	1531760	Where are my slides?
1532880	1533740	There we go.
1535020	1538460	So what about the recovery and encryption code, right?
1538460	1540640	So we did that with those at the default.
1540820	1542860	So is this really a thing ?
1542860	1544860	Do people just leave those at default?
1545080	1551880	Well, we've got two data points from secure RAM on whether or not you should change these codes.
1552440	1556360	And how to change them is perfectly easy to find.
1556360	1558060	These are in all the manuals.
1558060	1559500	You can look up how to change it.
1559500	1560540	But should you change it?
1560540	1561700	We've got two data points.
1561720	1565500	One is a webinar from secure RAM which is still on their YouTube channel today.
1565980	1568040	And this is a screen shot from that.
1568040	1570200	Usually never changed, usually never changed.
1570200	1574440	Quote, the encryption key is rarely changed, at least in the North American market.
1574440	1575700	No one ever changes this key.
1575700	1579300	You can change it, but most people leave it as default and that's fine.
1579320	1587140	The recovery code is also usually never changed because there is no security risk in leaving it as six nines as we saw previously.
1587440	1589300	So that's an interesting statement.
1589300	1590540	But fair enough.
1590540	1592280	This is a matter of opinion maybe.
1592540	1595120	The other data point is more positive.
1595240	1608100	In some of the printed manuals that ship with some of their locks, and this is the same manual that recommended keeping the database of unlocked codes for OEMs, they do recommend changing the recovery and encryption codes, which is a good recommendation.
1608320	1610620	We can't find this online.
1611300	1618260	So whether you as an end user will be exposed to this recommendation, it's hard to say.
1619460	1621300	But that's the recommendation we would make.
1621780	1624380	Change your recovery code, change your encryption code.
1624380	1626760	That's going to be the main mitigation for end users.
1627540	1634680	You can't change the recovery code without doing the same have a locksmith call into secure RAM thing, but you can change the encryption code yourself.
1635220	1637100	You can also disable recovery.
1637100	1639480	I don't remember how that works, but it's possible.
1640380	1654600	Beyond that, I think what we would want to see is an asymmetric cryptographic protocol used for this process so that at least there's some secret that is not in the lock that's needed to produce the correct response.
1654940	1659040	Beyond that, it's up to you whether you want this feature in there or not.
1659140	1660840	They do provide a method to disable it.
1662160	1672540	What this does actually work on, reset heist that we just showed you with the little phone thing, that works on every lock that we tested that has that feature.
1672920	1677260	So we didn't test every lock that they make, but we tested a lot of them.
1677260	1681240	Scan logic basic, for instance, doesn't have this recovery feature, so obviously it doesn't work on that.
1681280	1692820	But locks made from May 2014 to March 2025 were all vulnerable to this insofar as they used the same algorithm and the same default values.
1692820	1700480	That includes several locks that we purchased secondhand from eBay with the caveat that the seller did not know any of the codes and could not help us open it.
1700480	1703680	Even on those locks, they were left at their default values.
1704420	1709880	Code snatch with the little tool that reads out the codes is a bit more specific in what it works on.
1709880	1723360	It works on LO1s and LO2s manufactured starting sometime between 2019 and 2022, they switched over to a new processor and we don't have any exploits against the old processor today.
1723360	1727660	It also works on that scan logic basic, not sure exactly when that model was introduced.
1728100	1731560	But it does not work on some of their older pro logic locks.
1732300	1735520	So obviously we have to tell secure RAM about this.
1735520	1736620	This is kind of important.
1737140	1738840	I'm just going to walk you through the whole timeline.
1739280	1746220	September of 2023, we read the article from the New York Times about this liberty safe stuff and we say, huh.
1746960	1749800	December, we start actually looking into this.
1749800	1751700	How did they manage that?
1751700	1754400	And this is mostly top lit safe logic.
1754400	1756940	We expand that to pro logic pretty quickly.
1757720	1761780	In March, we let secure RAM know that we were looking into it.
1761780	1764900	We didn't have any vulnerabilities to report at that time.
1765060	1774000	But in April, we provided them with a detailed technical disclosure explaining all the same exploits that we showed you in this presentation today.
1775060	1785700	In May, their response to that was, quote, we will refer this matter to our council for trade libel if you choose the route of public announcement or disclosure.
1785940	1790480	Also, quote, the attack method you have indicated is not new.
1790700	1803800	And in this, the context of this is they're talking about certain tools that are intended to only be sold to locksmiths which have the capability of opening some of their locks as well as some other brands of locks according to the vendors of those tools.
1804700	1807240	So this kind of put a damper on our activities.
1807240	1811020	But in November of 2024, we were feeling like this really is important.
1811020	1812260	We really have to talk about this.
1812260	1816260	We reached out again saying, we're going to present sooner or later.
1816460	1819040	And got pretty much the same response.
1819460	1827520	The EFF in December, thank you very much to the EFF, reached out on our behalf to say, yeah, give them a round of applause.
1828120	1836120	They reached out on our behalf to say basically the same thing and also offer to include a statement from SecurRAM in any presentation we might make.
1836120	1838040	We did not get a statement at that time.
1838560	1840740	June, accepted here.
1840760	1841460	Whoo!
1841520	1843800	And we requested again a statement from them.
1843800	1845240	Didn't get one at that time.
1845340	1850640	Just last month , July, for the first time, we heard from their lawyers instead of just from their management.
1850920	1859040	This was actually somewhat more productive, but we still didn't get a statement from them at that time or at all.
1859040	1862480	They did not provide a statement to us by the time of this talk.
1862580	1867180	15 months after the initial technical disclosure, almost two years we've been working on this.
1867180	1868180	It's DEF CON.
1868180	1869700	We're telling you all about it.
1870080	1872880	So , thank you.
1874080	1877620	A couple interesting quotes from our communications with them.
1877860	1883180	We don't believe it is appropriate for you to communicate to our customers of any concern.
1883180	1887540	Your disclosure to our customers would interfere with our relationship with the customers.
1888380	1889140	And you know what?
1889140	1890560	We said, okay.
1890560	1891620	It's your product.
1891620	1892500	It's your customers.
1892500	1895080	You've got a moral right to handle this with them how you want.
1895080	1897040	We have not reached out to any of their customers.
1897040	1900200	We have not reached out to the safe vendors involved.
1900220	1905300	We did send an initial email to Liberty at the very beginning, but we never heard back and we never chased that down.
1906140	1907220	Other quotes.
1907220	1917620	We object to your sharing or disclosure of your findings even at a conference as such disclosure as you presented would be misleading and damaging to secure RAM's goodwill and reputation.
1918240	1921300	So, hey, no comment.
1921860	1926600	But we, you know, we wanted to give this talk at DEF CON last year.
1926720	1927580	And we didn't.
1927580	1931920	Because of statements like this, we decided not to give this talk last year.
1932600	1937320	This does mean they had a full extra year to address this in a manner of their choosing.
1938460	1940540	We haven't received a statement from them.
1940540	1944400	So we don't know what their plans are to mitigate these issues.
1944400	1950760	If they plan to mitigate them, you know, they did send us that one lock that was maybe moving the codes inside the safe.
1950760	1952740	It's not in the wild, as Mark mentioned.
1952920	1962700	And really the only other thing I can tell you about this is what Mark said earlier, which is that we purchased a lock last month, made in March of this year, made 11 months after our technical disclosure.
1962700	1964460	The codes are still in the keypad.
1964460	1967500	It's still fundamentally vulnerable to both of these attacks.
1967700	1968800	That's all we know.
1968800	1972180	If you're affected by these issues, you should reach out to SecureRAM.
1974400	1975460	All right.
1975460	1977860	So I want to talk a little bit about the prior art.
1978240	1982480	So we were, we learned about these tools from them.
1982480	1986360	And after they mentioned it, we took a deep dive into these two tools.
1986360	1988760	The little black box and the Phoenix tool.
1988920	2000480	These are locksmith only tools that allow locksmiths to do things like variously resetting codes, opening safes without codes, getting the codes out of locks, stuff like that.
2000480	2006680	And so these locks actually, these tools work on a wide variety of safe brands, including SecureRAM, McGard, Sgt.
2006680	2014220	Greenleaf, Amsec, Dormkaba, you know, the major brands inside these kinds of high security electronic locks.
2014300	2020300	And what really blew us away is that these are safe locks with known exploited vulnerabilities.
2020320	2023060	They make these awesome tools to exploit them for you.
2023060	2027940	It blows me away that people are still using these locks, that these models haven't been discontinued.
2027940	2031980	I mean, would you use software with known exploited vulnerabilities in it?
2032840	2037120	So these, these tools, they actually don't open ProLogic locks.
2037420	2040640	They only open ProLogic locks before 2016.
2040640	2042080	Luckily we're able to help fill the gap.
2042080	2048860	So sometime in 2021, 2022, maybe earlier than that, they switched over to this new processor.
2048860	2050920	And that's what our attacks work on.
2051920	2058700	So in 2016, Somerset Recon demonstrated a Bluetooth sniffing attack against the ProLogic B01.
2058940	2061680	So this is a discontinued Bluetooth model of lock.
2061680	2064260	I don't know if I really want Bluetooth in my safe locks.
2065080	2070040	Separately they demonstrated unlock capability against a latch unit at that time as well.
2070180	2079900	And then Deviant also had a great talk on locksmith tools, including the little black box and the Phoenix tool at Pancake Con in 2024, which has some great info in it as well.
2080960	2084800	So we have some, some opinions of a pining that we want to do here.
2084800	2086480	The first one is, does it really matter?
2086480	2088440	Is this a legitimate threat to security?
2088440	2094880	One of the things that we heard is that, you know, this attack method that we used is more effort than people are willing to put in.
2094880	2097540	This is, you know, we used advanced techniques.
2097540	2101100	We were prepared and willing to do glitching against these locks.
2101100	2106800	When we investigated other models, we, we found novel unknown exploits to microcontrollers.
2106800	2112520	We did deep reverse engineering, new processors, new disassembling tools, lots of analysis.
2112520	2116380	Is this something that people, that threat actors can actually do?
2116380	2118360	Is this something that people are willing to do?
2118360	2121800	And we would say the answer is absolutely yes.
2121800	2130220	Organized crime rings absolutely have the capabilities to execute tools, attacks like this, and make tools like the one that we demonstrated.
2130220	2135360	They already make credit card skimmers, which can be incredibly sophisticated pieces of technology.
2135360	2141580	They also make and sell tools that you can connect to the can buses on cars to unlock and steal them.
2141580	2149760	Those kinds of attacks, those kinds of analyses, those kinds of tools far exceed the capabilities we had to bring to bear to analyze these locks.
2150060	2153820	And the other, uh, group of people is nation state threat actors.
2153940	2159600	Way within their capabilities to do this analysis, to do this reverse engineering, to do these attacks.
2159600	2163660	It's absolutely within the capability of state police like organizations.
2163660	2168040	FBI and others to do this reverse engineering, build these kinds of tools.
2168060	2172720	And these vulnerabilities, these aren't just theoretical, we glitch it for 20 hours, something's weird.
2172720	2177020	These, these are vulnerabilities that let you open in minutes as we demonstrated here.
2177020	2181940	These are things that are very real, very apt, absolutely possible for people to use.
2181940	2186660	And attacks like code snatch, uh, leave almost or zero trace.
2186660	2191960	You're able to get out these codes, then you own the keys to the kingdom on these locks.
2192720	2197040	So when thinking about the threat modeling for safes, safes have only one function.
2197040	2201960	Keep people with physical access to the outside from getting physical access to the inside.
2201960	2210860	And to that effect, there is no way in which you can put safe codes on the outside of the lock without reducing the security of the system.
2210920	2215720	Safe codes are only 6 to 8 digits in almost all electronic locks.
2215720	2219420	They are incredibly short by modern standards for passwords.
2219420	2224960	There's no hashing scheme, there's no cryptographic scheme that can protect these from you.
2224960	2246000	If everybody today, your phone, could in seconds crack a SHA-1 hash of a safe code, and even if you did something like use bcrypt with a work function so high, it took 20 hours for the processor and this keypad to check if it was right, it would take you a fraction of an hour on a desktop GPU to brute force that code.
2247000	2251200	So, you know, really the thing to ask in this point is what went wrong?
2251200	2254980	Where was the biggest failure in this chain that caused this to happen?
2254980	2257300	You know, the easiest person to point to is SecurRAM.
2257300	2260920	We can say they implemented these locks insecurely.
2260920	2262780	They didn't consider the threat models.
2262780	2264280	They didn't set the debug codes.
2264280	2268020	They didn't use the features that they should have to protect the locks.
2268080	2273200	And I think you might imagine, gosh, what about the safe OEMs?
2273200	2274760	They're the ones picking these locks.
2274760	2277160	They're the ones choosing which ones to use.
2277160	2283300	Shouldn't they have done something like evaluated them on their own, done analysis, investigated what's going on.
2283300	2285020	Are these really secure?
2285100	2289560	And I think if you ask them, they would tell you that these were certified by UL.
2289560	2292820	These are certified high security electronic locks.
2292820	2295680	This is a certification that is baked into U.S.
2295680	2299160	code for DEA safes and other applications.
2299480	2303580	And so it's, I would say it's almost, it's not UL's fault here.
2303580	2310300	They correctly applied a standard that is wildly out of date for modern product security.
2310300	2318720	The product security for physical products lags significantly behind the state of the art for product security that we understand today.
2318720	2321120	You should be able to trust the certifications.
2321120	2331800	They are there to set the minimum standard for manufacturers to meet and they are there for the users to understand what is and isn't a high enough quality product for their application.
2332760	2335560	So let's go back to this list of locks here.
2335560	2337460	The little black box in the Phoenix tool.
2337460	2340020	There's almost 50 unique models on here.
2340020	2345460	How many of you guys think less than half of these locks are UL high security certified locks?
2345460	2346640	Raise your hands.
2347200	2348000	Oh, nobody.
2348000	2348880	Yep, you're all right.
2348880	2352860	Almost all of these are UL certified high security locks.
2352860	2359660	Almost every single one on this list of known exploited locks meets that standard for high security locks.
2359660	2366700	The only ones that aren't highlighted here are the ones where I couldn't actually find the certificate showing that model was certified.
2366840	2374680	So what really needs to happen is that safe lock products and locks, they need to require secure product development framework.
2374680	2379320	We can't have security through obscurity for locks and physical access.
2379320	2386020	We need threat modeling, risk assessments, functional flow descriptions, independent white box, black box testing.
2386020	2397080	We need FIPS and common criteria type evaluation and certification of cryptography and side channel resistance for these devices who have no other function than physical security.
2397080	2402140	Some other industries who do things besides physical security have done an amazing job.
2402140	2410580	The FDA has one of the most stringent cyber security regimes in the world for medical devices.
2410580	2415860	They have really raised the bar requiring almost all of these things for medical devices.
2415860	2423540	As well as the National Highway and Transportation Safety Administration has significantly raised the bar for vehicle cyber security.
2423540	2431580	And the UL and the lock industry need to bring the standards that are codified by statute in line with modern standards.
2431580	2436180	We can't be questioning whether or not these certifications mean anything.
2436780	2440500	So another thing, I want to talk a little bit about Chinese government back doors.
2440500	2449560	Seen lots of hype in the media about got back doors by governments that have been put into devices and things like that.
2449560	2453400	We found no evidence of any such feature in the locks we evaluated.
2453400	2455060	And we definitely looked.
2455060	2461980	When we say back door, we're talking about manuals that are not declared in the feature, features that are not declared in the manual.
2462800	2464960	And so don't believe the hype.
2464960	2468760	Bad design is not the same thing as a government back door.
2468760	2473940	I certainly hope if people are designing government back doors, they do a lot better job than they did here.
2476320	2482540	So one more thing, I want to have a huge shout out to the Electronic Frontier Foundation and the Coder's Ride Project.
2482540	2485980	They are the reason we are here today presenting to you guys.
2485980	2487340	They represented us.
2487340	2490120	They helped us understand everything as we went through.
2490120	2497060	And we are grateful to them for all of the support that they provided to us throughout our whole experience.
2497120	2498920	Thank you guys so much.
2503900	2506380	I think we have a few minutes for questions.
2506920	2507220	All right.
2507220	2508880	We'll take questions outside .
2508880	2510420	Happy to chat with you guys.
2510420	2511320	Thank you.
