start	end	text
0	880	Hi.
880	4880	Okay, so, as you're aware, there are no screens whatsoever.
8120	9660	But can everyone hear me?
10380	11100	Cool.
11500	14300	So, yeah, there are no screens whatsoever.
14300	18320	I did have a talk on a whole load of contactless card attacks.
18900	21340	I might as well try and do it without slides.
21640	23340	It probably won't make any sense.
23360	26440	If anyone wants to get up and leave while I'm talking, feel free.
26440	27680	I probably would.
31400	33680	So, is everyone here for a payment talk?
33680	36620	Or did people just wander in a place to sit down?
38080	38960	Excellent.
39780	43040	So, I'm part of a group from the University of Birmingham.
43400	50040	I've got to mention my colleagues Andrea, George, Iona and Anna have done a lot of this work.
50400	54540	I've got pictures of them on the slide, which you won't see, but this is very much joint work.
55540	57860	So, I like contactless payment.
57860	59280	I think it's great.
59280	65780	It came in in Britain before it was in the US, quite a long time before.
65780	76160	And in fact, one of my trips to the US some time ago, before you had contactless payment here, I had my contactless card and I was tapping it against the payment terminal here.
76460	84460	And the shop assistant just stared at me in total disbelief, thinking I'm someone who doesn't know how card works, and explained I had to put it in the slot at the front.
85080	88500	But I've been looking at contactless payment for a lot, for a long time.
89060	95080	And something I've got to just make clear from the start, is payment rules are very different in Europe.
95580	101460	It's almost impossible to get a bank in Europe to give you money back once it's spent.
101880	106100	So, here in the US, if there's fraud on your card, it's quite easy to get it back.
106540	110120	European banks will typically say, no, you're responsible for that.
110680	114780	And in response, European cards are very locked down.
115320	121520	You cannot spend over $100 contactless without putting a PIN in.
122100	124120	You can't do signatures anymore.
124220	131180	For cards, any high value, you have to put in your PIN number, or do face ID or fingerprint ID.
131960	136300	So, here in the US, I've tapped a card and it's taken $200.
136500	138020	That doesn't really happen.
138020	139920	So, I'm playing by different rules here.
139920	146300	Part of what I'm trying to do is remove that payment limit, in most of the rest of the world.
147020	152540	But, I like looking at EMV as well, because the spec is entirely public.
152540	155020	Has anyone here looked at the EMV spec?
156500	158520	Oh, consider yourselves lucky.
158880	162220	It is thousands and thousands and thousands of pages.
162220	164320	And it's written awfully.
164660	167660	They don't give any kind of overview of the protocols.
167660	172200	They spend pages defining minute details in huge technical detail.
173580	177580	So, we spend a lot of time at the university looking at that spec.
178320	181660	So, we have a pretty good idea of the protocol.
181840	186480	I have some fantastic slides here, which take you through the protocol step by step.
186480	187940	You'll just have to imagine.
188580	197400	But when you walk into a shop and you tap your contactless card, the first message from the reader asks the card, what kind of card are you?
198140	202520	And Visa is different from MasterCard, which is different from Amex.
202520	205520	And the card will say, hey, I'm a Visa card.
205900	209020	And then the reader says, OK, I can do Visa cards.
209020	210360	Let's run the protocol.
211480	219220	The next step, in all protocols, the reader basically says, OK, I'd like to start a transaction.
219940	228300	And the card sends back a list of things it needs, like the amount of the transaction, the currency, the date, all that kind of information.
228300	230480	This is different on different cards.
230480	235540	The reader has to send all of that information to the card.
236040	247180	The card then creates a cryptographic MAC, a message authentication code, with a cryptographic key shared just between your card and the bank.
247800	256300	I think it's a hash of your card number and some secret, master secret, which if you've got, you can just make your own cards.
256300	258820	The banks have managed to keep that secure.
258820	266540	So this message authentication code is a key only between the card and the bank.
266540	271340	It's very, very difficult to get that key off the card in any way.
272420	276150	And that message authentication code is sent to the reader.
276480	282240	The reader sends that and all of the information to the bank.
282520	287700	The bank does a cryptographic check, saying this claims to be this person's card.
287700	291380	Look up the cryptographic key for this person's card.
291620	293400	Does the crypto check out?
293540	295020	If so, good.
295020	296780	It then does fraud checks.
296780	300120	It says, does this look suspicious?
300520	301880	And it does balance checks.
301880	303520	Does the person have enough money?
303920	310420	And then it sends a message back to the reader saying, confirmed, payment accepted.
310760	313680	And that all happens as you tap.
314080	317680	You might have noticed four lights on top of the little readers.
317700	321260	That's the four stages I mentioned.
321980	324260	And remarkably quick.
324260	325380	Massively.
325380	326500	Your balance is checked.
326500	328900	It all works extremely well.
329000	336020	And actually, if the EMB companies stopped here, everything would be fine.
336020	337220	It really would.
337220	339240	But these companies can't help themselves.
339240	343260	They're driven to add new features and tweaks and changes.
343260	346020	And this is what this talk is really about.
346020	350840	These new features have introduced a whole load of attacks.
353040	358420	So, yes, and that's Visa's protocol.
358420	363000	Visa also have an offline protocol where there's no bank check.
363540	367940	And to do this, there's also a public key on the card.
368500	379860	And as well as this MAC, this cryptographic token the reader sends to the bank, the reader will sign all of the data with a public key.
379880	383060	And the reader has a certificate chain to check that.
383060	389040	A little bit like TLS certificates, but that means that no one can forge cards.
389460	392700	You've got a public key signed by the bank.
392780	394080	The reader checks it.
394360	398560	The reader checks the card has signed all the data.
399100	402620	And then the reader can be sure it is a real card.
405620	407500	MasterCard's protocol is a little different.
407500	409560	It splits it into two actions.
409560	412100	One, send me the data and get ready.
412100	415460	Two, generate this AC, this MAC.
415580	418420	Amex's protocol is very like Visa's.
418720	425120	One of the biggest is union pay in China, which again copies Visa and MasterCard.
425120	434320	A lot of this work is based on Visa and MasterCard because they've defined the key protocols and other companies really take those and just tweak them.
438940	441000	I'm a university academic.
441000	445160	I like getting into the mathematics, the little details of things.
445160	450660	So what we've been doing over the last few years is building formal models of these hugely complex protocols.
451520	454900	These are like mathematical models.
455120	461300	We write simple rules, almost like a simple programming language, to say what these protocols do.
461300	466940	If the card sent this kind of message, it replies with this kind of reply.
468000	471060	And then we can take these models and we can test them.
471060	480400	We can use machinery to say, now for an attacker who tries anything, can we get into a bad state?
480540	483940	So these tools are remarkably powerful.
483940	490240	And the reason why we found attacks which others have missed is these tools can sometimes find them for us.
490240	495880	But more importantly, these tools force us to think about every little detail.
496140	504760	So we have to write out a rule in our formal model to say, if this field has this value, what do we do?
505740	508380	And a lot of the times you think, well, we don't know.
508400	509300	That's odd.
509300	513020	And we'll go and look at a card and we'll test it and find out.
513020	516840	And that's how we get a complete picture of what the cards do.
517900	523220	So the spec itself has some issues which have been documented well in the last few years.
523220	527160	But the spec itself is actually pretty good.
527740	533860	However, as I say, companies keep adding stuff to the spec which isn't in the spec.
533860	537360	And as I said, the specification is thousands and thousands of pages.
537980	547600	So for instance, a big one was using your phones with face ID or a fingerprint ID.
548520	552840	In Europe, this completely removes the hard $100 limit.
553880	560300	And also, the reader will send to the bank saying, hey, we checked this person's face.
560360	563600	And that essentially means no fraud checks.
563880	575080	You can literally walk into a car dealership and buy a car, scan it with face ID, tap your phone, and the bank will say, that's good, we scanned this person's face.
575080	576500	It must be correct.
577020	579340	But none of that is in the spec.
579340	584800	There's nothing in any of the protocols which says it's a plastic card or it's a phone.
585560	588960	They retrofitted that onto the initial spec.
589040	591880	Security-wise, that's the worst thing you can do.
591980	596320	They've done something ad hoc not very well.
597140	599920	This offline mode, that's a bit scary, right?
599920	602620	It doesn't go to the bank for a check.
603140	609740	In Europe, Square readers say you must only use a mobile phone in offline mode.
610280	614420	But there's nothing in the protocol to say it's a mobile phone or not.
614420	617440	So Square have hacked it and done something odd.
619600	625280	Recently, Apple and Visa have added loyalty cards onto the phones as well.
625280	627920	And they've done it independently.
628500	632120	There's also regulation, for instance, in the UK.
632120	637600	The government said you can't do tap and type in your PIN number contactlessly.
637660	640040	Don't know why they said that.
640760	646720	In order to trade in Britain, the card companies had to follow this.
646720	647820	Not in the spec.
647820	650260	They've done something odd and retrofitted it.
650260	651720	None of it's published.
651720	653200	None of it's public.
653340	658760	And worst of all, the companies haven't told each other about this.
659380	662800	So that's bound to lead to security vulnerabilities.
663260	666060	And that's what we've really been looking at.
666480	672080	However, the first thing we looked at was the transit transport mode.
672400	683140	I don't know if anyone's familiar with this, but if you've got your phone, you can often use it on the subway system or some transport systems without doing face ID.
684080	688060	So this is because in big cities, subway systems can be quite aggressive.
688060	690500	You've got to get through the barrier quickly.
690800	693740	If you don't, you make a massive queue behind you.
694340	708860	So if you go up to a transport barrier and you take out your iPhone and you hold up the entire queue and you start typing on your iPhone to unlock it, there's an entire queue of a line of people behind you who hate you and hate iPhones.
709380	711620	So that's the primary reason they've done it.
711620	713520	But this is fascinating, right?
713760	717540	They have completely removed the authentication check.
718060	719080	Make a payment.
719620	721860	That's normally a lock screen to make a payment.
721860	725000	They've removed that for transport systems.
725080	728140	So of course, this is something we had to look at.
728680	730480	This was some years ago now.
730480	731900	This was during COVID.
733340	738360	We live in a city called Birmingham, which is 100 miles away from London, which had this system.
739280	743060	It was the height of COVID, but I really, really wanted the data.
743200	746700	So I sent my postdoc, Andrea, to go and get it for me.
748060	749960	I should have done a risk assessment.
750180	754100	I should have filled in forms, but we just did it.
754100	763700	So I sent Andrea, during the height of COVID, halfway across the country, with a bag with lots of wires sticking out of it.
763700	767420	At the same time, anti-terrorist police were walking around with guns.
767720	770260	But it worked and she got the data.
770480	772780	So I don't know if you're familiar with Proxmarts.
772780	777960	They're little radio devices which scan all radio connections.
778500	788040	So what she did is she went around London, doing a contactless payment, using a Proxmark, so we could actually see what was going on.
789160	793640	What she found was a completely normal EMV transaction.
794460	808140	But at the start of the low layer, the initial handshake, before you actually get to any of the protocol messages, there was an extra code which was just sent randomly.
808680	810260	It's not in the spec.
810900	814740	At the time, it was a complete mystery to us.
815460	819460	We now know this is something called Apple-enhanced contactless polling.
820080	829260	It's a magic code you send at the lowest layer of NFC, the ISO1443 layer, which does the initial handshake.
829260	835940	And if an iPhone sees this magic code, it will unlock a particular application.
837200	847580	So if an iPhone sees this, it goes into a special mode where the main user account is still locked, but it will run one application.
847580	851120	And the code tells you which application it will run.
851520	853240	Again, not public.
853240	856080	We found details of this on a patent.
856080	859540	Apple have patented it, and that document is public.
859540	861120	That's how we know about it.
861580	868240	But this code will start up the payment app in a sandboxed method.
869080	873860	Additionally, the protocol will say, I am a transit reader.
874600	877920	It will have a code saying, I'm a transit reader.
878080	880520	Shops have a code saying, I'm a shop.
880800	888260	Gambling institutions have a code saying, I'm gambling, which is how you can block gambling for particular cards.
888560	897160	But we found this code, which lets us unlock iPhones into this transit mode with some restrictions.
898060	907080	So we went back to our formal model, and we could change these rules to say, now it works like this, and run it, and look for attacks.
907920	912900	And what we found is MasterCard was completely safe.
912900	914040	It worked well.
914040	920240	You couldn't make a high-value payment without a strong ID.
920500	922860	But for Visa, you could.
923700	928220	For Visa, you could bypass all the authentication requirements.
930540	933120	And the tool would give us the attack.
933420	940680	How the attack worked is the attacker would act as a relay, a man in the middle.
941280	944900	And it would broadcast these magic bytes.
944900	947100	It would pretend to be a transit reader.
947140	950980	So it would tell the phone, I'm a transit reader.
951900	956200	Now, you could then ring up a large transaction, $10,000.
956920	960960	And what we also found is the card doesn't look at the amount.
961820	968460	There's a flag in the protocol which says, this is a high amount, or this is a low amount.
969140	974780	So the reader sends a message saying, I want to do a $10,000 amount.
974800	977020	This is a high amount of money.
977020	979200	I need some strong authentication.
979880	983760	What we'd do is we'd flip that bit in the transaction.
984860	991200	And we'd then tell the card, this is a $10,000 amount.
991200	993480	And by the way, that's low.
993800	996100	And the card would accept that.
996100	998960	Now, it does that with very many different currencies.
999220	1001300	And you can use your card abroad.
1001360	1007500	You might want to use your card in a country where $10,000 is a low amount.
1008620	1011060	So it doesn't have hard limits.
1011060	1012720	So the card accepts this.
1012760	1017360	And the card says, fine, I'll make a payment token for that.
1017360	1019380	And it makes a payment token for that.
1019700	1026900	And then it sends it back to the reader with a message saying, I have not done any authentication.
1027200	1030840	By the way, I didn't check face ID.
1030880	1032440	I didn't check a fingerprint.
1033080	1035140	So the reader should reject that.
1035200	1036440	But we can do the same trick.
1036440	1038140	We can flip those bits.
1038620	1039920	And we lie.
1039980	1045920	And we tell the shop reader, yes, this phone did check face ID when it didn't.
1047240	1051340	Reader looks at that and thinks it's a fully authenticated transaction.
1051340	1059300	The reader sends it to a bank with a message saying, face ID was done on this transaction.
1059840	1065300	So the bank's fraud checks approve it and say, payment can go ahead.
1065600	1069220	I have a really nice video of Andrea actually doing this.
1069220	1070940	You'll just have to imagine that.
1070940	1071320	Yep.
1074620	1077360	They're not covered by the Mac.
1077360	1081160	They are covered by this signature I mentioned.
1082220	1086820	But the signature is only checked in offline mode.
1087900	1093500	The reader thinks it's running in offline, online mode.
1093620	1101360	So even more complicated, the card signs something to say, I haven't done any checks.
1101360	1103280	Here's proof I haven't done any checks.
1103280	1104680	Please check.
1104760	1106720	But we just throw that away.
1107380	1111320	So the phone thinks it's running in offline mode.
1111340	1114460	The reader thinks it's running in online mode.
1114840	1121740	Again, they should have put a flag in the protocol which said, I'm a phone running in offline mode.
1122080	1122980	They didn't.
1125480	1126600	Yep.
1127300	1127860	Cool.
1127860	1131040	So that's kind of fun.
1133640	1135140	We bypassed the Apple...
1136340	1142660	So, of course, being responsible academics, we went to Apple and we gave them an entire pack.
1142660	1146320	We gave them a TAC code, videos, everything, and we sent it to them.
1146680	1148080	And we heard nothing.
1149040	1153080	So two months later, we sent them an email again and said, hey, what's going on?
1153520	1157020	And then they sent us a reply saying, thanks for your submission.
1157020	1158520	Of course, this doesn't work.
1160040	1163640	And then we sent them back, look, video, see the video.
1164440	1166260	And again, a few weeks went by.
1166260	1168900	They got back to us and said, no, we still think this doesn't work.
1168900	1177320	So we actually sent them scans of our bank statements, showing thousands of pounds coming out of the bank accounts.
1177320	1179960	We sent them a track in numbers so they couldn't...
1180860	1185480	So we could actually find the transactions in the backend banking system.
1185780	1193280	And when we said, oh, and two days later, we had a meeting with their head of security, the head of payment security.
1193440	1197200	It was a very long, useful meeting where we went through it step by step.
1198000	1200240	They fully understood it and appreciated it.
1200240	1203560	And they said it was completely Visa's fault.
1205920	1210740	They offer a hundred thousand bounty for bypassing a lock screen.
1211080	1213880	We bypassed their payment lock screen.
1213940	1216760	But apparently that's not the lock screen they meant.
1217020	1219220	So we didn't even get a bounty for it.
1219940	1223780	And we went to Visa and Visa...
1226080	1228760	This isn't being recorded, right?
1230100	1232060	No, no one's recording this.
1232060	1236930	Visa initially unofficially said they couldn't believe Apple had been so irresponsible.
1240380	1242620	Then that was Visa research.
1242620	1244420	Then Visa corporate got involved.
1244420	1249200	And Visa corporate said it's a lab attack, which doesn't work in practice.
1249740	1253180	So we went out to a shop and we did it in practice.
1253860	1258880	We actually thought about buying an Apple laptop using this attack.
1259300	1261360	But we didn't have that kind of money.
1261900	1263340	And we sent it back to Visa.
1263620	1270300	And then Visa said, OK, it does work, but we will refund anyone who has this happen to them.
1271200	1274120	So Visa said it was Apple's fault and they were fine with it.
1274120	1276700	Apple said it was Visa's fault and they were fine with it.
1276760	1278600	So we went ahead and published this.
1278600	1281720	So this attack completely works in practice.
1282040	1285340	Anyone who wants to do this, you absolutely can.
1285920	1287600	And I appreciate you being here.
1287600	1295640	This was a great talk next door as well, which I'm really disappointed I clashed with, looking at actual people who do real attacks.
1296160	1301300	And apparently people are actually using this in real malware attacks to steal money.
1301300	1312720	So if you have Apple Pay and Visa and transit mode, people can take any amount of money from your phone whatsoever.
1313000	1315980	I don't recommend having those three things together.
1317120	1319680	OK, so that's the first attack.
1319680	1322380	I want to give a shout out to Timo.
1323000	1325700	He's a researcher in the UK as well.
1325740	1329060	He got the same results at more or less the same time as us.
1329240	1331280	He published a couple of months after we did.
1333000	1337480	So he's a great researcher who had done very similar work.
1339520	1340080	So the next...
1340080	1351160	So of course, this is following a theme of payment companies added these features without explaining them and without telling people how they worked.
1351800	1356440	So the next thing we looked at was Square's offline mode.
1357000	1372740	This was interesting because Square said, to protect you offline, if we're not going to check clear this transaction with your bank, we will limit it to phones where we've checked for person's face or fingerprint.
1374460	1378600	But there's no way to do this in the transaction.
1378600	1382400	There's no flag in EMV which says I'm a phone and I'm not.
1382400	1386640	So another Square are doing something odd.
1386640	1388980	Someone at Square's made something up.
1388980	1392380	It's not part of a public spec and they just run it.
1394080	1395880	We did exactly the same thing.
1395880	1397180	We got our relay.
1397180	1398380	We got our equipment.
1398460	1399840	We got a Square reader.
1399840	1403300	We did a whole lot of transactions and we looked at how they worked.
1403700	1405400	And it's actually very similar.
1405520	1410360	We saw some strange messages at the start.
1411080	1412560	Not at the low level.
1412560	1417860	Before that initial select message which says, are you a payment card?
1417860	1420840	There was another message which we didn't recognize.
1421860	1427560	We did some googling and we found a great GitHub repo which explains some of it.
1427560	1431580	And this was Apple and Google's new loyalty card scheme.
1432120	1441320	They've added something at the front of EMV where you can have some personal data about you which the reader can just read off.
1441320	1444460	From privacy reasons, it's horrific.
1444600	1451800	But it allows you to use your normal payment card and have loyalty schemes at particular vendors.
1452460	1456740	Now, of course, this Square reader wasn't doing that.
1456740	1461080	All it said is, is there any loyalty card information?
1461600	1464420	And if it got a yes or a no, it continued.
1465040	1468750	If it got an error message, it stopped.
1469720	1474500	So what Square thought was, phones might have loyalty cards.
1474960	1478130	We'll just ask, do you have loyalty cards?
1478480	1481070	And if I don't get an error, I will assume you're a phone.
1482140	1486080	I'm sure you can all see the problem here.
1486220	1489380	The cryptographic check comes later in the loyalty scheme.
1489380	1491980	We could just record this and replay it.
1493280	1496980	So we could have our relay, we could have a plastic card.
1497420	1501280	Our relay sends, I have no loyalty card first.
1501320	1503840	And then we just relay the card, and it worked.
1504400	1505760	So that was one thing.
1507520	1510720	Now, I can't remember if I mentioned this, whether it's just in the slides.
1511720	1514540	Apple, check if you've done strong ident...
1514540	1522430	Sorry, MasterCard, check if you've done strong identification in a proprietorial field called the AID.
1522880	1525160	They do not publish the spec of this.
1525160	1528540	That is their private field for MasterCard only.
1528980	1536340	That means to send, to check it, the reader must send it back to MasterCard.
1536880	1539660	For online transactions, that works great.
1540100	1542630	For online transactions, I do my face ID.
1543080	1546100	The reader sends it back to MasterCard.
1546100	1552740	MasterCard says, aha, this person did face ID and sends the approved message to the reader.
1553180	1557160	That doesn't work for offline transactions.
1557260	1561860	Because the reader can't check that field, and it can't check MasterCard.
1562260	1570120	So what's happened is MasterCard have designed one system where phone transactions must be processed online.
1570940	1574440	Square independent... and MasterCard didn't explain it to Square.
1575380	1588180	Square did their own system where their transactions, they will check for a phone using their own personal method, and they didn't explain that to MasterCard.
1588380	1594440	Put them together, we trick the Square reader into thinking we're a phone.
1594660	1600040	We do a completely normal transaction without authentication from a card.
1600040	1602380	We charge $20,000.
1603760	1606040	We send it to the card.
1606040	1609700	The card sends it back with a message saying, don't accept this.
1610380	1614940	But that cannot be checked offline, and the offline reader accepts it.
1615520	1617540	So I have another video of that.
1617540	1619660	Unfortunately, I can't show it.
1619700	1631600	But yes, Square with offline mode, up to about a couple of months ago, you could do this simple trick and do any amount with a plastic card offline.
1632380	1633800	Square were great.
1633800	1637720	Unlike Apple, they fixed this very quickly and very effectively.
1638440	1646900	However, when they did the fix, they changed it slightly, and they delayed when they checked that signature.
1646900	1649280	I mentioned the signature in offline mode.
1650140	1653440	They actually switched to a different mode.
1653840	1659660	They would request that signature, but they wouldn't check it until the device went online.
1660460	1675500	So all that meant, for a couple of months, you could just record anyone's card data, go to any Square reader, and send it the garbage signature, and the Square reader would have accepted it online.
1675780	1676610	So offline.
1677120	1680420	And when it went online, the bank would reject it.
1681160	1690180	So there was a short window last summer where Square readers were effectively completely open and you didn't even need a card.
1690180	1695420	You could invent your own card and print your own money.
1696060	1699320	We were kind of tempted to retire from our jobs as academics.
1700900	1703520	But we were already talking to Square.
1703620	1706680	And Square gave us a nice bounty for this as well, unlike Apple.
1707860	1710360	So that's all now fixed from Square.
1710360	1717120	But it's the same pattern of inventing similar features, companies acting independently.
1719240	1722040	So there's a question of what we can do about it.
1722320	1733320	Going back to this formal modelling, this kind of mathematical language, we use a tool called Tamrin, which lets us write this down.
1733320	1736780	You can write a reference model for this in any language.
1736880	1748060	But if these companies actually tested their proposed additional features against everyone else's and made them public, payments would be a lot safer.
1748700	1750040	Unfortunately, they're not.
1750040	1756340	There's a lot of drive to get the new feature to market, to be the company with the feature no one else has.
1756380	1759440	And that's really making payments unsafe.
1760340	1764320	So there's something else we're working on to try and make payments safer.
1764960	1771260	Most of these attacks, most attacks you'll see against payment cards, are some form of relay attack.
1771260	1782600	You'll have mobile phones, or NFC readers, or Proxmarks, and you will read from a card, forward it to the reader, and back again.
1782600	1785740	And you'll probably tweak some bits along the way.
1787060	1790700	And what we're interested in is trying to stop this.
1790820	1794420	And that relay takes time.
1794420	1795940	It adds milliseconds.
1796610	1809070	To receive it on one device, send it over USB or Wi-Fi, to process it over USB and Wi-Fi again, that takes maybe 20 milliseconds.
1810020	1814080	Normal connections to the card are much, much faster.
1814460	1819420	So as a solution, we propose actually timing this exchange.
1819420	1823320	So the idea is, it's its first key message.
1824060	1827580	The reader starts the clock when it sends the message back.
1827960	1831580	And when it receives the answer from the card, it stops the clock.
1832400	1840380	If it is above about 15 milliseconds, we say it's been relayed, and we stop.
1840720	1846060	If it's below, we say that's fine, and it continues.
1846060	1853840	And that would cut the attacker out and make relay attacks impossible, meaning I couldn't switch those bits.
1853840	1856300	It would stop all of these attacks.
1857160	1859960	We've been pushing this idea for some time.
1860120	1867480	MasterCard have a spec which puts it at the application layer, a higher layer.
1868740	1872080	We got some cards from MasterCard, and we checked them.
1872080	1886280	What we found is there's a big time difference between if your card is at an angle about three centimeters away from the reader, or if it is pushed as close to the reader as possible.
1887640	1896900	So if, because the card gets its power from the field, if it's right on the edge, it takes longer.
1896900	1904120	So actually, there's no safe time measurement you can put in to make that time bound impossible.
1904400	1912120	However, if you do it at the low layer, the ISO1443 layer, right on that initial handshake, it does work.
1912580	1919820	So for the past two years, we've actually been working with the ISO standardization committee to try to get this added to the standard.
1921140	1923860	I don't know if anyone's worked with standardization committees.
1924600	1925920	It's tough.
1925920	1928760	I have an example of the standard.
1928840	1933100	So we have an amendment being voted on right now.
1933140	1935200	It's gone through two years of revisions.
1935480	1937680	Every country in the world gets a vote.
1937800	1939760	About half of them will use it.
1939940	1942980	So we're waiting to see what random countries vote.
1942980	1945280	We're pretty confident it will go ahead.
1945740	1948880	But I have an example of a standard on this slide.
1948880	1955900	And for instance, one of the things we wanted to change was,
1963000	1966200	That change was two days of my life.
1966380	1969840	As we debated, was that fine?
1969920	1973780	And the Dutch group would walk out if we didn't make the change.
1973780	1975920	The French group objected to it strongly.
1976820	1979120	But we think that's going ahead.
1979300	1987780	And that amendment should be added to the low-level standard soon, which means it will get out into cards and readers.
1988200	1993140	And it will stop a lot of these attacks and make EMV much, much safer.
1994600	1996740	Okay, so that's all I wanted to say.
1997140	1998860	Thanks for bearing with me.
1999060	2001240	I did have a really nice slide deck.
2002520	2004620	And I have videos of those attacks.
2004620	2007140	I guess that will go up online later.
2008000	2021540	By the way, if anyone is interested in this, if anyone has good access to American Express or Discovery Cards, or even the Chinese Union Pay, we would be very interested in working with you.
2021960	2027320	So if anyone feels like working in this area, please send me an email or let me know.
2027840	2034400	Because I'm pretty sure the same attacks of work against Visa would work against American Express.
2034500	2039320	But we have no access to work in American Express payment machines in Britain.
2039880	2041820	Same with Discover Cards.
2042500	2050240	A lot of research has been focused on Visa and MasterCard, because that's what's available internationally.
2050720	2058360	I bet Visa attacks are waiting to be discovered in a whole lot of US cards as well.
2058500	2061260	So this is a great area to work in.
2061580	2064060	If you'd like to work with us, just let me know.
2064060	2067980	If you'd like to work on it yourself, our relay code is publicly available.
2067980	2070160	The specs are publicly available.
2070480	2077340	Anyone here can get those specs, read them, get a simple NFC setup, and get things working quite nicely.
2077760	2081820	So this is a fantastic area to get into and tinker with.
2081900	2083640	It's pretty easy.
2083640	2088460	And you can be reading your own card with your own phone in a matter of hours.
2089060	2090680	Cool, so that's my talk.
2091140	2095440	Again, apologies for no slides, and thanks for sticking with me.
