HCE-NFC-Relay-Attack
HCE-NFC-Relay-Attack copied to clipboard
Host Card Emulation. Based on Cyanogenmod 9 Android. Design goal is relay DesFire card communication (Widely used in transportation system) via phones to bus reader.
This Project is meant for developing a "Card Relay Attack" on the Desfire card.
[Requirements for environment]
- two cell phones : one runs Cyanogenmod 9, another runs regular Android(or Cyanogenmod 9). Both support NFC and Bluetooth.
- one Desfire card (a regular bus card maybe).
- one reader (a regular ACR122U reader maybe).
[General progress]
- One phone acts as a NFC reader, Runs CyReaderDesFireBluetooth apk. (OS: reagular Android)
- One phone emulates as a DesFire card. Runs CyHCEBluetooth apk. (OS: Cyanogemod 9)
- Two phone conneced with Bluetooth.
- The APDU command that reader sends and APDU answers from DesFire card will be relayed by cell phones via bluetooth.
[Graph for relay attack] "Bus card"(DesFire card) -- "Reader" phone <--> "Card Emulation" phone -- "ACR122U Reader".
[Package Description] CyHCEBasic : Host card emulation app, runs on Cyanogenmod 9. Reply to any input with dummyAnswer. No Bluetooth feature.
CyReaderDesFire : Card reader app, runs on regular Android. Query any card with dummyQuestion. No Bluetooth feature.
CyHCEBluetooth : Host card emulation app, runs on Cyanogenmod 9. Forward any reader query to CyReaderDesFireBluetooth.
CyReaderDesFireBluetooth : Card reader app, runs on regular Android. Forward any card answer to CyHCEBluetooth.
[Future development]
- Add Wifi or 3G/4G connection option other than Bluetooth.