Hacking the NFC credit cards for fun and debit ;)
Renaud Lifchitz – BT renaud.lifchitz@bt.com DeepSec 2012 – November 27-30 – Vienna, Austria
Hacking the NFC credit cards for fun and debit ;) Renaud Lifchitz - - PowerPoint PPT Presentation
Hacking the NFC credit cards for fun and debit ;) Renaud Lifchitz BT renaud.lifchitz@bt.com DeepSec 2012 November 27-30 Vienna, Austria Speaker's bio French computer security engineer working at BT France Main activities:
Renaud Lifchitz – BT renaud.lifchitz@bt.com DeepSec 2012 – November 27-30 – Vienna, Austria
“Hacking the NFC credit cards for fun and debit ;)” Renaud Lifchitz – BT DeepSec 2012 – November 27-30 – Vienna, Austria
2
– Penetration testing & security audits – Security trainings – Security research
– Security of protocols (authentication, cryptography,
– Number theory (integer factorization, primality testing, elliptic
“Hacking the NFC credit cards for fun and debit ;)” Renaud Lifchitz – BT DeepSec 2012 – November 27-30 – Vienna, Austria
3
“Hacking the NFC credit cards for fun and debit ;)” Renaud Lifchitz – BT DeepSec 2012 – November 27-30 – Vienna, Austria
4
“Hacking the NFC credit cards for fun and debit ;)” Renaud Lifchitz – BT DeepSec 2012 – November 27-30 – Vienna, Austria
5
“Hacking the NFC credit cards for fun and debit ;)” Renaud Lifchitz – BT DeepSec 2012 – November 27-30 – Vienna, Austria
6
“Hacking the NFC credit cards for fun and debit ;)” Renaud Lifchitz – BT DeepSec 2012 – November 27-30 – Vienna, Austria
7
“Hacking the NFC credit cards for fun and debit ;)” Renaud Lifchitz – BT DeepSec 2012 – November 27-30 – Vienna, Austria
8
–
Class (1 byte)
–
Instruction (1 byte)
–
Parameter 1 & 2 (1 byte each)
–
Length of data (1 byte)
–
Data field
–
Length of expected response (1 byte)
–
Data field
–
SW1 & SW2 error codes (1 byte each)
“Hacking the NFC credit cards for fun and debit ;)” Renaud Lifchitz – BT DeepSec 2012 – November 27-30 – Vienna, Austria
9
– No personal data on card (card ID ≠ cardholder ID) – Use good encryption – Use good authentication – Use digital signature
– Use encryption – Use a combined reading to avoid rogue access (optical+RFID)
“Hacking the NFC credit cards for fun and debit ;)” Renaud Lifchitz – BT DeepSec 2012 – November 27-30 – Vienna, Austria
10
“Hacking the NFC credit cards for fun and debit ;)” Renaud Lifchitz – BT DeepSec 2012 – November 27-30 – Vienna, Austria
11
– SCM SCL3711 (40€ dongle) – ACS ACR120U/ACR122U (flat)
– Samsung Nexus S, Samsung Nexus Galaxy – BlackBerry Bold 9900/9930, BlackBerry Curve
– Nokia N9/C7/603
“Hacking the NFC credit cards for fun and debit ;)” Renaud Lifchitz – BT DeepSec 2012 – November 27-30 – Vienna, Austria
12
“Hacking the NFC credit cards for fun and debit ;)” Renaud Lifchitz – BT DeepSec 2012 – November 27-30 – Vienna, Austria
13
– Cardholder: gender, first name and last name – PAN (Primary Account Number) – Expiry date – Magnetic stripe data – Transaction history
“Hacking the NFC credit cards for fun and debit ;)” Renaud Lifchitz – BT DeepSec 2012 – November 27-30 – Vienna, Austria
14
“Hacking the NFC credit cards for fun and debit ;)” Renaud Lifchitz – BT DeepSec 2012 – November 27-30 – Vienna, Austria
15
– 4A 01 00
– 40 01 00 A4 04 00 07 A0 00 00 00 42 10 10 00
– 40 01 00 B2 02 0C 00 00
libnfc prefix/suffix opcode ISO-7816 command EMV specific
“Hacking the NFC credit cards for fun and debit ;)” Renaud Lifchitz – BT DeepSec 2012 – November 27-30 – Vienna, Austria
16
– Visa debit/credit: A0 00 00 00 03 10 10 – MasterCard credit: A0 00 00 00 04 10 10 – American Express: A0 00 00 00 25 00 00 – CB: A0 00 00 00 42 10 10
“Hacking the NFC credit cards for fun and debit ;)” Renaud Lifchitz – BT DeepSec 2012 – November 27-30 – Vienna, Austria
17
“Hacking the NFC credit cards for fun and debit ;)” Renaud Lifchitz – BT DeepSec 2012 – November 27-30 – Vienna, Austria
18
“Hacking the NFC credit cards for fun and debit ;)” Renaud Lifchitz – BT DeepSec 2012 – November 27-30 – Vienna, Austria
19
“Hacking the NFC credit cards for fun and debit ;)” Renaud Lifchitz – BT DeepSec 2012 – November 27-30 – Vienna, Austria
20
– Active read up to 3 to 5cm in practice
– Active read up to 1.5m (50x better!) using a dedicated
– Passive sniffing up to 15m (500x better!) using a radio
“Hacking the NFC credit cards for fun and debit ;)” Renaud Lifchitz – BT DeepSec 2012 – November 27-30 – Vienna, Austria
21
Reader probes, communication with the credit card, and then probes again
“Hacking the NFC credit cards for fun and debit ;)” Renaud Lifchitz – BT DeepSec 2012 – November 27-30 – Vienna, Austria
22
“Hacking the NFC credit cards for fun and debit ;)” Renaud Lifchitz – BT DeepSec 2012 – November 27-30 – Vienna, Austria
23
“Hacking the NFC credit cards for fun and debit ;)” Renaud Lifchitz – BT DeepSec 2012 – November 27-30 – Vienna, Austria
24
– PCI DSS compliance – Personal data protection
“Hacking the NFC credit cards for fun and debit ;)” Renaud Lifchitz – BT DeepSec 2012 – November 27-30 – Vienna, Austria
25
“Hacking the NFC credit cards for fun and debit ;)” Renaud Lifchitz – BT DeepSec 2012 – November 27-30 – Vienna, Austria
26
– Scope: all wireless technologies – Testing Procedure 4.1.a: “Select a sample of transactions as they
“Hacking the NFC credit cards for fun and debit ;)” Renaud Lifchitz – BT DeepSec 2012 – November 27-30 – Vienna, Austria
27
“Hacking the NFC credit cards for fun and debit ;)” Renaud Lifchitz – BT DeepSec 2012 – November 27-30 – Vienna, Austria
28
“Hacking the NFC credit cards for fun and debit ;)” Renaud Lifchitz – BT DeepSec 2012 – November 27-30 – Vienna, Austria
29
“Hacking the NFC credit cards for fun and debit ;)” Renaud Lifchitz – BT DeepSec 2012 – November 27-30 – Vienna, Austria
30
“Hacking the NFC credit cards for fun and debit ;)” Renaud Lifchitz – BT DeepSec 2012 – November 27-30 – Vienna, Austria
31
“Hacking the NFC credit cards for fun and debit ;)” Renaud Lifchitz – BT DeepSec 2012 – November 27-30 – Vienna, Austria
32