start	end	text
0	3200	So, thank you for coming today.
3200	4900	Nice to see a nice turnout.
5040	15520	So today's talk, basically go through basic ATMs, and we go through some war stories of my experience hacking them, and some common faults, and we finish it off with some...
15520	18020	Oh, it's okay, I can...
18020	25320	And we're finishing off with a small heist from Sweden I got my hands on, to just wrap it together with your new skills.
25360	35460	So here am I, I'm done pen testing for last 10 years, mostly offensive security, and I really like ATM hacking, because it's the whole field from the physical to kiosk breakout, everything.
35800	37300	So let's jump into it.
37300	39260	30 minutes and a lot to cover.
39480	41040	So there are many ways to do this.
41040	45560	I mean, if you're not technical, there are, you can always be a forklift operator.
45560	48860	Just take it home and do what you need in peace.
48860	51520	Maybe in the garage, you have your power tools ready.
51520	53720	So , I mean, you will get it done.
53720	65540	Maybe it's not the stealthy way, but even explosives work, but you do get some color on the bill, so it might not be the best choice of action.
65720	68960	So, as well, if you're an excavator, license.
68960	71480	So this was actually a group that went on an island.
71780	74020	They took a lot of ATMs this way.
74240	78800	And they were actually caught on CCTV, so you can see a skilled operator doing this.
81710	84490	This will be part of your red team exam next year.
92060	93380	Really skillful.
104320	107320	And you see a poor car.
110830	112770	Yeah, it's good.
113110	115710	Small tap, it's finished.
116370	118130	And don't forget your phone.
118270	121010	Yeah , that's a really good one.
121230	127690	So, I will not cover these Vegas ATMs, just so you know, they're new ones upcoming.
127870	130490	I really love to, but not enough time.
131070	134610	So, let's get on with just some history lessons first.
134610	140590	So back to the 1960s, it was only big ATMs suppliers like IBM who did ATMs.
140850	147630	And we had trouble in banking with having so many types of vendors doing this.
147630	155170	So there was a need for standardization for the banks to be able to switch vendors without changing their backend, their integration, and everything of this.
155170	163630	So, around 1990s was around 15 vendors doing these ATMs.
164070	170130	But due to all this standardization, all the mergers start happening.
170130	178030	And it was at such a point, so it was only four key vendors done, left doing ATMs using the same backend.
178710	187790	So, actually two of them actually tried to merge again, but it was stopped due to financial reasons because it was so few vendors left.
188690	193850	So , by the time of, yeah, around now, 2018, it's around four vendors left.
193850	200450	I only see, actually, a few more of them here in Vegas for the casinos, but these are the four big ones.
201110	205230	But the standardization part is quite good, especially as hackers.
205570	210710	I mean, if you're going to Google and start with the ATM hacking scene, you will probably find XFS.
210710	212270	It's quite long for what?
212270	216690	European Committee for Standardization Extension for Financial Service, XFS.
216690	220010	That's what you'll be finding when you're searching for, like, jackpotting software.
220190	223330	Jackpotting is getting money without a card, basically.
223650	235590	And the fun thing with that is, if you have the same backend on these type of vendors, if you get the payload running on one of them, it will probably run off every vendor with just some small changes.
235710	246170	So, it's quite nice to see, because if you have your, one in the company doing ATM assignment in Japan and one in Mexico, the next one is in Portugal, they will probably do it against the same brand.
246390	252970	And when you start with a team to just collaborate, what you did, you probably find the same findings all off of them.
252970	255970	So, it's a bit special, I think, to have this.
257010	262810	So, for the people who has not been to an ATM lately, so these are the key parts we're going to talk about.
262810	264450	Today, we have a lot of gift cards.
264450	267090	There are multiple more functions, but the basics.
267090	269150	So, you have four currency boxes.
269250	270610	One is dispense.
270610	280330	So, if someone forgot to take out the money, something happens at least, or the machine can't run bills, it goes back to the React box, the top box.
280450	286250	So, they have three currency boxes on the below, around 2,000 bills in each.
286410	294170	And you have the normal card reader, pin reader, cameras, pointing at that you took out the money and who took out the money.
294170	298170	So, I think it's more for insurance part reasons than something else.
298790	301550	So, let's jump into it.
302490	304510	So, for me, it was a bit surprising.
304510	312950	This was going to be some really hard IoT engagements for my first one, but it's just a normal PC within a metal sheet.
312950	315490	So, I think this was a bit Scooby-Doo moment for me.
315490	320210	So, back to the normal payloads and everything, nothing really changed there.
320290	324450	So, this is quite fun to see, because we will see more of this.
325710	327350	Video here inside 8n.
327550	330070	You have the DVDs.
330130	332470	For the younger crowd, might not know what that is.
332470	333770	Someone can explain it.
333770	337630	And you have a little bit closer like this, PC with standard ports and out.
337690	344090	General pins and out for like tamper detection or what else do we have?
344090	345550	We have just a normal one.
345550	352410	It might have smaller form factor case on the hard drives, but nothing really strange there.
352410	356090	And the cache dispenser and some USB powers.
356090	359790	When you break it down, it's nothing really strange there.
361250	364230	So, what to think about this?
364570	370830	We have at least a lot of different ways of doing this.
370850	376070	So, when I did this, it was more of a mindset from an attacker I would describe.
376330	380050	But let's dig into it.
381470	384490	You're meeting with a normal like physical security.
384850	389070	You're going to meet normally like outside of Sweden.
389070	392510	They are standing alone in malls, in shopping centers.
392730	395150	Normally, there are reasons to where they put them.
395150	398930	They don't have camera surveillance or some other reason to do this.
398930	405770	In Sweden, they're mostly inside the walls, but this is the most common practice, standing alone in malls or shopping centers.
407490	412430	So, what you want to do here is you want to think about where to start in the engagement.
413830	417770	And looking down, I mean, of course, you can do the ATM brute force attack.
417770	419430	We even have that kind of definition.
419790	421510	So, that will probably work.
421510	423390	You might get ping pills, like I said.
423390	425690	There are a lot of tampering stuff inside.
426030	428030	But the vault is normally quite good.
428030	431050	So, that's not where you want to start when doing this kind of engagement.
431050	433350	And also, it does a lot of damage.
436270	437590	But don't worry.
437590	438730	We have a good way.
438730	441110	The top part is so terrible.
441210	442730	Thin sheet metal.
442870	447530	Maybe even worse than your lock to your locker when you're in changing rooms.
447530	449830	Maybe three pins or even less.
450370	457770	And this is due to having technicians who go in monthly without changing their seats, do maintenance service on the top side.
457770	462170	Maybe get access to the computer or something else needs to be changed.
462410	464450	And it's so bad sometimes.
464450	470290	Some technicians actually break the lock themselves just because they don't need to remember to bring the key next time.
470290	473630	So, it's very easy to get the service done.
475290	482110	And if lockpicking is not your skill at the lockpicking village, you can just go to eBay and buy a lot of these keys.
482330	484150	It will go even faster.
484690	487710	And as you see here, you will see longer keys sometimes.
487710	489930	And they're more for the vault part downstairs.
490150	495090	And if you're really lucky, you can find the vault key inside the top case when you open it up.
495090	498630	That's only happened a few times, but not as common.
498630	501370	But these can also be bought as well.
503530	508150	And you can buy your old machine to have at home where you start paying the payloads.
508330	511410	So, there's a lot of way to practice on this.
515980	519160	So, more for the hardware part.
519240	527860	So, when you finally got it open, bought a key or just lucky enough to find one that's open, maybe use magnets or whatever you want to try.
529360	533800	I was even lucky enough to be able to use rulers, just flip them up from the backside.
533800	536800	So, it sometimes can be really easy to get inside.
537520	541160	And what you want to look for here is you have a lot of space.
541900	551940	Some attackers, you know, they put skimmers, everything on the back end, put in different kind of interference.
551940	557340	But the key part here is the lack of mutual authentication.
558080	562920	That is so that only the cash dispenser can talk to the PC and the PC knows.
562920	568660	So, the cash dispenser, you cannot connect just a regular laptop into the cash dispenser and get it to spew out money.
568780	571040	It needs to be connected to the same PC.
571960	575860	And this normally is only installed on the cash dispenser.
575860	586420	So, piggybacking on the card reader or pin reader or cameras or whatever is installed there is probably often no trouble at all just to manually mill it into.
586600	590360	So, that was quite a surprise for me.
591040	595560	As well, you will find general pins and out for tamper protections and these kind of things.
598240	604580	And looking at what's installed here on the PC, it varies a lot.
604580	612960	Some companies are really good following the best practice, but, you know, even if the vendor's done good recommendation in their manuals, not everyone follows them.
613480	630780	So , you will see sometimes you have a team viewer session inside the ATM where you can just easily connect on the outside and make it easiest, bypass everything from firewalls to right side of access to going, some even forget, AppLocker, Antivirus.
630880	639360	But the most, I would say, discouraging thing I found when doing this is I think around 30 to 40% of all ATM engagements, they don't have disk encryption.
639360	645620	So, even they have AppLocker, Fence, Antivirus, we just take out the drive and just do what you want.
645620	653280	Or even you can dual boot into your US and just delete what you want so you can do your thing, install your jackpotting software.
653280	659120	Because if it has this mutual authentication, you need to attack it from the PC to get it to spew up money.
659920	662740	But this is really, really common.
662780	666520	And I don't know why it's so bad on the disk encryption part.
667150	669420	So, it really overshadows everything.
672100	681840	So, and one more thing for this that you don't really think about is they are standing alone in some malls and sometimes you lose connectivity.
681840	692040	So, the banks often put on these ATMs, it start to store every car transaction, pictures of who taken out the money for maybe insurance reason or for backup.
692380	701460	So , some groups just, they don't spew out money, they just install their implant or their backdoor and they just start out this transaction data.
701460	710820	They send out all the car transactions and all the pictures because you have all the pictures of cars going in and out, but you have all the data in the transaction logs.
710880	713660	So, they just start selling that information on dark web.
715220	720120	So, for the network part, it's quite interesting as well.
720120	724600	Normally, ATM security you have between the ATMs if you have a network.
724600	731600	So, when you're looking at the ATM standing alone in the malls, you normally have like a box on top or something where the network gear is.
732160	738960	And strangely enough, it's not like enterprise networking gear, it's like home routers with, what do you call it?
738960	742400	Always, always vulnerable.
742620	744020	Every day, what do you call it?
747700	749980	It's a lot of vulnerabilities in them.
749980	760140	So , even if you can get this router, you can probably easily get into this homebrew router or even have standard credentials with it.
760260	762600	But normally, it's quite good, the isolated backend.
762600	765220	So, from one ATM to the other one, you can't reach.
766780	778720	But back between the router and the ATM, it's like they think that this is on a secure network on a really safe place because it's normally unencrypted.
778720	784920	The transaction logs goes often without any kind of encryption to the backend over to the bank.
785260	789440	So, it's quite easy to isolate it, to do manual attacks.
789740	797900	So, it's really hard to read this, but this is captured with the Wireshark package going over and you get this receipt with checkout.
798440	802340	And you can see like, oh, they put some stars marking out your credit card.
802340	803280	Oh, that's nice.
803280	809020	But if you look in a dump up there, you'll see you have all the numbers for the credit card still sending right over.
809780	816360	And what some earlier attacks just did, the machine is not smart enough to know what kind of currency or bills it just say.
816360	819600	Four bills from box two or two bills from box three.
819600	827800	So, if you manual this in an earlier version, you can just say, oh, for this $40 transaction, I need 20 bills from that box one that's $100.
827800	829740	So, it can start counting out that.
829740	832580	So, it was really simple manual attacks.
832760	835620	That still works sometimes, but it's nice to look for.
835720	839540	Even from network side, you can have it like all ports open.
839540	842300	So, you can get direct access to the cameras.
842300	843220	So, you can piggyback that.
843220	845060	So, you can just sit and look at the cameras.
845060	852020	You pass coming and you see the credit card going in and the camera down where the cash goes out, normally also shows the pin on the card.
852020	857820	So , some can also sit on the network there, just listen to take data like this.
858420	860480	So, it's quite scary.
863660	866780	So, I mean, most vendors know about this.
866780	874140	Most, it's nothing new to the big vendors, but every bank, they follow their own best practice and how they implement it.
875280	884880	One could say that in banking, the ATM security is about stopping crime, but it's more about making insurance papers filled out correctly.
884900	891060	So, I would say like a banking strategy would be, because it doesn't really seem to care about it.
891060	898560	When you go into these engagements, often insurance company who wants you there to say, oh, now your bank have lost cash on free ATM machines.
898560	901100	And they just treat it as insurance policy.
901520	909860	So, I think like banks like this strategy regarding ATM is like step one, call IT, step two, call insurance, and three, take lunch.
909860	913640	Because it's not their money that's got stolen, it's just the insurance the company wants.
913700	917740	So, that's why I think this is a little bit out of scope and something happened.
917900	920540	So, it's really strange it is like this.
922560	923340	Yeah.
924400	930600	So, it's a minor fault, could be.
931360	932680	What do you think guys?
935710	938470	So, thinking about this then.
938470	941070	So, should you go to take the excavator license?
941070	946150	Yeah, maybe, that seems to be a good way to go, quite safe as well, if you're good at it.
946150	950350	I mean, you can be a bit worse on it at least, or doing the hacking part.
951990	955230	So, we can look at some people that's not as good at it.
956730	958710	It will take a lot of more time.
962970	966650	But what you also need to think about is there are so many bills in an ATM.
966650	972190	I mean, you have, like I said, it's around 2,000 bills in each dispenser.
972190	979370	It will take hours spewing out cash when doing jackpotting because you need to have to count it and take out maybe 30 bills at a time.
979370	980510	So, that takes a lot of time.
980510	987590	So, you can just imagine the stress of sitting there just waiting, you want transactions in a time.
987590	991510	So , if your neighbors are calling, it's very loud that you see this.
992890	994470	It will take its time.
996030	999930	And you really don't even know if there is any money inside of it.
1003110	1008210	So, yeah, he drops it, and I think we speed up and skip this guy.
1008210	1016190	But this is also a more interesting case because now we know a little about the basic security and some flaws.
1016370	1027610	So, I actually got the witness and police investigation three years ago where they're doing a heist of two ATMs that was robbed of money.
1027770	1037570	It's also two Russian guys who actually got out quite a lot of money from the ATMs and was taken on the hotel rooms.
1037570	1042990	So, these two guys was not really technical at all.
1043230	1049870	They did it with some pair of chisels, some gloves and some crowbars, of course, because they're criminals.
1049870	1051730	They always have crowbars, I don't know why.
1054150	1061290	And again, they just attacked the thin sheets on top of the metal, top of the ATM.
1062790	1066750	So, with some simple chisel, you can break it open to get access to it.
1067570	1072510	So, it didn't even go for the top part or try to steal it out.
1073270	1085670	And the little bit strange thing about this case was, it's only a few years ago, and this crew knew that the dispenser did not have mutual authentication activated.
1085670	1092130	So, they just bought a USB extension cable connected to the dispenser and start spewing out cash.
1092750	1094430	They didn't even touch the PC.
1095710	1101530	And yeah, it's quite funny when it's caught, it's like, oh, why are you having an expansion board comports?
1101530	1107110	They're like, oh, no, we just forgot it when I packed from my normal trip to Sweden to have an extension.
1109390	1112950	And now they only got out around, I think it's around $80,000.
1113970	1119250	And they could actually went away with $300,000 if the ATM was fully filled.
1119410	1126350	So, looking through receipt earlier today was around $160,000 in it, roughly.
1127310	1139470	So , it was quite interesting to see that they also, in the investigation, also found the laptop and there they had the vendor software for doing this kind of dispensary.
1139530	1142410	So, they knew that it didn't have mutual authentication.
1142750	1150350	They also knew that, they also had someone on TeamViewer installing the vendor software for doing the demo run of the dispensing.
1150350	1154470	So, it's quite interesting to see how they could knew all of that.
1155650	1159370	And like I said, it's a quite nice pile of money.
1159430	1160810	Sorry for the resolution.
1161470	1163170	Criminals didn't have better phones.
1165070	1167330	So, what do you think, guys?
1167330	1171450	I mean, what could have been this work?
1171450	1175730	How they could have known so easily that this was missing the authentication part?
1176410	1181250	So, I have time for questions as well.
1181750	1184530	So, open up the floor for questions.
1185550	1186370	Yeah.
1186370	1189850	What kind of VPNs now are still vulnerable to time?
1189850	1195710	I would say it's, I would say, still, these are still seen everywhere in engagements.
1196910	1206730	I mean, they have, if you split up the different ones, I would still say the 30, 40% of disk encryptions is still ongoing.
1207430	1210930	And I would say it still looks quite like this on the field.
1210930	1219010	Of course, you have some vendors doing it really good properly, and then you have other banks in some parts of Europe and some other countries that doesn't care about it.
1219010	1222790	If you just think as with insurance, because they don't want to miss any money.
1222830	1226370	They just paid insurance fee and they hope it gets fixed.
1227030	1228950	So, that's the strange part.
1228990	1234170	Normally, if you have it inside a bank, you will have a really fast fix on it and patch run.
1234630	1239170	So, it's security by economics, not by security folks.
1239570	1240810	More questions?
1241090	1241810	Yeah.
1248500	1255060	If you can get into this computer, you already have the authentication.
1255240	1258200	So, then you can just install your jackpotting software works normally.
1258200	1263840	But if you use your own laptop connected to it, it doesn't work due to this.
1274660	1276720	How often do you update computers in it?
1276720	1278680	No, it's not often.
1278680	1282060	You can actually find quite old exploits still working.
1282060	1287680	So , I mean, it could be one year after patching just because they haven't been to this ATM for a long while.
1287680	1290260	So , you can actually see really nice.
1290260	1296140	I mean, you see we often get the exploits working due to the running patches, maybe one year after, half a year.
1296140	1297300	It's not uncommon.
1297300	1298760	So, that's what makes it easy.
1298760	1299800	Yeah, next one.
1310520	1315820	Oh, so, I don't have that statistics cause to cry.
1315920	1325300	I mean, if I just can make a number up, I would say, I was maybe say more 70% is physical and maybe 40% is technical.
1325300	1330500	And I would say the technical ones are the more that get away with it in the long run.
1330500	1331140	Yeah.
1332980	1334020	Yeah.
1339150	1345610	So, two friends sent me that one and I haven't got into it because it's really interesting study.
1345610	1348290	But I don't want to say anything cause I haven't read it.
1348290	1351390	But yeah, it seems they're still ongoing.
1351390	1364610	So, that's the funny part that getting into the bank could actually be the best way to get credentials would be going to the ATMs and get the accounts for the operators and the support instead of just trying to get ransomware with spear phishing.
1364610	1366770	So, this could be a much better way to get into it.
1367170	1370290	So, I was thinking like C2 by ATMs or something like this.
1370290	1371230	So , yeah.
1371850	1373010	Other questions?
1374850	1375570	Yeah.
1387840	1389180	Light bulbs.
1390800	1391880	Light bulbs.
1392580	1395000	I haven't seen anything like that actually.
1396040	1397480	No, no, no, no, no.
1397700	1408320	I wonder if that would get the colors have been inside ATMs with the builds if it goes out, if this kind of security feature just blanks out the builds.
1409940	1411480	I haven't tried.
1411880	1412460	Good.
1413000	1417640	And like I said, Basalt don't endorse anything of this without written permissions.
1417700	1427680	Because if you do this at malls, when you do an engagement and you start with it, even if you have like a written slip, then normally you have guys from the bank, you have some security with some guns there.
1427680	1431400	Else the police will show up quite fast when you start putting.
1433960	1438180	Yeah, I think if no more questions, I will just thank you for your time.
1438800	1440000	And that's it.
1440000	1440780	Thank you.
